aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2004-05-18 09:37:03 +0800
committerlinimon <linimon@FreeBSD.org>2004-05-18 09:37:03 +0800
commit97caf9c90e08616ec4db051e92d20e92746af318 (patch)
tree6118700176f30ccafbfa3804e2b6516acce170e2 /java
parent9f751c30cb2992b7f6962233b240d66d8c3f660d (diff)
downloadfreebsd-ports-gnome-97caf9c90e08616ec4db051e92d20e92746af318.tar.gz
freebsd-ports-gnome-97caf9c90e08616ec4db051e92d20e92746af318.tar.zst
freebsd-ports-gnome-97caf9c90e08616ec4db051e92d20e92746af318.zip
Update to latest bsd.java.mk; remove pkg-plist; pacify portlint (including
its recommendation to use MASTER_SITE_APACHE_JAKARTA -- maintainer, I hope that's ok.) PR: java/66061 Submitted by: Dave Glowacki <dglo at glowacki.dyndns.org> (maintainer)
Diffstat (limited to 'java')
-rw-r--r--java/jakarta-regexp/Makefile38
-rw-r--r--java/jakarta-regexp/pkg-plist1
2 files changed, 19 insertions, 20 deletions
diff --git a/java/jakarta-regexp/Makefile b/java/jakarta-regexp/Makefile
index 7da09b534c28..afb7ea475ac0 100644
--- a/java/jakarta-regexp/Makefile
+++ b/java/jakarta-regexp/Makefile
@@ -6,51 +6,51 @@
PORTNAME= jakarta-regexp
PORTVERSION= 1.3
+PORTREVISION= 1
CATEGORIES= java
-MASTER_SITES= http://www.apache.org/dist/jakarta/regexp/binaries/ \
- http://ftp.epix.net/apache/jakarta/regexp/binaries/
+MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
+MASTER_SITE_SUBDIR= regexp/binaries
MAINTAINER= dglo@ssec.wisc.edu
COMMENT= Regular expressions for Java
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant
-USE_JAVA= 1.2+
-NEED_JAVAC= YES
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
PLIST= ${WRKDIR}/PLIST
JAVALIBNAME= ${PORTNAME}-${PORTVERSION}
-APIDOCSDIR= ${DOCSDIR}/${JAVALIBNAME}
-pre-install:
- @${RM} -f ${PLIST}
- @${TOUCH} ${PLIST}
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
do-build:
@if [ ! -f ${WRKSRC}/lib ]; then ${MKDIR} ${WRKSRC}/lib; fi
@cd ${WRKSRC} && \
${SETENV} JAVA_HOME=${JAVA_HOME} ant -Djakarta-site2.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
- @${ECHO} ${JAVAJARDIR}/${PORTNAME}.jar | \
- ${SED} "s,${PREFIX}/*,," >> ${PLIST}
- @${ECHO} "@unexec ${RMDIR} ${JAVAJARDIR} 2>/dev/null || true" | \
- ${SED} "s,${PREFIX}/*,," >> ${PLIST}
do-install-apidocs:
.if !defined(NOPORTDOCS)
- @${MKDIR} ${APIDOCSDIR}
- @${CP} -r ${WRKSRC}/docs/api/* ${APIDOCSDIR}
- @${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${APIDOCSDIR}
- @${FIND} ${APIDOCSDIR} -type f -print | \
- ${SED} "s,${PREFIX}/*,," >> ${PLIST}
- @${FIND} ${APIDOCSDIR} -type d -print | ${SORT} -r | \
- ${SED} -e "s,${PREFIX}/*,," -e "s,^,@dirrm ,g" >> ${PLIST}
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -r ${WRKSRC}/docs/api/* ${DOCSDIR}
+ @${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/java/jakarta-regexp/pkg-plist b/java/jakarta-regexp/pkg-plist
deleted file mode 100644
index 7721e1d37d83..000000000000
--- a/java/jakarta-regexp/pkg-plist
+++ /dev/null
@@ -1 +0,0 @@
-share/java/classes/jakarta-regexp.jar