1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

o Apply ports/73114 (1)

- Update to 20020426a.
    - Update to bsd.java.mk 2.0
    - Register dependencies on textproc/xp and textproc/xml4j
    - Honor hier(7): install docs in DOCSDIR, samples in EXAMPLESDIR
    - Honor NOPORTDOCS
    - Single script with symlinks
    - Use 'classpath' from java/javavmwrapper
o Release maintainership.

PR:		ports/73114
Submitted by:	hq (1)
This commit is contained in:
Jun Kuriyama 2004-12-29 13:39:02 +00:00
parent ae8618d863
commit 00cc061408
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125434
6 changed files with 68 additions and 54 deletions

View File

@ -6,33 +6,55 @@
#
PORTNAME= xt
PORTVERSION= 19991105
PORTREVISION= 1
PORTVERSION= 20020426a
CATEGORIES= textproc java
MASTER_SITES= ftp://ftp.jclark.com/pub/xml/
DISTNAME= ${PORTNAME}
MASTER_SITES= http://www.blnz.com/xt/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= kuriyama@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= XSL Transformations (XSLT) implementation in Java
USE_JAVA= 1.1+
USE_ZIP= YES
NO_BUILD_DEPENDS_JAVA= YES
NO_WRKSUBDIR= YES
RUN_DEPENDS= ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xml4j \
${JAVALIBDIR}/xp.jar:${PORTSDIR}/textproc/xp \
${LOCALBASE}/bin/classpath:${PORTSDIR}/java/javavmwrapper
USE_JAVA= YES
JAVA_VERSION= 1.1+
NO_BUILD= YES
ONLY_FOR_ARCHS= i386
DIR= ${PREFIX}/share/java
.if !defined(NOPORTDOCS)
OTHERDOCS= copying.txt copyingjc.txt index.html
PORTDOCS= ${OTHERDOCS} api
.endif
SAMPLES= date.xsl nxml.xsl slides.xml slides.xsl sort-uniq.xml \
sort-uniq.xsl split.xml split.xsl textfile.xml textfile.xsl
do-build:
${SED} -e s,%%PREFIX%%,${PREFIX},g ${FILESDIR}/xt-xml4j.sh > ${WRKSRC}/xt-xml4j
${SED} -e s,%%PREFIX%%,${PREFIX},g ${FILESDIR}/xt-xp.sh > ${WRKSRC}/xt-xp
do-configure:
${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g' ${FILESDIR}/xt.sh > ${WRKSRC}/xt
do-install:
${MKDIR} ${DIR}/classes ${DIR}/xt
(cd ${WRKSRC};\
${INSTALL_DATA} xt.jar sax.jar ${DIR}/classes; \
${CP} -R copying.txt demo xt.htm ${DIR}/xt; \
${INSTALL_SCRIPT} ${WRKSRC}/xt-xml4j ${PREFIX}/bin; \
${INSTALL_SCRIPT} ${WRKSRC}/xt-xp ${PREFIX}/bin)
@${ECHO_MSG} ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/xt.jar ${JAVAJARDIR}/
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} ">> Installing scripts in ${PREFIX}/bin/..."
${INSTALL_SCRIPT} ${WRKSRC}/xt ${PREFIX}/bin/
cd ${PREFIX}/bin && ${LN} xt xt-xp
cd ${PREFIX}/bin && ${LN} xt xt-xml4j
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} ">> Installing samples in ${EXAMPLESDIR}..."
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/demo && ${INSTALL_DATA} ${SAMPLES} ${EXAMPLESDIR}/
@${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
@${ECHO_MSG} ">> Installing documentation in ${DOCSDIR}..."
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${FIND} api \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
cd ${WRKSRC} && ${INSTALL_DATA} ${OTHERDOCS} ${DOCSDIR}/
@${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
MD5 (xt.zip) = 2ac9973f7f9cb2a480af94066f89568a
SIZE (xt.zip) = 525521
MD5 (xt-20020426a-src.tgz) = ec70802a81c8a8374928b34d784f081c
SIZE (xt-20020426a-src.tgz) = 697155

View File

@ -1,6 +0,0 @@
#!/bin/sh
# $FreeBSD$
export CLASSPATH=%%PREFIX%%/share/java/classes/xt.jar:%%PREFIX%%/share/java/classes/xerces.jar:${CLASSPATH}
javavm -Dcom.jclark.xsl.sax.parser=org.apache.xerces.parsers.SAXParser com.jclark.xsl.sax.Driver $*

View File

@ -1,6 +0,0 @@
#!/bin/sh
# $FreeBSD$
export CLASSPATH=%%PREFIX%%/share/java/classes/xt.jar:%%PREFIX%%/share/java/classes/xp-0.5.jar:%%PREFIX%%/share/java/classes/sax.jar:${CLASSPATH}
javavm com.jclark.xsl.sax.Driver $*

12
textproc/xt/files/xt.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# $FreeBSD$
IAM=`basename ${0}`
if [ "${IAM}" = "xt-xml4j" ]
then
JAVA_ARGS="${JAVA_ARGS} -Dcom.jclark.xsl.sax.parser=org.apache.xerces.parsers.SAXParser"
fi
export CLASSPATH=`"%%LOCALBASE%%/bin/classpath"`
"%%LOCALBASE%%/bin/javavm" ${JAVA_ARGS} com.jclark.xsl.sax.Driver $*

View File

@ -1,23 +1,15 @@
bin/xt
bin/xt-xml4j
bin/xt-xp
share/java/classes/sax.jar
share/java/classes/xt.jar
share/java/xt/copying.txt
share/java/xt/demo/DOMDemo.java
share/java/xt/demo/date.xsl
share/java/xt/demo/multiout.xsl
share/java/xt/demo/nxml.xsl
share/java/xt/demo/out.xml
share/java/xt/demo/out1.xml
share/java/xt/demo/out2.xml
share/java/xt/demo/slides.xml
share/java/xt/demo/slides.xsl
share/java/xt/demo/sort-uniq.xml
share/java/xt/demo/sort-uniq.xsl
share/java/xt/demo/split.xml
share/java/xt/demo/split.xsl
share/java/xt/demo/textfile.xml
share/java/xt/demo/textfile.xsl
share/java/xt/xt.htm
@dirrm share/java/xt/demo
@dirrm share/java/xt
%%JAVAJARDIR%%/xt.jar
%%EXAMPLESDIR%%/date.xsl
%%EXAMPLESDIR%%/nxml.xsl
%%EXAMPLESDIR%%/slides.xml
%%EXAMPLESDIR%%/slides.xsl
%%EXAMPLESDIR%%/sort-uniq.xml
%%EXAMPLESDIR%%/sort-uniq.xsl
%%EXAMPLESDIR%%/split.xml
%%EXAMPLESDIR%%/split.xsl
%%EXAMPLESDIR%%/textfile.xml
%%EXAMPLESDIR%%/textfile.xsl
@dirrm %%EXAMPLESDIR%%