summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-11-13 06:34:31 +0000
committerSam James <sam@gentoo.org>2021-11-13 08:28:58 +0000
commitbdfd51a9a270cd425cbfa6da28f8180083619229 (patch)
tree24f2ad9342eef9476add94af74d41f78cfb74ef6 /dev-java/jline
parentdev-java/treelayout: add 1.0.3 (diff)
downloadgentoo-bdfd51a9a270cd425cbfa6da28f8180083619229.tar.gz
gentoo-bdfd51a9a270cd425cbfa6da28f8180083619229.tar.bz2
gentoo-bdfd51a9a270cd425cbfa6da28f8180083619229.zip
dev-java/jline: add 2.14.6
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-java/jline')
-rw-r--r--dev-java/jline/Manifest1
-rw-r--r--dev-java/jline/jline-2.14.6.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-java/jline/Manifest b/dev-java/jline/Manifest
index 2a51185c724d..d2ec5d9401eb 100644
--- a/dev-java/jline/Manifest
+++ b/dev-java/jline/Manifest
@@ -1,2 +1,3 @@
DIST jline-1.0.zip 463082 BLAKE2B 4f4eec5a2674bf97ed9fe83c60d339fce54dcd556aca6e95db74438e87253fd4e36e4eef26b3ac14ed84fff3d2fe1b58ba3a6fe13f33d96fe50a34f7bb34f541 SHA512 2957e19a3536d89aeaf8f27afb1f8eb4eb8bcc99560244c7f1ba14693a84a2f5e677a6c21d5f85ec519674cc4cd6cb3c9e4725cb4797144168d2f6df3954aba9
DIST jline-2.12.1.tar.gz 97289 BLAKE2B 375711ad78cba26c0b4702dd739a18dd4db2fd1e8b16ce817dd1f567c405b7b0f96c72a6c6b7fabff1520617cf9149a29040e132d0b61e2d57149bb83b404c8d SHA512 368492fa0b28e6aa3827db05d266b332935d9a03c2f6645d039941c61a698e85fd57accfac444503de4cb2f2dae5787496924b8d258faad1c18b6cafe787f99d
+DIST jline-2.14.6.tar.gz 116599 BLAKE2B a3576314d8bb4886e0297822e0f37b4cc4c49cad1c5ea71a61a2813b0afae7ba8a5d5ad914fe900c4dca6c2f3891551157ca4a3d24231e8731cda4b5dbe80b32 SHA512 9e141c9a112dcb4850db95a7c2cec9b84f11be1f6740a3a33c99ec2ed5f900f4dae7474058e14319ef79476121997afbdb248ca22559a82a905c31690afa1d51
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
+}