aboutsummaryrefslogtreecommitdiff
path: root/java/java-getopt
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-10-20 12:03:41 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-10-20 12:03:41 +0000
commit9c152ae64602a1f2c71315a69ee7bafe76240a5a (patch)
treec9dc33d54ba479ac284c4991cdfdd8059a4b1167 /java/java-getopt
parent1701946e545c293b9d4a8ce9ad5f09933949227e (diff)
downloadports-9c152ae64602a1f2c71315a69ee7bafe76240a5a.tar.gz
ports-9c152ae64602a1f2c71315a69ee7bafe76240a5a.zip
Notes
Diffstat (limited to 'java/java-getopt')
-rw-r--r--java/java-getopt/Makefile38
-rw-r--r--java/java-getopt/distinfo4
2 files changed, 29 insertions, 13 deletions
diff --git a/java/java-getopt/Makefile b/java/java-getopt/Makefile
index 197ed621eb5a..4368b64ee1d4 100644
--- a/java/java-getopt/Makefile
+++ b/java/java-getopt/Makefile
@@ -1,4 +1,3 @@
-# ex:ts=8
# Ports collection makefile for: java-getopt
# Date created: Apr 7, 2003
# Whom: ijliao
@@ -7,26 +6,43 @@
#
PORTNAME= getopt
-PORTVERSION= 1.0.9
-CATEGORIES= java
+PORTVERSION= 1.0.10
+CATEGORIES= java devel
MASTER_SITES= ftp://ftp.urbanophile.com/pub/arenn/software/sources/
PKGNAMEPREFIX= java-
DISTNAME= ${PKGNAME}
-EXTRACT_SUFX= .jar
MAINTAINER= ports@FreeBSD.org
COMMENT= Java version of GNU getopt family functions
-PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
-USE_JAVA= 1.1+
+USE_JAVA= yes
+USE_ANT= yes
+ALL_TARGETS= jar
+
NO_WRKSUBDIR= yes
-EXTRACT_CMD= ${CP}
-EXTRACT_BEFORE_ARGS= # empty
-EXTRACT_AFTER_ARGS= .
-NO_BUILD= yes
+
+PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
+.if !defined(NOPORTDOCS)
+OTHERDOCS= COPYING.LIB ChangeLog README
+PORTDOCS= api ${OTHERDOCS}
+ALL_TARGETS+= javadoc
+.endif
+
+post-extract:
+ @${CP} ${WRKSRC}/gnu/getopt/buildx.xml ${WRKSRC}/build.xml
do-install:
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${MKDIR} ${JAVAJARDIR}
- ${INSTALL_DATA} ${WRKSRC}/${PKGNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
+ @${INSTALL_DATA} ${WRKSRC}/build/lib/gnu.getopt.jar ${JAVAJARDIR}/${PORTNAME}.jar
+ @${ECHO_MSG} " [ DONE ]"
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
+ @${MKDIR} ${DOCSDIR}/api
+ @cd ${WRKSRC}/build/ && ${FIND} api \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
+ @${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/gnu/getopt/,} ${DOCSDIR}/
+ @${ECHO_MSG} " [ DONE ]"
+.endif
.include <bsd.port.mk>
diff --git a/java/java-getopt/distinfo b/java/java-getopt/distinfo
index a0debb24f795..393ad52b6150 100644
--- a/java/java-getopt/distinfo
+++ b/java/java-getopt/distinfo
@@ -1,2 +1,2 @@
-MD5 (java-getopt-1.0.9.jar) = 6d4cd6368c3407f0f7274ec4cbfc677e
-SIZE (java-getopt-1.0.9.jar) = 53875
+MD5 (java-getopt-1.0.10.tar.gz) = 30872c62c6b1d7fba9097995ebe281a5
+SIZE (java-getopt-1.0.10.tar.gz) = 44090