aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-06-15 13:48:07 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-06-15 13:48:07 +0000
commit8f802f2957366c3df8bf0ca1cb4e1d43a9e0c809 (patch)
tree88b5c9d6044dfc344d3726a796eab3cd17ac6d29 /java
parentbfdd66874bd4fce35205d98fe44ebd9f94da038e (diff)
downloadports-8f802f2957366c3df8bf0ca1cb4e1d43a9e0c809.tar.gz
ports-8f802f2957366c3df8bf0ca1cb4e1d43a9e0c809.zip
Notes
Diffstat (limited to 'java')
-rw-r--r--java/jakarta-commons-lang/Makefile23
-rw-r--r--java/jakarta-commons-lang/distinfo3
2 files changed, 22 insertions, 4 deletions
diff --git a/java/jakarta-commons-lang/Makefile b/java/jakarta-commons-lang/Makefile
index 4094cdeb6aad..4c6bbb417c99 100644
--- a/java/jakarta-commons-lang/Makefile
+++ b/java/jakarta-commons-lang/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= commons-lang
-PORTVERSION= 2.0
-CATEGORIES= java
+PORTVERSION= 2.1
+CATEGORIES= java devel
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= commons/lang/source
PKGNAMEPREFIX= jakarta-
@@ -16,12 +16,16 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= hq@FreeBSD.org
COMMENT= Jakarta library with helper utilities for the java.lang API
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
USE_JAVA= yes
JAVA_VERSION= 1.2+
USE_ANT= yes
USE_JIKES= no
+USE_REINPLACE= yes
+
ALL_TARGET= jar
.if !defined(NOPORTDOCS)
ALL_TARGET+= javadoc
@@ -32,6 +36,19 @@ JARFILE= ${PORTNAME}-${PORTVERSION}.jar
DESTJARFILE= ${PORTNAME}.jar
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
+.include <bsd.port.pre.mk>
+
+JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1
+
+.if ${JDK_API} != ""
+MAKE_ARGS+= -Djdk.api=${JDK_API}
+
+do-configure:
+ ${REINPLACE_CMD} -e 's|\(</javadoc>\)|<link offline="true" packagelistLoc="$${jdk.api}"/>\1|' \
+ ${WRKSRC}/build.xml
+
+.endif
+
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
@${INSTALL_DATA} ${WRKSRC}/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
@@ -45,4 +62,4 @@ do-install:
@${ECHO_MSG} " [ DONE ]"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/java/jakarta-commons-lang/distinfo b/java/jakarta-commons-lang/distinfo
index 961e2c7c488b..5572157a50b7 100644
--- a/java/jakarta-commons-lang/distinfo
+++ b/java/jakarta-commons-lang/distinfo
@@ -1 +1,2 @@
-MD5 (commons-lang-2.0-src.tar.gz) = 200a40d46fe6a60af76acf973298b8fe
+MD5 (commons-lang-2.1-src.tar.gz) = d8379e93f597b2ae6d1f7b4bb7e83fce
+SIZE (commons-lang-2.1-src.tar.gz) = 373908