aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorznerd <znerd@FreeBSD.org>2004-04-21 03:48:50 +0800
committerznerd <znerd@FreeBSD.org>2004-04-21 03:48:50 +0800
commit756d22df19c83d70b62ead62219603fde40ea01f (patch)
tree82d6267121e52e47ce87b86960d2c30812b1d98e /java
parent6b5d372df9a168c094c989face8cdf075b002f20 (diff)
downloadfreebsd-ports-gnome-756d22df19c83d70b62ead62219603fde40ea01f.tar.gz
freebsd-ports-gnome-756d22df19c83d70b62ead62219603fde40ea01f.tar.zst
freebsd-ports-gnome-756d22df19c83d70b62ead62219603fde40ea01f.zip
- Fix PORTDOCS [1]
- bsd.java.mk 2.0 compliant - Removed pkg-plist - Done some cleanning (PLIST_SUB statement) PR: 61357 Submitted by: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr> Reported by: Oliver Eikemeier <eikemeier@fillmore-labs.com> [1]
Diffstat (limited to 'java')
-rw-r--r--java/jakarta-commons-cli/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/java/jakarta-commons-cli/Makefile b/java/jakarta-commons-cli/Makefile
index 9cea3572ca1a..9f4350c8d49b 100644
--- a/java/jakarta-commons-cli/Makefile
+++ b/java/jakarta-commons-cli/Makefile
@@ -20,10 +20,10 @@ COMMENT= Java library for command line arguments and options
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant \
${LOCALBASE}/share/java/classes/commons-lang.jar:${PORTSDIR}/java/jakarta-commons-lang
-USE_JAVA= 1.2+
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
ANT?= ${LOCALBASE}/bin/ant
.if defined(NOPORTDOCS)
ANT_TARGET= jar -Dnoget
@@ -34,9 +34,10 @@ JAVASHAREDIR= ${PREFIX}/share/java
JARDIR= ${JAVASHAREDIR}/classes
JARFILE= ${PORTNAME}-${PORTVERSION}-beta-2-dev.jar
DESTJARFILE= ${PORTNAME}.jar
+PLIST_FILES+= ${JAVAJARDIR:S,^${PREFIX}/,,}/${DESTJARFILE}
.if !defined(NOPORTDOCS)
-PORTDOCS= ${WRKSRC}/target/docs/apidocs
+PORTDOCS= apidocs LICENSE.txt
.endif
do-build:
@@ -51,7 +52,8 @@ do-install:
.if !defined(NOPORTDOCS)
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
- @${CP} -r ${WRKSRC}/target/docs/apidocs/* ${DOCSDIR}
+ @${CP} -r ${WRKSRC}/target/docs/apidocs ${DOCSDIR}/
+ @${CP} -r ${WRKSRC}/LICENSE.txt ${DOCSDIR}/
@${ECHO} " [ DONE ]"
.endif