diff options
author | Herve Quiroz <hq@FreeBSD.org> | 2004-11-23 11:13:16 +0000 |
---|---|---|
committer | Herve Quiroz <hq@FreeBSD.org> | 2004-11-23 11:13:16 +0000 |
commit | ee80063991fddada64db9ca32d7bdfffe2eb74b6 (patch) | |
tree | 51366a014615014b5de617ffbb089a497fea2110 /java | |
parent | 6e5ba112338d64218f027f62a1ad86f44cd61f71 (diff) | |
download | ports-ee80063991fddada64db9ca32d7bdfffe2eb74b6.tar.gz ports-ee80063991fddada64db9ca32d7bdfffe2eb74b6.zip |
- Update to bsd.java.mk 2.0
- Use USE_ANT (and set USE_JIKES=no)
- Use JAVAJARDIR
- Dynamic plist
- Various minor improvements
Notes
Notes:
svn path=/head/; revision=122216
Diffstat (limited to 'java')
-rw-r--r-- | java/jakarta-commons-lang/Makefile | 38 | ||||
-rw-r--r-- | java/jakarta-commons-lang/pkg-plist | 1 |
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 |