diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-31 11:50:14 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-31 11:50:14 +0000 |
commit | 4e24a1e8dc1bd57ada46735e521143694be2ad7b (patch) | |
tree | 7a071af460a04d2058eb0ca480894f4abfd7651a /java/jakarta-regexp | |
parent | 023ce00d00c5dc7bab1a3af42672656e80d44eac (diff) | |
download | ports-4e24a1e8dc1bd57ada46735e521143694be2ad7b.tar.gz ports-4e24a1e8dc1bd57ada46735e521143694be2ad7b.zip |
Notes
Diffstat (limited to 'java/jakarta-regexp')
-rw-r--r-- | java/jakarta-regexp/Makefile | 46 |
1 files changed, 13 insertions, 33 deletions
diff --git a/java/jakarta-regexp/Makefile b/java/jakarta-regexp/Makefile index 98117cc4e334..77701aca2dd9 100644 --- a/java/jakarta-regexp/Makefile +++ b/java/jakarta-regexp/Makefile @@ -11,44 +11,24 @@ MASTER_SITE_SUBDIR= regexp/binaries MAINTAINER= ports@FreeBSD.org COMMENT= Regular expressions for Java -BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant - USE_JAVA= yes JAVA_VERSION= 1.6+ - -PLIST= ${WRKDIR}/PLIST +USE_ANT= yes +ALL_TARGET= test package +MAKE_ARGS= -Djakarta-site.dir=${WRKSRC} JAVALIBNAME= ${PORTNAME}-${PORTVERSION} -.if !defined(NOPORTDOCS) +PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar PORTDOCS= * -.endif - -NO_STAGE= yes -do-build: - @if [ ! -f ${WRKSRC}/lib ]; then ${MKDIR} ${WRKSRC}/lib; fi - @cd ${WRKSRC} && \ - ${SETENV} JAVA_HOME=${JAVA_HOME} ant -Djakarta-site.dir=${WRKSRC} test package - -pre-install: - @${RM} -f ${PLIST} - @${TOUCH} ${PLIST} - @${ECHO} ${JAVAJARDIR}/${PORTNAME}.jar | \ - ${SED} "s,${PREFIX}/*,," >> ${PLIST} - @${ECHO} "@unexec ${RMDIR} ${JAVAJARDIR} 2>/dev/null || true" | \ - ${SED} "s,${PREFIX}/*,," >> ${PLIST} - -do-install: do-install-jar do-install-apidocs - -do-install-jar: - @${MKDIR} ${JAVAJARDIR} - @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar - -do-install-apidocs: -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${CP} -r ${WRKSRC}/docs/api/* ${DOCSDIR} - @${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} -.endif + +OPTIONS_DEFINE= DOCS + +do-install: + @${MKDIR} ${STAGEDIR}${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/docs/api && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk> |