[Midnightbsd-cvs] mports: textproc/xerces-j:
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Oct 6 15:13:59 EDT 2008
Log Message:
-----------
Added Files:
-----------
mports/textproc/xerces-j:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
mports/textproc/xerces-j/files:
patch-build.xml (r1.1)
-------------- next part --------------
--- /dev/null
+++ textproc/xerces-j/pkg-descr
@@ -0,0 +1,16 @@
+The Xerces Java Parser is a complete implementation of the parser related
+portions of JAXP 1.3 and also brings Xerces into compliance with SAX 2.0.2, the
+DOM Level 3 Core and Load/Save W3C Recommendations, the XML Inclusions
+(XInclude) Version 1.0 W3C Recommendation and the XML Schema 1.0 Structures and
+Datatypes Second Edition W3C Recommendations.
+
+Xerces2 is the next generation of high performance, fully compliant XML parsers
+in the Apache Xerces family. This version of Xerces introduces the Xerces
+Native Interface (XNI), a complete framework for building parser components and
+configurations that is extremely modular and easy to program.
+
+The Apache Xerces2 parser is the reference implementation of XNI but other
+parser components, configurations, and parsers can be written using the Xerces
+Native Interface.
+
+WWW: http://xml.apache.org/xerces2-j/
--- /dev/null
+++ textproc/xerces-j/Makefile
@@ -0,0 +1,106 @@
+# New ports collection makefile for: Xerces
+# Date created: 2000/08/12
+# Whom: Marcin Cieslak
+#
+# $MidnightBSD: mports/textproc/xerces-j/Makefile,v 1.1 2008/10/06 19:13:55 laffer1 Exp $
+# $FreeBSD: ports/textproc/xerces-j/Makefile,v 1.24 2008/06/06 14:05:07 edwin Exp $
+#
+
+PORTNAME= xerces-j
+PORTVERSION= 2.9.0
+CATEGORIES= textproc java
+MASTER_SITES= ${MASTER_SITE_APACHE_XML}
+MASTER_SITE_SUBDIR= xerces-j/source
+DISTFILES= Xerces-J-src.${PORTVERSION}${EXTRACT_SUFX} Xerces-J-tools.${PORTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= XML parser for Java
+LICENSE= apache2
+
+CONFLICTS= xml4j-4.*
+
+USE_JAVA= yes
+JAVA_VERSION= 1.3+
+USE_ANT= yes
+USE_JIKES= no
+
+WRKSRC= ${WRKDIR}/xerces-${PORTVERSION:S/./_/g}
+
+OPTIONS= DEPRECATED_JARS "build/install the deprecated JARs" on \
+ SAMPLES "build/install the samples" on
+
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
+.include <bsd.port.pre.mk>
+
+ALL_TARGET= jars
+.if !defined(NOPORTDOCS)
+ALL_TARGET+= javadocs
+.if ${JAVA_PORT_VERSION:C/[0-9]\.([0-9])\.[0-9]/\1/} == "5"
+ALL_TARGET+= docs
+.endif
+PORTDOCS= *
+.endif
+
+JARFILES+= xercesImpl.jar xml-apis.jar
+.if !defined(WITHOUT_DEPRECATED_JARS)
+ALL_TARGET+= deprecatedjars
+DEPRECATED_JARFILES= xerces.jar xercesSamples.jar
+PLIST_FILES+= ${DEPRECATED_JARFILES:S,^,%%DATADIR%%/deprecated/,}
+PLIST_DIRS+= %%DATADIR%%/deprecated %%DATADIR%%
+.endif
+
+PLIST_FILES+= ${JARFILES:S,^,%%JAVAJARDIR%%/,}
+
+TOOLS_JARFILES= resolver.jar stylebook-1.0-b2.jar bin/xjavac.jar
+CLASSPATH!= ${ECHO_CMD} ${TOOLS_JARFILES:S,^,tools/,} | ${TR} " " ":"
+MAKE_ENV= CLASSPATH=${CLASSPATH}
+
+JAVA_PORT_API= ${LOCALBASE}/share/doc/jdk${JAVA_PORT_VERSION:C/([0-9]\.[0-9])\.[0-9]/\1/}/api
+.if exists(${JAVA_PORT_API})
+MAKE_ARGS+= -Djdk.api="${JAVA_PORT_API}"
+.endif
+
+post-extract:
+ @cd ${WRKSRC} && ${MV} ../tools .
+
+do-install:
+ @${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..."
+.for JARFILE in ${JARFILES}
+ @cd ${WRKSRC}/build && ${INSTALL_DATA} ${JARFILE} ${JAVAJARDIR}/${JARFILE}
+ @${ECHO_MSG} -n " ${JARFILE}"
+.endfor
+ @${ECHO_MSG} " [ DONE ]"
+.if !defined(WITHOUT_DEPRECATED_JARS)
+ @${ECHO_MSG} -n ">> Installing deprecated JAR files in ${DATADIR}/deprecated/..."
+ @${MKDIR} ${DATADIR}/deprecated
+.for JARFILE in ${DEPRECATED_JARFILES}
+ @cd ${WRKSRC}/build && ${INSTALL_DATA} ${JARFILE} ${DATADIR}/deprecated/${JARFILE}
+ @${ECHO_MSG} -n " ${JARFILE}"
+.endfor
+ @${ECHO_MSG} " [ DONE ]"
+.endif
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
+ @cd ${WRKSRC}/build/docs/ && \
+ ${FIND} . -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
+ ${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
+ @${ECHO_MSG} " [ DONE ]"
+.endif
+.if !defined(WITHOUT_SAMPLES)
+ @${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
+ @cd ${WRKSRC}/samples && \
+ ${FIND} . -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
+ ${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
+ @${ECHO_MSG} " [ DONE ]"
+.endif
+
+.if !defined(WITHOUT_SAMPLES)
+post-install:
+ @${FIND} -s ${WRKSRC}/samples -not -type d | \
+ ${SED} -ne 's,^${WRKSRC}/samples,${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
+ @${FIND} -s -d ${WRKSRC}/samples -type d | \
+ ${SED} -ne 's,^${WRKSRC}/samples, at dirrm ${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
+.endif
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ textproc/xerces-j/distinfo
@@ -0,0 +1,6 @@
+MD5 (Xerces-J-src.2.9.0.tar.gz) = bd43e57ec7105acc9f13072e0208d445
+SHA256 (Xerces-J-src.2.9.0.tar.gz) = 76147a7d5f33d7d945964a732923f387628d4e744693c7e6beb9d22e7cc2375d
+SIZE (Xerces-J-src.2.9.0.tar.gz) = 1700145
+MD5 (Xerces-J-tools.2.9.0.tar.gz) = 79d48733b0ab41af190f1af7ca89ab3f
+SHA256 (Xerces-J-tools.2.9.0.tar.gz) = be0c81396771ff29265ae1ad28c83ae13f569b7c9ec4a3daa8b6739907ece4af
+SIZE (Xerces-J-tools.2.9.0.tar.gz) = 4379686
--- /dev/null
+++ textproc/xerces-j/files/patch-build.xml
@@ -0,0 +1,61 @@
+Allows to enforce a packagelistLoc for JDK API documentation
+
+$FreeBSD: ports/textproc/xerces-j/files/patch-build.xml,v 1.1 2005/11/24 18:07:40 hq Exp $
+
+--- build.xml.orig Thu Nov 24 16:57:51 2005
++++ build.xml Thu Nov 24 17:19:25 2005
+@@ -402,7 +402,9 @@
+ windowtitle='XML Standard API' doctitle='XML Standard API'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/xni'/>
+ <javadoc packagenames='org.apache.xerces.xni.*'
+ locale='en_US'
+@@ -412,7 +414,9 @@
+ doctitle='Xerces Native Interface'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/xs'/>
+ <javadoc packagenames='org.apache.xerces.xs, org.apache.xerces.xs.datatypes'
+ locale='en_US'
+@@ -422,7 +426,9 @@
+ doctitle='XML Schema API'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+
+ <mkdir dir='${build.dir}/docs/javadocs/xerces2'/>
+ <javadoc packagenames='org.apache.xerces.dom.*,
+@@ -440,7 +446,9 @@
+ doctitle='Xerces2 Implementation'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ <mkdir dir='${build.dir}/docs/javadocs/other'/>
+ <javadoc packagenames='org.apache.html.*,
+ org.apache.wml.*,
+@@ -451,7 +459,9 @@
+ windowtitle='Other Classes' doctitle='Other Classes'
+ bottom='${copyright}'
+ additionalparam='${additional.param}'
+- />
++ >
++ <link offline="true" packagelistLoc="${jdk.api}" href="${jdk.api}"/>
++ </javadoc>
+ </target>
+
+ <!-- =================================================================== -->
More information about the Midnightbsd-cvs
mailing list