blob: 69ae1b67521e2569048b3971da7f535158414e41 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $FreeBSD$
PORTNAME= xt
PORTVERSION= 20020426a
PORTREVISION= 2
CATEGORIES= textproc java
MASTER_SITES= http://www.blnz.com/xt/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= XSL Transformations (XSLT) implementation in Java
RUN_DEPENDS= ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j \
${JAVALIBDIR}/xp.jar:${PORTSDIR}/textproc/xp \
${LOCALBASE}/bin/classpath:${PORTSDIR}/java/javavmwrapper
USE_JAVA= YES
JAVA_VERSION= 1.6+
NO_BUILD= YES
OPTIONS_DEFINE= DOCS
OTHERDOCS= copying.txt copyingjc.txt index.html
PORTDOCS= ${OTHERDOCS} api
SAMPLES= date.xsl nxml.xsl slides.xml slides.xsl sort-uniq.xml \
sort-uniq.xsl split.xml split.xsl textfile.xml textfile.xsl
do-configure:
${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g' ${FILESDIR}/xt.sh > ${WRKSRC}/xt
do-install:
@${ECHO_MSG} ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/xt.jar ${STAGEDIR}${JAVAJARDIR}/
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} ">> Installing scripts in ${PREFIX}/bin/..."
${INSTALL_SCRIPT} ${WRKSRC}/xt ${STAGEDIR}${PREFIX}/bin/
${LN} -sf xt ${STAGEDIR}${PREFIX}/bin/xt-xp
${LN} -sf xt ${STAGEDIR}${PREFIX}/bin/xt-xml4j
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} ">> Installing samples in ${EXAMPLESDIR}..."
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/demo && ${INSTALL_DATA} ${SAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} ">> Installing documentation in ${DOCSDIR}..."
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${FIND} api \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
cd ${WRKSRC} && ${INSTALL_DATA} ${OTHERDOCS} ${STAGEDIR}${DOCSDIR}/
@${ECHO_MSG} " [ DONE ]"
.include <bsd.port.mk>
|