Upgrade from 2.1.0 to 2.2.0.

This version of the port will build from source instead of taking
a binary distro. It does not install the Stylebook-based
documentation. We will need to create a textproc/xml-stylebook
port for that. I've looked at it, but it's a bit cumbersome.
There is no official release of xml-stylebook (d'oh).

Approved by:	kevlo
This commit is contained in:
Ernst de Haan 2002-10-21 07:40:50 +00:00
parent cd316a0b3b
commit b3beee3f2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68476
3 changed files with 990 additions and 1099 deletions

View File

@ -6,25 +6,44 @@
#
PORTNAME= xerces-j
PORTVERSION= 2.1.0
PORTVERSION= 2.2.0
CATEGORIES= textproc java
MASTER_SITES= http://xml.apache.org/dist/xerces-j/
DISTNAME= xerces-${PORTVERSION:S/./_/g}
DISTFILES= Xerces-J-bin.${PORTVERSION}${EXTRACT_SUFX}
DISTNAME= Xerces-J-src.${PORTVERSION}
MAINTAINER= kevlo@FreeBSD.org
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/jakarta-ant
USE_JAVA= 1.3+
WRKSRC= ${WRKDIR}/xerces-${PORTVERSION:S/./_/g}
NO_BUILD= yes
ANT?= ${LOCALBASE}/bin/ant
.if defined(NOPORTDOCS)
ANT_TARGETS= jar apijar
.else
ANT_TARGETS= jar apijar javadocs
# We should install other documentation too, but
# we have no stylebook port yet
#
# ANT_TARGETS= jar apijar docs javadocs
.endif
JAVASHAREDIR= ${PREFIX}/share/java
JARDIR= ${JAVASHAREDIR}/classes
JARFILES= xercesImpl.jar xmlParserAPIs.jar
do-build:
@cd ${WRKSRC} && ${ANT} ${ANT_TARGETS}
do-install:
(cd ${WRKSRC} && ${INSTALL_DATA} xercesImpl.jar xmlParserAPIs.jar \
${PREFIX}/share/java/classes)
@${ECHO} -n ">> Installing JAR files in ${JARDIR}..."
@cd ${WRKSRC}/build && ${CP} ${JARFILES} ${JARDIR}/
@${ECHO} " [ DONE ]"
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/docs && ${TAR} -cf - . | ${TAR} -xf - -C ${DOCSDIR})
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@${CP} -r ${WRKSRC}/build/docs/javadocs/* ${DOCSDIR}
@${ECHO} " [ DONE ]"
.endif
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (Xerces-J-bin.2.1.0.tar.gz) = 4d2ef1d8559033c026f0913c8240ec3c
MD5 (Xerces-J-src.2.2.0.tar.gz) = a8ed81677a7f9c17160d4a9a6a5dcdc6

File diff suppressed because it is too large Load Diff