diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
commit | e9d044d4b9b71200a96adfa280848858c0f468c9 (patch) | |
tree | 1bd8ef816043a8cd340f1d774e79553a1a7d31d8 /dev-java/jline/jline-2.14.6.ebuild | |
parent | fc2f1018fc323ef2c6572734a9b130427cba76a6 (diff) |
gentoo resync : 13.11.2021
Diffstat (limited to 'dev-java/jline/jline-2.14.6.ebuild')
-rw-r--r-- | dev-java/jline/jline-2.14.6.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-java/jline/jline-2.14.6.ebuild b/dev-java/jline/jline-2.14.6.ebuild new file mode 100644 index 000000000000..d8cb303a8f10 --- /dev/null +++ b/dev-java/jline/jline-2.14.6.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" +JAVA_SRC_DIR="src/main/java" +JAVA_GENTOO_CLASSPATH="jansi,jansi-native" +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}2/archive/${P}.tar.gz" +S="${WORKDIR}/${PN}2-${P}" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +# Needs yet-unpackaged powermock for tests +RESTRICT="!test? ( test ) test" + +CDEPEND=" + dev-java/jansi:0 + dev-java/jansi-native:0" + +DEPEND=" + test? ( + dev-java/easymock:3.2 + dev-java/junit:4 + ) + ${CDEPEND} + >=virtual/jdk-1.8:*" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.8:*" + +src_prepare() { + default + + # 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_test() { + cd src/test/java || die + + local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars junit-4,easymock-3.2,${JAVA_GENTOO_CLASSPATH})" + local TESTS=$(find * -name "*Test.java" || die) + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d . $(find * -name "*.java" || die) + ejunit4 -classpath "${CP}" ${TESTS} +} + +src_install() { + java-pkg-simple_src_install + + dodoc {CHANGELOG,README}.md +} |