[dev-java/jopt-simple] version bump from java-overlay

This commit is contained in:
Robert Förster 2012-08-04 13:31:43 +02:00
parent 2fd725508a
commit 61332c832f
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST jopt-simple-4.3.tar.gz 98369 SHA256 dce22435f12c55d31fee08d39cb63282fbb0768adc2e37ea9cdb3557b7594865 SHA512 dc36237d253501d8c7ac5dcbb7353055f46faa2eca377931522c7d61d6ba7d9d10ca10f577ff2ed6784fb67596f4d18af1865b04a2110c315c4c6ddab5aebbc7 WHIRLPOOL c867aada5fda26a01419b8716c6410969a73357ad5b80d6d98195ee407311b8128d69bd9ad25013175cbefbf1087b01d56812f2c01364912d10a5e8bf3ae9650

View File

@ -0,0 +1,48 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
COMMIT="6be54be"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="A Java library for parsing command line options"
HOMEPAGE="http://pholser.github.com/jopt-simple/"
SRC_URI="https://github.com/pholser/${PN}/tarball/${P} -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="test" # Needs org.infinitest.toolkit.
RDEPEND=">=virtual/jre-1.5"
DEPEND=">=virtual/jdk-1.5
test? ( dev-java/junit:4 )"
S="${WORKDIR}/pholser-${PN}-${COMMIT}"
JAVA_SRC_DIR="src/main/java"
java_prepare() {
# Easier to use java-pkg-simple.
rm -v pom.xml || die
}
src_install() {
java-pkg-simple_src_install
dodoc README.md || die
}
src_test() {
local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4)"
local TESTS=$(find src/test/java -name "*Test.java")
TESTS="${TESTS//src\/test\/java\/}"
TESTS="${TESTS//.java}"
TESTS="${TESTS//\//.}"
mkdir -p target/test || die
ejavac -cp "${CP}" -d target/test $(find src/test/java -name "*.java")
ejunit4 -classpath "${CP}" ${TESTS}
}