From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-java/libmatthew-java/Manifest | 6 ++ .../libmatthew-java-0.7.2-makefile-fixes.patch | 70 ++++++++++++++++++++++ .../libmatthew-java-0.7.2-r1.ebuild | 42 +++++++++++++ dev-java/libmatthew-java/metadata.xml | 8 +++ 4 files changed, 126 insertions(+) create mode 100644 dev-java/libmatthew-java/Manifest create mode 100644 dev-java/libmatthew-java/files/libmatthew-java-0.7.2-makefile-fixes.patch create mode 100644 dev-java/libmatthew-java/libmatthew-java-0.7.2-r1.ebuild create mode 100644 dev-java/libmatthew-java/metadata.xml (limited to 'dev-java/libmatthew-java') diff --git a/dev-java/libmatthew-java/Manifest b/dev-java/libmatthew-java/Manifest new file mode 100644 index 000000000000..123dbc16554e --- /dev/null +++ b/dev-java/libmatthew-java/Manifest @@ -0,0 +1,6 @@ +AUX libmatthew-java-0.7.2-makefile-fixes.patch 2545 SHA256 8f771431c745595c42426a1d7b339e323e34c21aa7d6a342f70dea531490e0cb SHA512 698883f9f0a6485c7d751c70441d0791ddeb78260eceeefff1661983d04d81960c652f9dd64522cd3431981549689b8c9d3051674da5b0871124c912b4d9e3f3 WHIRLPOOL 636640657809835b41ed89f71d7aa878fea7330f6c5dd25f155885db6d1c9225f12752959607c39dd0dc290a7032845c4057ef8ba2c02e01a6feaabf317f1f9b +DIST libmatthew-java-0.7.2.tar.gz 40601 SHA256 9f48a00caa8c9731d7056346ba72445ebca508e17715e32e310aee45ef36ed03 SHA512 d4a0024fb17221dff4d787b83fd5d9b4a189db0b3110291066f037dc33c009d479a3b94ec8d7c00ab5a39731ec8015dba212f367a858f4329e9d203325fec02a WHIRLPOOL 772118df8f11ddba8fd89ec1b29af63a3414a9e681b52bab591c1a57866b6cafa5efbfe248f1e3270b675bb07fdcb07a9ae05a748e45154d9fffbe2fb5887958 +EBUILD libmatthew-java-0.7.2-r1.ebuild 1294 SHA256 888be2252bd5801feb38115ac4b1f99e351d84f2bca877a3c00aa58f17895cec SHA512 5c5839b643078d4da6b8a68111d9b813d888f825e16a38205f8adddc3f682904b3b7b1ac3c1b4e7530418eaa7339af109df4e0f1faa2ce04f44de84adc2567ed WHIRLPOOL a0a811a619edf5b31d861303012cdea7d8ed5861b39c93f19417810e95f750069ca175dd2ece33c9cddef49b84b3f3db3ea23916a874ea31a263dfdb5b030a70 +MISC ChangeLog 2661 SHA256 f7fba4981c8d4318e20caa6b70b9610db986ec1a10db835b5ab4065c95f61704 SHA512 e76dd0d19d83d10541985aff80a647a196526f46b81060558baf32225d99d4ea7a1d99ef399569cbf0e320a79cccbaa2eb60e37b521ffacb4757f2020e28ec6b WHIRLPOOL 620f64999e02adefbf6b805f500be65a3c38d166397915e2306e107586537899b9c17d326ba19f5ce7a557ce430f1145c94f0dd39f93a4e0b5f3fa212c4108aa +MISC ChangeLog-2015 3224 SHA256 e96a69d7c128856beddca0359e4ddd5ec937b6ffbce9a195cc21cbe455eb7b51 SHA512 793ae7e6946fa02ecec1149a6fd03af10facbbf47d2f3ad3762c9e55070277f10bda2dce47ae66971739a9c0a64c97b51197136f68a0a5f24d0d73e6f9c97da7 WHIRLPOOL ef5207347239765e3fdc45c0cabe1e20d184f0071da15a0cdc67d0766dc6795077d0e9eaa0ee4de7c80711b657457ddd3e96fcb57635156b63e75d96adad0f37 +MISC metadata.xml 242 SHA256 653cd0d34675fe6c6201752e96e6b035bad682c39a376c236b0a8f70dbdcc1c9 SHA512 50f4d6219b995b723d6ebbb4f2a18adbf558a685f862aea00f072254dcc0fe6c1388e4aeaf21fb3ce0fb840a2ef4851807536d037c9682b21cb1986198715a4f WHIRLPOOL 12c33e00040d7a3f4c26a8b7a6a6eaf10007a9e29af9904d192f89db5120a2760a7174fa40c40068eb6066d6a4f0dbbc57a12e852581de95cc956e210351b705 diff --git a/dev-java/libmatthew-java/files/libmatthew-java-0.7.2-makefile-fixes.patch b/dev-java/libmatthew-java/files/libmatthew-java-0.7.2-makefile-fixes.patch new file mode 100644 index 000000000000..1132a7e1ce76 --- /dev/null +++ b/dev-java/libmatthew-java/files/libmatthew-java-0.7.2-makefile-fixes.patch @@ -0,0 +1,70 @@ +diff -Nur libmatthew-java-0.7.2/Makefile libmatthew-java-0.7.2_patched/Makefile +--- libmatthew-java-0.7.2/Makefile 2009-04-05 12:46:42.000000000 +0300 ++++ libmatthew-java-0.7.2_patched/Makefile 2010-02-28 12:07:15.000000000 +0200 +@@ -6,13 +6,12 @@ + CC?=gcc + LD?=gcc + JPPFLAGS+=-C -P +-CFLAGS+=-Wall -Os -pedantic -Werror ++CFLAGS+=-Wall -pedantic + CSTD?=-std=c99 + CSHAREFLAG+=-fpic -fno-stack-protector + GCJJNIFLAG=-fjni + JVERCFLAGS+=-source 1.5 + JCFLAGS+= +-INCLUDES+=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux + JAVADOCFLAGS?=-quiet -author -link http://java.sun.com/j2se/1.4.2/docs/api/ + + LDVER?=$(shell ld -v | cut -d' ' -f1) +@@ -20,9 +20,8 @@ + + ifeq ($(LDVER),GNU) + LDSHAREFLAGS+=-fpic -shared +-else +-LDSHAREFLAGS+=-lc + endif ++LDLIBS=-lc + + PREFIX?=/usr/local + JARDIR?=$(PREFIX)/share/java +@@ -62,12 +61,7 @@ + io-$(IOVER).jar: .classes + (cd classes; $(JAR) cf ../$@ cx/ath/matthew/io/*class) + unix-$(UNIXVER).jar: .classes +-ifeq ($(DEBUG),enable) +- echo "Class-Path: $(JARDIR)/debug-$(DEBUG).jar" > Manifest +-else +- echo "Class-Path: " > Manifest +-endif +- (cd classes; $(JAR) cfm ../$@ ../Manifest cx/ath/matthew/unix/*class) ++ (cd classes; $(JAR) cf ../$@ cx/ath/matthew/unix/*class) + + hexdump-$(HEXVER).jar: .classes + (cd classes; $(JAR) cf ../$@ cx/ath/matthew/utils/Hexdump.class) +@@ -75,7 +69,7 @@ + %.o: %.c %.h + $(CC) $(CFLAGS) $(CSTD) $(CSHAREFLAG) $(INCLUDES) -c -o $@ $< + lib%.so: %.o +- $(CC) $(LDFLAGS) $(LDSHAREFLAGS) -o $@ $< ++ $(CC) $(LDFLAGS) $(LDSHAREFLAGS) -o $@ $< $(LDLIBS) + unix-java.h: .classes + $(JAVAH) -classpath classes -o $@ cx.ath.matthew.unix.UnixServerSocket cx.ath.matthew.unix.UnixSocket cx.ath.matthew.unix.USInputStream cx.ath.matthew.unix.USOutputStream + cgi-java.h: .classes +@@ -91,13 +85,11 @@ + tar zcf $@ libmatthew-java-$(MATTVER) + + debug-enable-$(DEBUGVER).jar: cx/ath/matthew/debug/Debug.jpp +- make .enabledebug +- echo "Class-Path: $(JARDIR)/hexdump.jar" > Manifest +- (cd classes;jar cfm ../$@ ../Manifest cx/ath/matthew/debug/*.class) ++ $(MAKE) .enabledebug ++ (cd classes;jar cf ../$@ cx/ath/matthew/debug/*.class) + debug-disable-$(DEBUGVER).jar: cx/ath/matthew/debug/Debug.jpp +- make .disabledebug +- echo "Class-Path: $(JARDIR)/hexdump.jar" > Manifest +- (cd classes;jar cfm ../$@ ../Manifest cx/ath/matthew/debug/*.class) ++ $(MAKE) .disabledebug ++ (cd classes;jar cf ../$@ cx/ath/matthew/debug/*.class) + .enabledebug: cx/ath/matthew/debug/Debug.jpp + mkdir -p classes + cpp $(PPFLAGS) $(JPPFLAGS) -DDEBUGSETTING=true < cx/ath/matthew/debug/Debug.jpp > cx/ath/matthew/debug/Debug.java diff --git a/dev-java/libmatthew-java/libmatthew-java-0.7.2-r1.ebuild b/dev-java/libmatthew-java/libmatthew-java-0.7.2-r1.ebuild new file mode 100644 index 000000000000..b18fec24f39c --- /dev/null +++ b/dev-java/libmatthew-java/libmatthew-java-0.7.2-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +JAVA_PKG_IUSE="doc source" +inherit eutils java-pkg-2 flag-o-matic toolchain-funcs + +DESCRIPTION="A selection of libraries for Java" +HOMEPAGE="http://www.matthew.ath.cx/projects/java/" +SRC_URI="http://www.matthew.ath.cx/projects/java/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=virtual/jre-1.5" +DEPEND=">=virtual/jdk-1.5" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/${P}-makefile-fixes.patch + rm -v "${S}"/cx/ath/matthew/debug/Debug.java || die "rm failed" +} + +src_compile() { + CC=$(tc-getCC) LD=$(tc-getCC) INCLUDES="$(java-pkg_get-jni-cflags)" \ + emake -j1 JARDIR=/usr/share/libmatthew-java/lib JCFLAGS="$(java-pkg_javac-args)" all $(usev doc) || die "emake failed" +} + +src_install() { + java-pkg_newjar cgi-0.5.jar cgi.jar + java-pkg_newjar debug-disable-1.1.jar debug-disable.jar + java-pkg_newjar debug-enable-1.1.jar debug-enable.jar + java-pkg_newjar hexdump-0.2.jar hexdump.jar + java-pkg_newjar io-0.1.jar io.jar + java-pkg_newjar unix-0.5.jar unix.jar + java-pkg_doso libcgi-java.so + java-pkg_doso libunix-java.so + dodoc INSTALL changelog README || die + use source && java-pkg_dosrc cx/ + use doc && java-pkg_dojavadoc doc +} diff --git a/dev-java/libmatthew-java/metadata.xml b/dev-java/libmatthew-java/metadata.xml new file mode 100644 index 000000000000..37998bf40746 --- /dev/null +++ b/dev-java/libmatthew-java/metadata.xml @@ -0,0 +1,8 @@ + + + + + java@gentoo.org + Java + + -- cgit v1.2.3