summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-04-07 08:34:20 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-04-07 08:34:20 +0000
commitd58ff756d48df4ed91a49408c0cd5cf6624b614f (patch)
tree68b9d879ac2dbc8359dd51da7a30f3ef266d144d /java
parentnet/openldap20 can't start with sample command line syntax in the startup scr... (diff)
add java-getopt 1.0.9
Java version of GNU getopt family functions
Notes
Notes: svn path=/head/; revision=78508
Diffstat (limited to '')
-rw-r--r--java/Makefile1
-rw-r--r--java/java-getopt/Makefile31
-rw-r--r--java/java-getopt/distinfo1
-rw-r--r--java/java-getopt/pkg-descr5
-rw-r--r--java/java-getopt/pkg-plist2
5 files changed, 40 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile
index 4b6d28a631e4..6211285c3041 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -27,6 +27,7 @@
SUBDIR += janosvm
SUBDIR += java-checkstyle
SUBDIR += java-cup
+ SUBDIR += java-getopt
SUBDIR += java-tutorial
SUBDIR += javamail
SUBDIR += javavmwrapper
diff --git a/java/java-getopt/Makefile b/java/java-getopt/Makefile
new file mode 100644
index 000000000000..48b389a0963c
--- /dev/null
+++ b/java/java-getopt/Makefile
@@ -0,0 +1,31 @@
+# ex:ts=8
+# Ports collection makefile for: java-getopt
+# Date created: Apr 7, 2003
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= getopt
+PORTVERSION= 1.0.9
+CATEGORIES= java
+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
+
+USE_JAVA= 1.1+
+NO_WRKSUBDIR= yes
+EXTRACT_CMD= ${CP}
+EXTRACT_BEFORE_ARGS= # empty
+EXTRACT_AFTER_ARGS= .
+NO_BUILD= yes
+
+do-install:
+ @${MKDIR} ${JAVAJARDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PKGNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar
+
+.include <bsd.port.mk>
diff --git a/java/java-getopt/distinfo b/java/java-getopt/distinfo
new file mode 100644
index 000000000000..6442925f14bb
--- /dev/null
+++ b/java/java-getopt/distinfo
@@ -0,0 +1 @@
+MD5 (java-getopt-1.0.9.jar) = 6d4cd6368c3407f0f7274ec4cbfc677e
diff --git a/java/java-getopt/pkg-descr b/java/java-getopt/pkg-descr
new file mode 100644
index 000000000000..f09b99f128f4
--- /dev/null
+++ b/java/java-getopt/pkg-descr
@@ -0,0 +1,5 @@
+This is a Java port of GNU getopt, a class for parsing command line arguments
+passed to programs. It it based on the C getopt() functions in glibc 2.0.6 and
+should parse options in a 100% compatible manner.
+
+WWW: http://www.urbanophile.com/~arenn/hacking/download.html#getopt
diff --git a/java/java-getopt/pkg-plist b/java/java-getopt/pkg-plist
new file mode 100644
index 000000000000..76e605672aab
--- /dev/null
+++ b/java/java-getopt/pkg-plist
@@ -0,0 +1,2 @@
+share/java/classes/getopt.jar
+@unexec rmdir %D/share/java/classes 2>/dev/null || true