diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-10-17 16:38:21 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-10-17 16:57:43 +0000 |
commit | 0bf259f8b9d72dc2db16918e456450a0c132e651 (patch) | |
tree | ff68f60aa5ce6f8f8ed2d46341c4eb0a35c1c1e7 /dev-java/jline | |
parent | dev-java/jansi: Version bump. Fixes bug 472318. (diff) | |
download | gentoo-0bf259f8b9d72dc2db16918e456450a0c132e651.tar.gz gentoo-0bf259f8b9d72dc2db16918e456450a0c132e651.tar.bz2 gentoo-0bf259f8b9d72dc2db16918e456450a0c132e651.zip |
dev-java/jline: Bump dev-java/jansi SLOT from 1.11 to 0.
Package-Manager: portage-2.2.20.1
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/jline')
-rw-r--r-- | dev-java/jline/jline-2.12.1-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-java/jline/jline-2.12.1-r1.ebuild b/dev-java/jline/jline-2.12.1-r1.ebuild new file mode 100644 index 000000000000..672aac8dd6a6 --- /dev/null +++ b/dev-java/jline/jline-2.12.1-r1.ebuild @@ -0,0 +1,60 @@ +# 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 java-pkg-2 java-pkg-simple + +DESCRIPTION="A Java library for handling console input" +HOMEPAGE="https://github.com/jline/jline2" +SRC_URI="https://github.com/jline/${PN}/archive/${P}.tar.gz" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +CDEPEND="dev-java/jansi:0 + dev-java/jansi-native:0" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.6 + test? ( dev-java/junit:4 )" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" + +S="${WORKDIR}/${PN}2-${P}" + +JAVA_SRC_DIR="src/main/java" +JAVA_GENTOO_CLASSPATH="jansi,jansi-native" + +java_prepare() { + # Easier to use java-pkg-simple. + rm -v pom.xml || die + + # Don't forget the resources! + mkdir -p target/classes || die + cp -r src/main/resources/* target/classes || die +} + +src_install() { + java-pkg-simple_src_install + + dodoc {CHANGELOG,README}.md +} + +src_test() { + cd src/test/java || die + + local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})" + local TESTS=$(find * -name "*Test.java") + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d . $(find * -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} |