summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2019-03-04 11:42:42 +0100
committerPatrice Clement <monsieurp@gentoo.org>2019-03-16 20:23:47 +0100
commit95ece613fca4ded2942f1821b7050863d65314ea (patch)
tree08fe1e6fded874333bf7c9409df5e3d67f2e42da
parentdev-java/tijmp: clean up old. (diff)
downloadgentoo-95ece613fca4ded2942f1821b7050863d65314ea.tar.gz
gentoo-95ece613fca4ded2942f1821b7050863d65314ea.tar.bz2
gentoo-95ece613fca4ded2942f1821b7050863d65314ea.zip
dev-java/libreadline-java: EAPI 6 bump.
Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--dev-java/libreadline-java/Manifest1
-rw-r--r--dev-java/libreadline-java/files/libreadline-java-0.8.0-gmake.patch6
-rw-r--r--dev-java/libreadline-java/files/termcap-to-ncurses.patch4
-rw-r--r--dev-java/libreadline-java/libreadline-java-0.8.0-r4.ebuild66
4 files changed, 71 insertions, 6 deletions
diff --git a/dev-java/libreadline-java/Manifest b/dev-java/libreadline-java/Manifest
index d425c5b2ea47..5e639045a9f5 100644
--- a/dev-java/libreadline-java/Manifest
+++ b/dev-java/libreadline-java/Manifest
@@ -1 +1,2 @@
DIST libreadline-java-0.8.0-src.tar.gz 77122 BLAKE2B cd25c3aea6189d0d48a10c26ad2f359e7f22533fd4a22d22b8491fd19c2d12c0fda6c8f1b8908bd66be8094efb374a51c6877eb89835360c4a2be8d9107d1336 SHA512 16bbb01a4852244387d63d8d5a7203e2862f235d8a68b436f33b586c7a6ea5297d1fabfa910c54bc33cfdc43b5dfe80e9eb4828b80196a974410c90387c3d1f2
+DIST libreadline-java-0.8.0.tar.gz 77122 BLAKE2B cd25c3aea6189d0d48a10c26ad2f359e7f22533fd4a22d22b8491fd19c2d12c0fda6c8f1b8908bd66be8094efb374a51c6877eb89835360c4a2be8d9107d1336 SHA512 16bbb01a4852244387d63d8d5a7203e2862f235d8a68b436f33b586c7a6ea5297d1fabfa910c54bc33cfdc43b5dfe80e9eb4828b80196a974410c90387c3d1f2
diff --git a/dev-java/libreadline-java/files/libreadline-java-0.8.0-gmake.patch b/dev-java/libreadline-java/files/libreadline-java-0.8.0-gmake.patch
index 6de5cde18e89..34a01e48ae55 100644
--- a/dev-java/libreadline-java/files/libreadline-java-0.8.0-gmake.patch
+++ b/dev-java/libreadline-java/files/libreadline-java-0.8.0-gmake.patch
@@ -1,7 +1,5 @@
-Index: libreadline-java-0.8.0/src/native/Makefile
-===================================================================
---- libreadline-java-0.8.0.orig/src/native/Makefile
-+++ libreadline-java-0.8.0/src/native/Makefile
+--- a/src/native/Makefile
++++ b/src/native/Makefile
@@ -69,13 +69,13 @@ all: $(T_LIBS)
lib: $(ROOTDIR)/$(LIB_PRE)$(TG).$(LIB_EXT)
diff --git a/dev-java/libreadline-java/files/termcap-to-ncurses.patch b/dev-java/libreadline-java/files/termcap-to-ncurses.patch
index 22921c80ba54..256cf6573da1 100644
--- a/dev-java/libreadline-java/files/termcap-to-ncurses.patch
+++ b/dev-java/libreadline-java/files/termcap-to-ncurses.patch
@@ -1,5 +1,5 @@
---- src/native/Makefile.org 2004-09-07 16:43:16.703100016 +0200
-+++ src/native/Makefile 2004-09-07 16:43:28.804919625 +0200
+--- a/src/native/Makefile.org 2004-09-07 16:43:16.703100016 +0200
++++ b/src/native/Makefile 2004-09-07 16:43:28.804919625 +0200
@@ -45,8 +45,8 @@
CFLAGS=-DWIN32=$(WIN32) -D__IBMC__
else
diff --git a/dev-java/libreadline-java/libreadline-java-0.8.0-r4.ebuild b/dev-java/libreadline-java/libreadline-java-0.8.0-r4.ebuild
new file mode 100644
index 000000000000..49b9464a5201
--- /dev/null
+++ b/dev-java/libreadline-java/libreadline-java-0.8.0-r4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 eutils
+
+DESCRIPTION="A JNI-wrapper to GNU Readline"
+HOMEPAGE="http://java-readline.sourceforge.net/"
+SRC_URI="mirror://sourceforge/java-readline/${P}-src.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="elibc_FreeBSD"
+
+CDEPEND="sys-libs/ncurses:0="
+
+RDEPEND="
+ >=virtual/jre-1.6
+ ${CDEPEND}"
+
+DEPEND="
+ >=virtual/jdk-1.6
+ ${CDEPEND}"
+
+RESTRICT="test"
+
+# 1: See bug #157387 reported upstream.
+# 2: Respect CC CFLAGS LDFLAGS, see bugs #336302 #296741.
+PATCHES=(
+ "${FILESDIR}/termcap-to-ncurses.patch"
+ "${FILESDIR}/${P}-gmake.patch"
+ "${FILESDIR}/${P}-respect-flags.patch"
+)
+
+DOCS=( ChangeLog NEWS README README.1st TODO )
+
+src_prepare() {
+ default
+
+ # See bug #157390.
+ sed -i "s/^\(JC_FLAGS =\)/\1 $(java-pkg_javac-args)/" Makefile || die
+ if use elibc_FreeBSD; then
+ sed -i -e '/JAVANATINC/s:linux:freebsd:' Makefile || die "sed JAVANATINC failed"
+ fi
+
+}
+
+src_compile() {
+ emake -j1
+ if use doc; then
+ # src/org/gnu/readline/Readline.java is completely bogus and generate a
+ # truckload of errors. Let's call make without catching anything. :(
+ make -j1 apidoc
+ fi
+}
+
+src_install() {
+ java-pkg_doso *.so
+ java-pkg_dojar *.jar
+ use source && java-pkg_dosrc src/*
+ use doc && java-pkg_dojavadoc api
+}