ports/69015: [MAINTAINER] textproc/xerces-j: change default behavior and update pkg-descr

Herve Quiroz herve.quiroz at esil.univ-mrs.fr
Tue Jul 13 18:20:20 UTC 2004


>Number:         69015
>Category:       ports
>Synopsis:       [MAINTAINER] textproc/xerces-j: change default behavior and update pkg-descr
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 13 18:20:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Herve Quiroz
>Release:        FreeBSD 5.2.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD arabica.esil.univ-mrs.fr 5.2.1-RELEASE-p5 FreeBSD 5.2.1-RELEASE-p5 #3: Thu May  6 20:17:47 CEST
>Description:

- Samples are now installed by default
- The source code for samples is now installed with the samples
- Fixed some OPTIONS/package issue
- Updated pkg-descr
- Performance improvement: removed the unnecessary loop
- Cosmetic changes: honor 80 chars line length

NOTE: bumped port revision as additional files will get installed.

NOTE2: Most of the changes (and accordingly most fixes) were suggested by
Volker Stolz (vs).

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- xerces-j-2.6.2_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/textproc/xerces-j.original/Makefile /usr/ports/textproc/xerces-j/Makefile
--- /usr/ports/textproc/xerces-j.original/Makefile	Sat Apr 17 00:46:20 2004
+++ /usr/ports/textproc/xerces-j/Makefile	Tue Jul 13 19:05:02 2004
@@ -7,6 +7,7 @@
 
 PORTNAME=	xerces-j
 PORTVERSION=	2.6.2
+PORTREVISION=	1
 CATEGORIES=	textproc java
 MASTER_SITES=	${MASTER_SITE_APACHE_XML}
 MASTER_SITE_SUBDIR=	xerces-j/source
@@ -23,7 +24,7 @@
 WRKSRC=		${WRKDIR}/xerces-${PORTVERSION:S/./_/g}
 
 OPTIONS=	DEPRECATED_JARS "build/install the deprecated JARs" on \
-		SAMPLES_JAR "build/install the samples" off
+		SAMPLES "build/install the samples" on
 
 .include <bsd.port.pre.mk>
 
@@ -35,11 +36,11 @@
 .endif
 
 JARFILES+=	xercesImpl.jar xml-apis.jar
-.if defined(WITH_DEPRECATED_JARS)
+.if !defined(WITHOUT_DEPRECATED_JARS)
 ANT_TARGETS+=	deprecatedjars
 JARFILES+=	xerces.jar xmlParserAPIs.jar resolver.jar
 .endif
-.if defined(WITH_SAMPLES_JAR)
+.if !defined(WITHOUT_SAMPLES)
 JARFILES+=	xercesSamples.jar
 .endif
 
@@ -51,24 +52,39 @@
 	@cd ${WRKSRC} && ${MV} ../tools .
 
 do-build:
-	@cd ${WRKSRC} && ${SETENV} CLASSPATH=`echo ${TOOLS_JARFILES:S,^,tools/,} | ${TR} " " ":"` ${ANT} ${ANT_TARGETS}
+	@cd ${WRKSRC} && \
+		${SETENV} CLASSPATH=`echo ${TOOLS_JARFILES:S,^,tools/,} | \
+		${TR} " " ":"` ${ANT} ${ANT_TARGETS}
 
 do-install:
 	@${ECHO_CMD} -n ">> Installing JAR files in ${JAVAJARDIR}..."
 	@${MKDIR} ${JAVAJARDIR}
 .for JARFILE in ${JARFILES}
-	@cd ${WRKSRC}/build && ${CP} ${JARFILE} ${JAVAJARDIR}/
+	@cd ${WRKSRC}/build && ${INSTALL_DATA} ${JARFILE} ${JAVAJARDIR}/${JARFILE}
 	@${ECHO_CMD} -n " ${JARFILE}"
 .endfor
 	@${ECHO_CMD} " [ DONE ]"
 .if !defined(NOPORTDOCS)
 	@${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
-	@${MKDIR} ${DOCSDIR}
-.for DOCFILE in ${PORTDOCS}
-	@cd ${WRKSRC}/build/docs/javadocs && ${CP} -r ${DOCFILE} ${DOCSDIR}/
-	@${ECHO_CMD} -n " ${DOCFILE}"
-.endfor
+	@cd ${WRKSRC}/build/docs/javadocs && \
+		${FIND} ${PORTDOCS} -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
+		${FIND} ${PORTDOCS} -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
+	@${ECHO_CMD} " [ DONE ]"
+.endif
+.if !defined(WITHOUT_SAMPLES)
+	@${ECHO_CMD} -n ">> Installing samples in ${EXAMPLESDIR}..."
+	@cd ${WRKSRC}/samples && \
+		${FIND} . -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
+		${FIND} . -not -type d -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
 	@${ECHO_CMD} " [ 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>
diff -ruN --exclude=CVS /usr/ports/textproc/xerces-j.original/pkg-descr /usr/ports/textproc/xerces-j/pkg-descr
--- /usr/ports/textproc/xerces-j.original/pkg-descr	Tue Sep 10 04:42:16 2002
+++ /usr/ports/textproc/xerces-j/pkg-descr	Tue Jul 13 19:09:26 2004
@@ -1,6 +1,20 @@
-The Xerces Java Parser supports XML 1.0 recommendation and
-contains advanced parser functionality, such as XML Schema, DOM
-Level 2 version 1.0, and SAX Version 2, in addition to supporting
-the industry-standard DOM Level 1 and SAX version 1 APIs.
+The Xerces Java Parser supports XML 1.0 recommendation and contains advanced
+parser functionality, such as XML Schema, DOM Level 2 version 1.0, and SAX
+Version 2, in addition to supporting the industry-standard DOM Level 1 and SAX
+version 1 APIs.
+
+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.
+
+Xerces2 also provides an experimental implementation of the Document Object
+Model Level 3 Core and Load/Save Proposed Recommendations and provides a
+partial implementation of the XML Inclusions (XInclude) W3C Working Draft in
+Last Call. It also provides support for OASIS XML Catalogs.
 
 WWW: http://xml.apache.org/xerces2-j/index.html
--- xerces-j-2.6.2_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list