summaryrefslogtreecommitdiff
path: root/dev-java/jcmdline
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/jcmdline')
-rw-r--r--dev-java/jcmdline/Manifest6
-rw-r--r--dev-java/jcmdline/files/jcmdline-1.0.2-gentoo.patch23
-rw-r--r--dev-java/jcmdline/jcmdline-1.0.2-r2.ebuild35
-rw-r--r--dev-java/jcmdline/jcmdline-2.0.0.ebuild28
-rw-r--r--dev-java/jcmdline/metadata.xml15
5 files changed, 107 insertions, 0 deletions
diff --git a/dev-java/jcmdline/Manifest b/dev-java/jcmdline/Manifest
new file mode 100644
index 000000000000..9ec9f9ad379f
--- /dev/null
+++ b/dev-java/jcmdline/Manifest
@@ -0,0 +1,6 @@
+AUX jcmdline-1.0.2-gentoo.patch 934 BLAKE2B a7e94aeeb042722c1feae194e396a7083095a017d8dc77d45035c515ac27c5bb8dd54e66fe02158a0154ab7cda964aa2568b844824df48c0586cda2f84bf24b7 SHA512 1326e1867b6fcc0ad37e0f0d557f518c5df5b8a2d87be91c66c2d9e72c044221713df5a864f5500e3820f853b415bea0612f02d8e30525d28aa10bb5002d2608
+DIST jcmdline-1.0.2.zip 397472 BLAKE2B 6c40c27397b11d21400d9e251cb4a84f13281fa8aaa0a772390724fed0fbbad7613a0c13f6dda1b53acb311be37a3a5ed63a4475a271d63d48322572d5215a2b SHA512 b261856eed9426257fd6391d45760f96f0085a40167632bfb2f85d35071e58d766553819bc0f8022b92fa193d47464928d09d2b0772a08ba484dd954b6206fd7
+DIST jcmdline-2.0.0.zip 395547 BLAKE2B 0dd00785a970fe614aef86e0d1fc8a465c9cffc96d2e157a03ed7e68e4f471a6cfdef8d7af5d90171da1fdeb6130f9a5f34b5dfb8765463e2ee7fdcfdd2991b1 SHA512 cbd5fcfa01b733ed1904bf56fa509dbf6d6764091902b31d2a620ba1e302d1ebac8c54d20ebc9031d7724aa1578cc6ca5befb6f38625780fd021e1b002674cb9
+EBUILD jcmdline-1.0.2-r2.ebuild 753 BLAKE2B 053caec253c6d244b6344b18621bddfe08c8595166ec8374218e86b4ee822d3a36c89d0cc0e350a2b8e6b9b2df8a3b52dfb2f0c0bb5ffc9ada7dda63cabaa18b SHA512 8cce1e6185e352cdafcc3704d8eedf7248fc4a19f15b0ef49de53bdcff5e14fbd8318efb3f30162a422a3443d4f636ad85f8fca210a7c411911cfe7aed9029a8
+EBUILD jcmdline-2.0.0.ebuild 545 BLAKE2B 98674e04b67b757aeb7f1d18de9e9ef07d346f633fe50a338e7e50f880cfa65da759829a079214bb640a007fc0e018c02596f22ea449b7f03060d22e10d366b6 SHA512 2a148a9d420453e550e7343037d7e607835a539904b53c08ca9d57b32ec09335efb4b9683099a6d6e0d93fb0bd5eefff5836c980ad7d3c5917f45ce4d4b5da01
+MISC metadata.xml 489 BLAKE2B 141339c5c28f928c1dbc166edb8ccb77078b7a5ce578ae4af3188c4f6a39c165cf784774c2916c7ae127e7f71a25a23953917b47646e28854e4a950435754044 SHA512 c332bc5180c891457f2cd34ea744b01771ff771b0ad4b1138ce01a0563d82212fa9f2988967ab0c1b7e41947bf25d8c0f627732dea9dda728fd887c287206430
diff --git a/dev-java/jcmdline/files/jcmdline-1.0.2-gentoo.patch b/dev-java/jcmdline/files/jcmdline-1.0.2-gentoo.patch
new file mode 100644
index 000000000000..c0e593eca335
--- /dev/null
+++ b/dev-java/jcmdline/files/jcmdline-1.0.2-gentoo.patch
@@ -0,0 +1,23 @@
+--- build.xml.orig 2005-02-04 22:07:21.800581304 +0100
++++ build.xml 2005-02-04 22:11:43.734761256 +0100
+@@ -170,6 +170,11 @@
+ <echo message="jcmdline Unit Test docs have been written to ${docdir}/jcmdline/utapi" />
+ </target>
+
++ <target name="jar" depends="build">
++ <jar jarfile="${basedir}/jcmdline.jar"
++ basedir="${builddir}/classes" />
++ </target>
++
+ <!-- Don't distribute anything that will not pass UTs -->
+ <target name="dist" depends="clean, ut, doc"
+ description="prepare distribution files">
+@@ -203,8 +208,6 @@
+ </copy>
+
+ <!-- add the jar =====================================================-->
+- <jar jarfile="${tmpDistBuildDir}/${projRelease}.jar"
+- basedir="${builddir}/classes" />
+
+ <!-- create a gzipped tarball for the Unix crowd =====================-->
+ <tar tarfile="${distdir}/${projRelease}.tar"
diff --git a/dev-java/jcmdline/jcmdline-1.0.2-r2.ebuild b/dev-java/jcmdline/jcmdline-1.0.2-r2.ebuild
new file mode 100644
index 000000000000..02429bede5f1
--- /dev/null
+++ b/dev-java/jcmdline/jcmdline-1.0.2-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Library for parsing/handling of command line parameters"
+HOMEPAGE="http://jcmdline.sourceforge.net/"
+SRC_URI="mirror://sourceforge/jcmdline/${P}.zip"
+LICENSE="MPL-1.1"
+SLOT="1.0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip"
+RDEPEND=">=virtual/jre-1.4"
+
+EANT_DOC_TARGET="doc"
+
+java_prepare() {
+ find -name "*.jar" -delete || die
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ dodoc CHANGES CREDITS README
+ use doc && java-pkg_dojavadoc doc/jcmdline/api
+ use source && java-pkg_dosrc src/*
+}
diff --git a/dev-java/jcmdline/jcmdline-2.0.0.ebuild b/dev-java/jcmdline/jcmdline-2.0.0.ebuild
new file mode 100644
index 000000000000..d31750c15e5e
--- /dev/null
+++ b/dev-java/jcmdline/jcmdline-2.0.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Library for parsing/handling of command line parameters"
+HOMEPAGE="http://jcmdline.sourceforge.net/"
+SRC_URI="mirror://sourceforge/jcmdline/${P}.zip"
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.6"
+
+DEPEND="
+ >=virtual/jdk-1.6"
+
+S="${WORKDIR}/${P}"
+
+java_prepare() {
+ java-pkg_clean
+ rm -rf testsrc || die
+}
diff --git a/dev-java/jcmdline/metadata.xml b/dev-java/jcmdline/metadata.xml
new file mode 100644
index 000000000000..5f0350538012
--- /dev/null
+++ b/dev-java/jcmdline/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription>
+ This package facilitates parsing/handling of command line parameters
+ with an aim at adding consistency across various applications.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">jcmdline</remote-id>
+ </upstream>
+</pkgmetadata>