aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2004-11-23 19:13:16 +0800
committerhq <hq@FreeBSD.org>2004-11-23 19:13:16 +0800
commitf0947dd85dbb28dcac3e2d47726e767bf48102db (patch)
treeb51161a49bf1ba9cd70ba7691cee15fa1cd3bac9
parent66ee3a404382ed05280e6786393ee4a349361992 (diff)
downloadfreebsd-ports-gnome-f0947dd85dbb28dcac3e2d47726e767bf48102db.tar.gz
freebsd-ports-gnome-f0947dd85dbb28dcac3e2d47726e767bf48102db.tar.zst
freebsd-ports-gnome-f0947dd85dbb28dcac3e2d47726e767bf48102db.zip
- Update to bsd.java.mk 2.0
- Use USE_ANT (and set USE_JIKES=no) - Use JAVAJARDIR - Dynamic plist - Various minor improvements
-rw-r--r--java/jakarta-commons-lang/Makefile38
-rw-r--r--java/jakarta-commons-lang/pkg-plist1
2 files changed, 17 insertions, 22 deletions
diff --git a/java/jakarta-commons-lang/Makefile b/java/jakarta-commons-lang/Makefile
index 9d2ba11d920d..223ff1ae3ff9 100644
--- a/java/jakarta-commons-lang/Makefile
+++ b/java/jakarta-commons-lang/Makefile
@@ -16,37 +16,33 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= znerd@FreeBSD.org
COMMENT= Jakarta library with helper utilities for the java.lang API
-BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
-USE_JAVA= 1.2+
+USE_ANT= yes
+USE_JIKES= no
-WRKSRC= ${WRKDIR}/${DISTNAME}
-PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
-ANT?= ${LOCALBASE}/bin/ant
-.if defined(NOPORTDOCS)
-ANT_TARGET= jar
-.else
-ANT_TARGET= jar javadoc
+ALL_TARGET= jar
+.if !defined(NOPORTDOCS)
+ALL_TARGET+= javadoc
PORTDOCS= *
.endif
-JAVASHAREDIR= ${PREFIX}/share/java
-JARDIR= ${JAVASHAREDIR}/classes
+
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
DESTJARFILE= ${PORTNAME}.jar
-
-do-build:
- @cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
+PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
do-install:
- @${ECHO} -n ">> Installing JAR as ${JARDIR}/${DESTJARFILE}..."
- @${CP} ${WRKSRC}/dist/${JARFILE} ${JARDIR}/${DESTJARFILE}
- @${ECHO} " [ DONE ]"
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
+ @${INSTALL_DATA} ${WRKSRC}/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
+ @${ECHO_MSG} " [ DONE ]"
.if !defined(NOPORTDOCS)
- @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
- @${MKDIR} ${DOCSDIR}
- @${CP} -r ${WRKSRC}/dist/docs/api/* ${DOCSDIR}
- @${ECHO} " [ DONE ]"
+ @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
+ @cd ${WRKSRC}/dist/docs/api \
+ && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
+ && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+ @${ECHO_MSG} " [ DONE ]"
.endif
.include <bsd.port.mk>
diff --git a/java/jakarta-commons-lang/pkg-plist b/java/jakarta-commons-lang/pkg-plist
deleted file mode 100644
index 117c4ae1f752..000000000000
--- a/java/jakarta-commons-lang/pkg-plist
+++ /dev/null
@@ -1 +0,0 @@
-share/java/classes/commons-lang.jar