diff options
Diffstat (limited to 'dev-java/libreadline-java')
6 files changed, 133 insertions, 0 deletions
diff --git a/dev-java/libreadline-java/Manifest b/dev-java/libreadline-java/Manifest new file mode 100644 index 000000000000..2f022e35f60c --- /dev/null +++ b/dev-java/libreadline-java/Manifest @@ -0,0 +1,8 @@ +AUX libreadline-java-0.8.0-gmake.patch 532 SHA256 2d8575b101f5856bf7ced9eb8d606eaa6be2386db9bec871aadb5033442f182e SHA512 079f978e90968a6d04f717e25511320f69e4eea76b64b9ae928eea868433d4cfff2586c2598ff0b73eeb5f6146066d2926e5c6c7ec077a69e0f2abbcabb9c2c7 WHIRLPOOL a720c1d5f42fb3b6ec7a8d02c47fe87b9e082f7f29cf730e8fb8a866fba72afa935dab1660e38ee988a7900f1f864badf8ed96c8916a287377d15152bc145abe +AUX libreadline-java-0.8.0-respect-flags.patch 651 SHA256 4c2fdb6cc0b2cc3071fad5af144a95462d6ee3d8a4c701fcc1f973eca34546e5 SHA512 b3419484c6732d3396ae90fba0c77bec656bb705d63c8ec2bd999222c8e687d6fbecebfa10bcb91c8780e6ffa922e2d58318978073f382c4b7601cd569ec7abd WHIRLPOOL 57ecaefc09834daff218e7d68f89baf8922928bd474037e7b903997998115b3a1334fb23a5884012b1bb521ab3a125d31230c107bfa0395502a33ac8df40017c +AUX termcap-to-ncurses.patch 498 SHA256 de636c7cc3e812a276ac530b571d7c9a0fd63cd7011868ceb46a59fc55f2e337 SHA512 43b6494d94da3d8874da34caf3e191e489bdea3e680d76514f3acf7d1c55db784efd8220e9aa914831c8dc753c231a06d5c3980bdd28835a3369f4c1d862a932 WHIRLPOOL 2d9b02dde42f2d3297858798765a33d2be803a8b6d57bbba91ffe819f12134cb9842442903ecddcb869665616d42a95c61de698de49efb1809bb418687c6d6f8 +DIST libreadline-java-0.8.0-src.tar.gz 77122 SHA256 cdcfd9910bfe2dca4cd08b2462ec05efee7395e9b9c3efcb51e85fa70548c890 SHA512 16bbb01a4852244387d63d8d5a7203e2862f235d8a68b436f33b586c7a6ea5297d1fabfa910c54bc33cfdc43b5dfe80e9eb4828b80196a974410c90387c3d1f2 WHIRLPOOL e54b33173b26db1c7e81612f01159feb895ae47ffaeb2ba143a605a3c484179d993c04fc716cf1db2729225585ac6ab4a400f986cfd15bbcad0f1bf73c0e1d81 +EBUILD libreadline-java-0.8.0-r3.ebuild 1292 SHA256 b73a6f3066cabde88c70391dcc4d9dd8cd793b1ab575f7297dc67efba9ec5fcf SHA512 8f81e7992ed426ffdfe6e3d800aca91705264904d4c43cdaf9939efc4fdf3dc6e15b122e5b219466278287e177274b37f41e55976933d667c856372ec68894c6 WHIRLPOOL 7a2a3973f29f80b65efc72f35ba581681c042a510d0027d05f010014ce699b61d8883fb4b6ad24075f8d61b9ef82ed64d0da00e49fcf0439085b0b3048a4b0dc +MISC ChangeLog 2940 SHA256 90590301de7dc1d5180d3ad6b952fa44ab8ae0d9cdec5653ad8e1a1acede180e SHA512 cb869c3916e1ce08e8f6cc005e7281dbf6e0c6a76a2e79125aff85751f9777611fab17ce4b801f3ea289201d557cc2969337a39a2528584114fccaec2c6790c2 WHIRLPOOL 2a84add922bd8e74bc798b5a34b36836ebaae21a6f33f04d534c182e9195c90b8a234e815a9704179b86c1ba72622fa45604e92b11aa5288a286d71903c16b24 +MISC ChangeLog-2015 5709 SHA256 881d2e0f6386d3ee4ad33b339b62bbcdce22eb1433e8f11140905c59e9b649af SHA512 e90daae8ee10db28ce85dd973fb90814f7470c92372f461c5321e20d9a58e7987b94c8051b10734f1b63bd7a6e0ba47b4d224755c99404b82384f39b52d1a18d WHIRLPOOL 8cdf1293051e121dee9283cb80b0cd900d052e27eb055c47897f75f8f7ceddfe729ec5a9d9dad65d2ecfaa133321fe75846d693e3cf0469d335f6397645bf120 +MISC metadata.xml 319 SHA256 6c04e1a3dda805bd500fe827705beceed96fc1836193898facc5d03bb1e6dc2e SHA512 e13714611711ecb54943d5d3ccc5a8ae8f9dcfb6e9a6e6c6e96d04d7d80dec6a07d76225850cb2cdbb6b2d6a99f0c5c5fd0c9c4a9a3c0724c6e8ed7b21a75e8f WHIRLPOOL 16e0023c3e36dfd39f1fe0d4366a0e1a3cb4a9f9239cf82a5d949d23105657968db6dd12ad67c18dd7c0b28e304ae49b8b84e3095abb37ab0b046d5ec35cc0b5 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 new file mode 100644 index 000000000000..6de5cde18e89 --- /dev/null +++ b/dev-java/libreadline-java/files/libreadline-java-0.8.0-gmake.patch @@ -0,0 +1,21 @@ +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 +@@ -69,13 +69,13 @@ all: $(T_LIBS) + lib: $(ROOTDIR)/$(LIB_PRE)$(TG).$(LIB_EXT) + + JavaReadline: +- make TG=$@ lib ++ $(MAKE) TG=$@ lib + + JavaEditline: +- make TG=$@ lib ++ $(MAKE) TG=$@ lib + + JavaGetline: +- make TG=$@ lib ++ $(MAKE) TG=$@ lib + + $(ROOTDIR)/$(LIB_PRE)$(TG).$(LIB_EXT): $(OBJECTS) + ifeq (MSC,$(WIN32)) diff --git a/dev-java/libreadline-java/files/libreadline-java-0.8.0-respect-flags.patch b/dev-java/libreadline-java/files/libreadline-java-0.8.0-respect-flags.patch new file mode 100644 index 000000000000..9af21ba83d4b --- /dev/null +++ b/dev-java/libreadline-java/files/libreadline-java-0.8.0-respect-flags.patch @@ -0,0 +1,27 @@ +diff --git a/src/native/Makefile b/src/native/Makefile +index 679adb7..a1f2a6a 100644 +--- a/src/native/Makefile ++++ b/src/native/Makefile +@@ -51,11 +51,11 @@ JavaEditline_LIBS = -ledit -ltermcap + ifeq (cygwin,$(WIN32)) + JavaGetline_LIBS = -lcygwin + endif +-CC = gcc ++CC ?= gcc + OBJ_EXT := o + LIB_PRE := lib + LIB_EXT := so +-CFLAGS=-fPIC -DPOSIX ++CFLAGS += -fPIC -DPOSIX + endif + + +@@ -97,7 +97,7 @@ ifeq (CYGWIN,$(WIN32)) + $(CC) -W1,$(ROOTDIR)/lib$(TG).exp -o $@ \ + $(OBJECTS) -W1,-e,_readline_init@12 + else +- $(CC) -shared $(OBJECTS) $(LIBPATH) $($(TG)_LIBS) -o $@ ++ $(CC) -shared $(LDFLAGS) $(OBJECTS) $(LIBPATH) $($(TG)_LIBS) -o $@ + endif + endif + diff --git a/dev-java/libreadline-java/files/termcap-to-ncurses.patch b/dev-java/libreadline-java/files/termcap-to-ncurses.patch new file mode 100644 index 000000000000..22921c80ba54 --- /dev/null +++ b/dev-java/libreadline-java/files/termcap-to-ncurses.patch @@ -0,0 +1,13 @@ +--- src/native/Makefile.org 2004-09-07 16:43:16.703100016 +0200 ++++ src/native/Makefile 2004-09-07 16:43:28.804919625 +0200 +@@ -45,8 +45,8 @@ + CFLAGS=-DWIN32=$(WIN32) -D__IBMC__ + else + INCLUDES = -I $(JAVAINCLUDE) -I $(JAVANATINC) +-LIBPATH = -L/usr/lib/termcap +-JavaReadline_LIBS = -lreadline -ltermcap -lhistory ++LIBPATH = ++JavaReadline_LIBS = -lreadline -lncurses -lhistory + JavaEditline_LIBS = -ledit -ltermcap + ifeq (cygwin,$(WIN32)) + JavaGetline_LIBS = -lcygwin diff --git a/dev-java/libreadline-java/libreadline-java-0.8.0-r3.ebuild b/dev-java/libreadline-java/libreadline-java-0.8.0-r3.ebuild new file mode 100644 index 000000000000..edf28fb9076e --- /dev/null +++ b/dev-java/libreadline-java/libreadline-java-0.8.0-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 +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" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~x86-fbsd" +IUSE="elibc_FreeBSD" + +COMMON_DEP="sys-libs/ncurses" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" +RESTRICT="test" + +java_prepare() { + epatch "${FILESDIR}/termcap-to-ncurses.patch" + # bug #157387, reported upstream + epatch "${FILESDIR}/${P}-gmake.patch" + + # 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 + + #Respect CC CFLAGS LDFLAGS #336302 #296741 + epatch "${FILESDIR}"/${P}-respect-flags.patch +} + +src_compile() { + emake -j1 || die "failed to compile" + if use doc; then + emake -j1 apidoc || die "failed to generate docs" + fi +} + +src_install() { + java-pkg_doso *.so + java-pkg_dojar *.jar + use source && java-pkg_dosrc src/* + use doc && java-pkg_dojavadoc api + dodoc ChangeLog NEWS README README.1st TODO || die +} diff --git a/dev-java/libreadline-java/metadata.xml b/dev-java/libreadline-java/metadata.xml new file mode 100644 index 000000000000..ee80557bb2d5 --- /dev/null +++ b/dev-java/libreadline-java/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">java-readline</remote-id> + </upstream> +</pkgmetadata> |