New package.
authorMiroslav Šulc <fordfrog@gentoo.org>
Sat, 21 Apr 2007 11:27:28 +0000 (11:27 +0000)
committerMiroslav Šulc <fordfrog@gentoo.org>
Sat, 21 Apr 2007 11:27:28 +0000 (11:27 +0000)
dev-java/jsap/ChangeLog [new file with mode: 0644]
dev-java/jsap/Manifest [new file with mode: 0644]
dev-java/jsap/files/digest-jsap-2.1 [new file with mode: 0644]
dev-java/jsap/files/jsap-2.1-build.xml.patch [new file with mode: 0644]
dev-java/jsap/jsap-2.1.ebuild [new file with mode: 0644]
dev-java/jsap/metadata.xml [new file with mode: 0644]

diff --git a/dev-java/jsap/ChangeLog b/dev-java/jsap/ChangeLog
new file mode 100644 (file)
index 0000000..66e4624
--- /dev/null
@@ -0,0 +1,7 @@
+# ChangeLog for dev-java/jsap
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jsap/ChangeLog,v 1.1 2007/04/21 11:27:28 fordfrog Exp $
+
+  21 Apr 2007; Miroslav Šulc <fordfrog@gentoo.org> ChangeLog:
+  New package.
+
diff --git a/dev-java/jsap/Manifest b/dev-java/jsap/Manifest
new file mode 100644 (file)
index 0000000..531301f
--- /dev/null
@@ -0,0 +1,16 @@
+AUX jsap-2.1-build.xml.patch 872 RMD160 b77586cde7fd0f513e5bf4fbe17ccc88191778c6 SHA1 d8ba690e333954d3675113a51fcf7a4d10d4fc08 SHA256 90b4df32a7653a239058178a094f2408e17f17ef3bce2250d7c6b0e8315e1e84
+MD5 e75bf41389604dd207d1f7580670a6c4 files/jsap-2.1-build.xml.patch 872
+RMD160 b77586cde7fd0f513e5bf4fbe17ccc88191778c6 files/jsap-2.1-build.xml.patch 872
+SHA256 90b4df32a7653a239058178a094f2408e17f17ef3bce2250d7c6b0e8315e1e84 files/jsap-2.1-build.xml.patch 872
+DIST JSAP-2.1-src.tar.gz 1281840 RMD160 0deb999fe9f3af38734380d00ea2b4cdfa1d30b9 SHA1 0dc2a3c44740fbc0ec8ceded3058014dbb3c8801 SHA256 5146bf75cba18fdf9299462a4127e95919c884494aaf3ed023cb2950217a0862
+EBUILD jsap-2.1.ebuild 1270 RMD160 8ca624004fe123a86c0dc0c28a07d4a03fcb7aaa SHA1 a756331642c260c740ddbe8e04c09de3bb8d3817 SHA256 23cdfd93ce37b49aaa0238271ab34e4706e41fa7cd4f4f788c6a4d538319a07b
+MD5 fb2f5a2d30e45fedf96135411dbd830c jsap-2.1.ebuild 1270
+RMD160 8ca624004fe123a86c0dc0c28a07d4a03fcb7aaa jsap-2.1.ebuild 1270
+SHA256 23cdfd93ce37b49aaa0238271ab34e4706e41fa7cd4f4f788c6a4d538319a07b jsap-2.1.ebuild 1270
+MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9
+MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
+RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 metadata.xml 157
+SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 metadata.xml 157
+MD5 dee1da9a8eb9c64eafe9585d5e0feba7 files/digest-jsap-2.1 241
+RMD160 fdefcae9a0a6bf3f48aa2be830f1524ab4ff0795 files/digest-jsap-2.1 241
+SHA256 b2204b7a0d620ef38c6c20b6427fa5eeb293ba451cd85975b25a535da4434724 files/digest-jsap-2.1 241
diff --git a/dev-java/jsap/files/digest-jsap-2.1 b/dev-java/jsap/files/digest-jsap-2.1
new file mode 100644 (file)
index 0000000..13d8967
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 f5aef90601e77cbb4b3db4a691b66a42 JSAP-2.1-src.tar.gz 1281840
+RMD160 0deb999fe9f3af38734380d00ea2b4cdfa1d30b9 JSAP-2.1-src.tar.gz 1281840
+SHA256 5146bf75cba18fdf9299462a4127e95919c884494aaf3ed023cb2950217a0862 JSAP-2.1-src.tar.gz 1281840
diff --git a/dev-java/jsap/files/jsap-2.1-build.xml.patch b/dev-java/jsap/files/jsap-2.1-build.xml.patch
new file mode 100644 (file)
index 0000000..8fae7e8
--- /dev/null
@@ -0,0 +1,22 @@
+--- build.xml.original 2007-04-21 12:58:25.000000000 +0200
++++ build.xml  2007-04-21 13:08:39.000000000 +0200
+@@ -124,8 +124,8 @@
+     <!-- compile the JSAP API -->
+     <target name="compile-api" depends="init" >
+         <javac target="1.4" source="1.4" destdir="${build}" srcdir="${javasrc}">
+-<!--          <exclude name="${testFiles}" />
+-              <exclude name="${exampleFiles}" /> -->
++              <exclude name="${testFiles}" />
++              <exclude name="${exampleFiles}" />
+               <classpath refid="lib.class.path" />
+         </javac>
+         <copy todir="${build}">
+@@ -168,7 +168,7 @@
+     </target>
+       <!-- make the jar -->
+-    <target name="jar" depends="clean,test">
++    <target name="jar" depends="clean,compile-api">
+         <mkdir dir="${dist}"/>
+         <jar basedir="${build}" jarfile="${dist}/${jarname}">
+               <exclude name="${testFiles}" />
diff --git a/dev-java/jsap/jsap-2.1.ebuild b/dev-java/jsap/jsap-2.1.ebuild
new file mode 100644 (file)
index 0000000..b02f990
--- /dev/null
@@ -0,0 +1,66 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jsap/jsap-2.1.ebuild,v 1.1 2007/04/21 11:27:28 fordfrog Exp $
+
+JAVA_PKG_IUSE="doc source"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Java Simple Arguments Parser (JSAP)"
+HOMEPAGE="http://sourceforge.net/projects/jsap"
+MY_PN=JSAP
+MY_P=${MY_PN}-${PV}
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="test"
+
+COMMON_DEP="
+       >=dev-java/ant-core-1.7.0
+       dev-java/xstream"
+
+DEPEND=">=virtual/jdk-1.4
+       ${COMMON_DEP}
+       =dev-java/snip-0.11*
+       =dev-java/rundoc-0.11*
+       test? (
+               dev-java/ant-junit
+               =dev-java/junit-3.8*
+       )"
+
+RDEPEND=">=virtual/jre-1.4
+       ${COMMON_DEP}"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}/${P}-build.xml.patch"
+       java-ant_rewrite-classpath
+       cd "${S}/lib"
+
+       rm -v *.jar
+}
+
+EANT_BUILD_TARGET="jar"
+EANT_JAVADOC_TARGET="javadoc"
+EANT_ANT_TASKS="rundoc snip"
+EANT_GENTOO_CLASSPATH="ant-core xstream"
+
+src_test() {
+       ANT_TASKS="ant-junit rundoc snip" eant test
+}
+
+src_install() {
+       java-pkg_newjar dist/${MY_P}.jar
+
+       if use doc; then
+               dohtml doc/*.html
+               java-pkg_dojavadoc doc/javadoc
+               dosym /usr/share/doc/${PF}/html/api /usr/share/doc/${PF}/html/javadoc
+       fi
+
+       use source && java-pkg_dosrc src/java/com
+}
diff --git a/dev-java/jsap/metadata.xml b/dev-java/jsap/metadata.xml
new file mode 100644 (file)
index 0000000..838c00a
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>