summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-12-08 14:33:21 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-12-08 14:33:35 +0000
commit1e87e61f31b74a4a5f0dea3a3a0ea4a15892a371 (patch)
tree43f38dfc4ae0bd03b222218b377c0f5a0d92a4a1 /dev-java/jsap
parentnet-p2p/imule: remove stray maintainer tag (diff)
downloadgentoo-1e87e61f31b74a4a5f0dea3a3a0ea4a15892a371.tar.gz
gentoo-1e87e61f31b74a4a5f0dea3a3a0ea4a15892a371.tar.bz2
gentoo-1e87e61f31b74a4a5f0dea3a3a0ea4a15892a371.zip
dev-java/jsap: EAPI 5 bump.
Package-Manager: portage-2.2.20.1 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/jsap')
-rw-r--r--dev-java/jsap/Manifest1
-rw-r--r--dev-java/jsap/jsap-2.1-r1.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-java/jsap/Manifest b/dev-java/jsap/Manifest
index 03b03845a2dd..69c43cc08af9 100644
--- a/dev-java/jsap/Manifest
+++ b/dev-java/jsap/Manifest
@@ -1 +1,2 @@
DIST JSAP-2.1-src.tar.gz 1281840 SHA256 5146bf75cba18fdf9299462a4127e95919c884494aaf3ed023cb2950217a0862 SHA512 5509d67b8af11cfbf94ca1a4d2b055b84c6c025ca26cd70390f63394d112a842fd39271181dfad0a88856964acd66f8abe49c72c58cc0086445d810837ba3352 WHIRLPOOL aecdc479d5d088429ca10a24a90b8aefc849ff7eef03276e9c2667a28420a2fefcf6d6541b1eee5d8c7891c3aa2c7392dc9e943084aaeac86bcc48d4a4d1dc78
+DIST jsap-2.1.tar.gz 1281840 SHA256 5146bf75cba18fdf9299462a4127e95919c884494aaf3ed023cb2950217a0862 SHA512 5509d67b8af11cfbf94ca1a4d2b055b84c6c025ca26cd70390f63394d112a842fd39271181dfad0a88856964acd66f8abe49c72c58cc0086445d810837ba3352 WHIRLPOOL aecdc479d5d088429ca10a24a90b8aefc849ff7eef03276e9c2667a28420a2fefcf6d6541b1eee5d8c7891c3aa2c7392dc9e943084aaeac86bcc48d4a4d1dc78
diff --git a/dev-java/jsap/jsap-2.1-r1.ebuild b/dev-java/jsap/jsap-2.1-r1.ebuild
new file mode 100644
index 000000000000..ef61eb8e2ff9
--- /dev/null
+++ b/dev-java/jsap/jsap-2.1-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PN="JSAP"
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Java Simple Arguments Parser (JSAP)"
+HOMEPAGE="http://sourceforge.net/projects/jsap"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+CDEPEND="
+ dev-java/xstream:0
+ dev-java/ant-core:0"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6
+ test? (
+ dev-java/ant-junit:0
+ )"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+S="${WORKDIR}/${MY_P}"
+
+EANT_BUILD_TARGET="jar"
+EANT_JAVADOC_TARGET="javadoc"
+EANT_ANT_TASKS="rundoc snip"
+EANT_BUILD_TEST="test"
+EANT_GENTOO_CLASSPATH="
+ ant-core
+ xstream
+"
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+PATCHES=(
+ "${FILESDIR}/${P}-build.xml.patch"
+)
+
+java_prepare() {
+ java-pkg_clean
+ epatch "${PATCHES[@]}"
+}
+
+src_test() {
+ java-pkg-2_src_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
+}