Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2004 15:16:25 +0200
From:      Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
To:        Volker Stolz <vs@FreeBSD.org>
Cc:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/69055: [PATCH] textproc/xml4j: update to 4.3.0 and fix port
Message-ID:  <20040720131625.GA30101@arabica.esil.univ-mrs.fr>
In-Reply-To: <200407200906.i6K96dP9018257@freefall.freebsd.org>
References:  <200407200906.i6K96dP9018257@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Jul 20, 2004 at 09:06:39AM +0000, Volker Stolz wrote:
> After deinstallation:
> 
> xml4j@menelaos [11:05:06]> ls -l /usr/local/share/java/xml4j/
> total 10
> -r--r--r--  1 root  wheel  1206 Jul 20 10:38 personal-schema.xml
> -r--r--r--  1 root  wheel   619 Jul 20 10:38 personal.dtd
> -r--r--r--  1 root  wheel  1145 Jul 20 10:38 personal.xml
> -r--r--r--  1 root  wheel  2139 Jul 20 10:38 personal.xsd

Sorry for that. The attached patch will fix the problem.

Herve

--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Makefile.diff"

--- Makefile.orig	Tue Jul 20 15:01:19 2004
+++ Makefile	Tue Jul 20 15:09:52 2004
@@ -6,25 +6,65 @@
 #
 
 PORTNAME=	xml4j
-PORTVERSION=	3.1.1
+PORTVERSION=	4.3.0
 CATEGORIES=	textproc
-MASTER_SITES=	http://www.alphaworks.ibm.com/aw.nsf/download/xml4j/
-DISTNAME=	XML4J-J-bin.${PORTVERSION}
+MASTER_SITES=	http://dl.alphaworks.ibm.com/technologies/xml4j/
+DISTNAME=	XML4J-bin.${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	XML for Java parser
 
-WRKSRC=		${WRKDIR}/XML4J-3_1_1
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:S/./_/g}
+USE_JAVA=	yes
+JAVA_VERSION=	1.2+
 NO_BUILD=	YES
+DATADIR=	${JAVASHAREDIR}/${PORTNAME}
 
-JAVASUBDIR=	jdk1.1.8
-DIR=		${PREFIX}/share/java
+CONFLICTS=	xerces-j-2.*
+
+SAMPLES=	dom sax simpletype socket ui xni xs
+PORTDOCS=	*.html graphics images javadocs resources
+JARFILES=	resolver.jar xercesImpl.jar xercesSamples.jar xml-apis.jar xmlParserAPIs.jar
+DATAFILES=	personal-schema.xml personal.dtd personal.xml personal.xsd
+
+PLIST_FILES=	${JARFILES:S,^,%%JAVAJARDIR%%/,} \
+		${DATAFILES:S,^,%%DATADIR%%/,}
+PLIST_DIRS=	%%DATADIR%%
 
 do-install:
-	@${MKDIR} ${DIR}/classes
-	@(cd ${WRKSRC} && ${INSTALL_DATA} xml4j.jar xerces.jar xercesSamples.jar ${DIR}/classes)
-	@${MKDIR} ${DIR}/xml4j
-	@(cd ${WRKSRC} && ${INSTALL_DATA} Readme.html ${DIR}/xml4j)
-	@(cd ${WRKSRC} && ${CP} -R data docs ${DIR}/xml4j)
+	@${MKDIR} ${JAVAJARDIR}
+	@${ECHO_MSG} -n ">> Installing JAR in ${JAVAJARDIR}..."
+	@cd ${WRKSRC} && \
+		${INSTALL_DATA} ${JARFILES} ${JAVAJARDIR}/
+	@${ECHO_MSG} " [ DONE ]"
+	@${ECHO_MSG} -n ">> Installing data in ${DATADIR}..."
+	@${MKDIR} ${DATADIR}
+	@cd ${WRKSRC}/data && \
+		${INSTALL_DATA} ${DATAFILES} ${DATADIR}/
+	@${ECHO_MSG} " [ DONE ]"
+.if !defined(NOPORTDOCS)
+	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
+	@${MKDIR} ${DOCSDIR}
+	@cd ${WRKSRC}/docs && \
+		${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
+	@cd ${WRKSRC}/docs && \
+		${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+	@${ECHO_MSG} " [ DONE ]"
+	@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
+	@${MKDIR} ${EXAMPLESDIR}
+	@cd ${WRKSRC}/samples && \
+		${FIND} ${SAMPLES} -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \;
+	@cd ${WRKSRC}/samples && \
+		${FIND} ${SAMPLES} -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
+	@${ECHO_MSG} " [ DONE ]"
+.endif
+
+.if !defined(NOPORTDOCS)
+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,@dirrm ${EXAMPLESDIR:S,${PREFIX}/,,},p' >> ${TMPPLIST}
+.endif
 
 .include <bsd.port.mk>

--bp/iNruPH9dso1Pn--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040720131625.GA30101>