aboutsummaryrefslogtreecommitdiff
path: root/devel/jsap
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-01-16 21:26:58 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-01-16 21:26:58 +0000
commit0e3579370e2f23a8a95ea997a2311d8cdc444d63 (patch)
tree83694871fbe08f6014ca7f21d0a5ed33a3a1c5a4 /devel/jsap
parent3e176f85fa5027859629e7a873e3bf3d2782988a (diff)
downloadports-0e3579370e2f23a8a95ea997a2311d8cdc444d63.tar.gz
ports-0e3579370e2f23a8a95ea997a2311d8cdc444d63.zip
JSAP: the Java-based Simple Argument Parser
JSAP parses your command line and instantiates objects of types you specify based upon that command line. If you configure JSAP to expect an Integer on the command line, and the user does not provide a String that can be converted to an Integer, JSAP will alert your program to the fact that there was a problem with the command line. If JSAP indicates that your command line was successfully parsed, you are guaranteed an Integer when you request that parameter's value from your program. There's a pretty big (and growing) list of return types supported by JSAP. WWW: http://http://www.martiansoftware.com/jsap/index.html
Notes
Notes: svn path=/head/; revision=126621
Diffstat (limited to 'devel/jsap')
-rw-r--r--devel/jsap/Makefile46
-rw-r--r--devel/jsap/distinfo2
-rw-r--r--devel/jsap/pkg-descr12
3 files changed, 60 insertions, 0 deletions
diff --git a/devel/jsap/Makefile b/devel/jsap/Makefile
new file mode 100644
index 000000000000..4c20aab03900
--- /dev/null
+++ b/devel/jsap/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: jsap
+# Date created: 2005-01-16
+# Whom: Herve Quiroz <hq@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jsap
+DISTVERSION= 1.03a
+CATEGORIES= devel java
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME:U}-${DISTVERSION}
+
+MAINTAINER= hq@FreeBSD.org
+COMMENT= Java package to parse command-line arguments
+
+USE_JAVA= yes
+JAVA_VERSION= 1.3+
+NO_BUILD= yes
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= ch01.html ch01s02.html ch02.html ch03.html ch03s02.html \
+ ch03s03.html ch03s04.html ch03s05.html ch03s06.html \
+ ch03s07.html ch04.html ch04s02.html ch04s03.html ch04s04.html \
+ ch04s05.html ch05.html ch06.html ch07.html ch08.html ch09.html \
+ ch10.html ch11.html ch12.html ch13.html ch14.html ch15.html \
+ index.html javadoc manual.css pr01.html
+.endif
+PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
+
+do-install:
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
+ @${MKDIR} ${JAVAJARDIR}
+ @${INSTALL_DATA} ${WRKSRC}/lib/${DISTNAME:S,-,_,}.jar ${JAVAJARDIR}/${PORTNAME}.jar
+ @${ECHO_MSG} " [ DONE ]"
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}/..."
+ @${MKDIR} ${DOCSDIR}
+ @cd ${WRKSRC}/doc/ \
+ && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
+ && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+ @${ECHO_MSG} " [ DONE ]"
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/jsap/distinfo b/devel/jsap/distinfo
new file mode 100644
index 000000000000..6e26be1b522b
--- /dev/null
+++ b/devel/jsap/distinfo
@@ -0,0 +1,2 @@
+MD5 (JSAP-1.03a.tar.gz) = 32d25633711805976ecf5985c9747740
+SIZE (JSAP-1.03a.tar.gz) = 163181
diff --git a/devel/jsap/pkg-descr b/devel/jsap/pkg-descr
new file mode 100644
index 000000000000..e0505b00d8a7
--- /dev/null
+++ b/devel/jsap/pkg-descr
@@ -0,0 +1,12 @@
+JSAP: the Java-based Simple Argument Parser
+
+JSAP parses your command line and instantiates objects of types you specify
+based upon that command line. If you configure JSAP to expect an Integer on the
+command line, and the user does not provide a String that can be converted to
+an Integer, JSAP will alert your program to the fact that there was a problem
+with the command line. If JSAP indicates that your command line was
+successfully parsed, you are guaranteed an Integer when you request that
+parameter's value from your program. There's a pretty big (and growing) list of
+return types supported by JSAP.
+
+WWW: http://http://www.martiansoftware.com/jsap/index.html