Date: Sat, 3 Apr 2004 08:20:22 -0800 (PST) From: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/65067: [PATCH] textproc/xp: USE_JAVA, (NO)PORTDOCS/DOCSDIR, JAVAJARDIR Message-ID: <200404031620.i33GKMab021154@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/65067; it has been noted by GNATS. From: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> To: freebsd-gnats-submit@FreeBSD.org, mike@vee.net Cc: znerd@FreeBSD.org Subject: Re: ports/65067: [PATCH] textproc/xp: USE_JAVA, (NO)PORTDOCS/DOCSDIR, JAVAJARDIR Date: Sat, 3 Apr 2004 18:18:43 +0200 A quick update: - now bsd.java.mk 2.0 compliant - bumped PORTREVISION - removed some useless statement --- Makefile.orig Sat Apr 3 18:02:53 2004 +++ Makefile Sat Apr 3 18:04:44 2004 @@ -7,6 +7,7 @@ PORTNAME= xp PORTVERSION= 0.5 +PORTREVISION= 1 CATEGORIES= textproc java MASTER_SITES= ftp://ftp.jclark.com/pub/xml/ DISTNAME= ${PORTNAME} @@ -14,23 +15,33 @@ MAINTAINER= mike@vee.net COMMENT= An XML parser written in Java -RUN_DEPENDS= ${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk11 - -PLIST_SUB+= XP_VERSION=${PORTVERSION} +USE_JAVA= yes +JAVA_VERSION= 1.1+ NO_WORKSUBDIR= yes NO_BUILD= yes USE_ZIP= yes -.include <bsd.port.pre.mk> +.if !defined(NOPORTDOCS) +PORTDOCS= api copying.txt index.html +.endif +JARFILE= ${PORTNAME}.jar +DESTJARFILE= ${PKGNAME}.jar +PLIST_FILES+= ${JAVAJARDIR:S,^${PREFIX}/,,}/${DESTJARFILE} do-install: - ${MKDIR} ${PREFIX}/share/java/classes ${PREFIX}/share/java/${PKGNAME} - ${INSTALL_DATA} \ - ${WRKDIR}/xp.jar \ - ${PREFIX}/share/java/classes/${PKGNAME}.jar - cd ${WRKDIR}; \ - ${CP} -R docs ${PREFIX}/share/java/${PKGNAME}; \ - ${CP} -R com ${PREFIX}/share/java/${PKGNAME} + @${ECHO_CMD} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..." + @${MKDIR} ${JAVAJARDIR} + @${INSTALL_DATA} ${WRKDIR}/xp.jar ${JAVAJARDIR}/${DESTJARFILE} + @${ECHO_CMD} " [ DONE ]" +.if !defined(NOPORTDOCS) + @${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..." + @${MKDIR} ${DOCSDIR} +.for DOCFILE in ${PORTDOCS} + @${CP} -r ${WRKDIR}/docs/${DOCFILE} ${DOCSDIR}/ + @${ECHO_CMD} -n " ${DOCFILE}" +.endfor + @${ECHO_CMD} " [ DONE ]" +.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404031620.i33GKMab021154>