summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2008-07-18 19:31:15 +0000
committerSerkan Kaba <serkan@gentoo.org>2008-07-18 19:31:15 +0000
commita3a39e9d32e590b2e601414c9a969355d6a499bb (patch)
treef2b6ed3191796301e22617b1d8da89be3fcf5128 /dev-java/libmatthew-java
parentia64/sparc/x86 stable (diff)
downloadhistorical-a3a39e9d32e590b2e601414c9a969355d6a499bb.tar.gz
historical-a3a39e9d32e590b2e601414c9a969355d6a499bb.tar.bz2
historical-a3a39e9d32e590b2e601414c9a969355d6a499bb.zip
Initial ebuild. Fixes bug #161680.
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.24-gentoo-r8 x86_64
Diffstat (limited to 'dev-java/libmatthew-java')
-rw-r--r--dev-java/libmatthew-java/ChangeLog11
-rw-r--r--dev-java/libmatthew-java/Manifest15
-rw-r--r--dev-java/libmatthew-java/files/libmatthew-java-0.7.1-makefile-fixes.patch26
-rw-r--r--dev-java/libmatthew-java/libmatthew-java-0.7.1.ebuild44
-rw-r--r--dev-java/libmatthew-java/metadata.xml5
5 files changed, 101 insertions, 0 deletions
diff --git a/dev-java/libmatthew-java/ChangeLog b/dev-java/libmatthew-java/ChangeLog
new file mode 100644
index 000000000000..1464379d8d51
--- /dev/null
+++ b/dev-java/libmatthew-java/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/libmatthew-java
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/libmatthew-java/ChangeLog,v 1.1 2008/07/18 19:31:15 serkan Exp $
+
+*libmatthew-java-0.7.1 (18 Jul 2008)
+
+ 18 Jul 2008; Serkan Kaba <serkan@gentoo.org>
+ +files/libmatthew-java-0.7.1-makefile-fixes.patch, +metadata.xml,
+ +libmatthew-java-0.7.1.ebuild:
+ Initial ebuild. Fixes bug #161680.
+
diff --git a/dev-java/libmatthew-java/Manifest b/dev-java/libmatthew-java/Manifest
new file mode 100644
index 000000000000..17678ff9a9d7
--- /dev/null
+++ b/dev-java/libmatthew-java/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX libmatthew-java-0.7.1-makefile-fixes.patch 971 RMD160 4a6e29ea720dcee826de0d8e4ffe832e8f1203cf SHA1 462de3fe88506045fcd6e84bd86b411874b2c90d SHA256 c9eb862dac76b51b485243e69c2b9cb25d1fd740ad8afb3785b0cd02bd764ca8
+DIST libmatthew-java-0.7.1.tar.gz 38520 RMD160 154a7aa639c245f602620f7d44e1c6519dac3be6 SHA1 b82fcffe7c7fb53c8e73b4eba7aff15562ec484d SHA256 c21bc364904770b9a489ec8fcf8aae02b49e3a415c3fddea81a23f99bc980716
+EBUILD libmatthew-java-0.7.1.ebuild 1406 RMD160 3e62230e23300bd8f05f5ca3c06a2c9973939d75 SHA1 47a58737917d7989729f15c82c99d3b54e837112 SHA256 848c25a00b4907b385bb42470368621198e559bbd5d4dc1820ca764ddd8c90a2
+MISC ChangeLog 445 RMD160 b7356151285e1dde20221acab63992ec5977aaa5 SHA1 658b0f1320febd02955c0a53a84cda3d18db7c79 SHA256 3ab49fcdc3616b4e5c344939de823043f95111ddaf6b389a1c0026a6b6a6f4f3
+MISC metadata.xml 159 RMD160 7da5c733c224383ffe350605bc36721a3ff2536f SHA1 99c2655c7bbee2cbc8c79edb2d00d481d62faf95 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkiA748ACgkQRh6X64ivZaKd/gCffV5/HIpNwwBe8JvxjH9F1XP4
+N2sAoIDR/X05+x7q/KECyT83V5pk8Mmr
+=RqZH
+-----END PGP SIGNATURE-----
diff --git a/dev-java/libmatthew-java/files/libmatthew-java-0.7.1-makefile-fixes.patch b/dev-java/libmatthew-java/files/libmatthew-java-0.7.1-makefile-fixes.patch
new file mode 100644
index 000000000000..a7494ebfea67
--- /dev/null
+++ b/dev-java/libmatthew-java/files/libmatthew-java-0.7.1-makefile-fixes.patch
@@ -0,0 +1,26 @@
+diff -Nur libmatthew-java-0.7.1/Makefile libmatthew-java-0.7.1_patched/Makefile
+--- libmatthew-java-0.7.1/Makefile 2008-04-26 15:35:13.000000000 +0300
++++ libmatthew-java-0.7.1_patched/Makefile 2008-07-02 22:55:58.000000000 +0300
+@@ -6,7 +6,7 @@
+ CC?=gcc
+ LD?=ld
+ PPFLAGS+=-C -P
+-CFLAGS+=-fpic -Wall -Os -pedantic -std=c99 -Werror
++CFLAGS+=-fPIC -Wall -pedantic -std=c99
+ GCJFLAGS+=-fjni
+ JCFLAGS+=-source 5.0
+ INCLUDES+=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
+@@ -57,12 +57,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)
diff --git a/dev-java/libmatthew-java/libmatthew-java-0.7.1.ebuild b/dev-java/libmatthew-java/libmatthew-java-0.7.1.ebuild
new file mode 100644
index 000000000000..3d37460f8bbb
--- /dev/null
+++ b/dev-java/libmatthew-java/libmatthew-java-0.7.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/libmatthew-java/libmatthew-java-0.7.1.ebuild,v 1.1 2008/07/18 19:31:15 serkan Exp $
+
+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 ~x86"
+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,class} || die "rm failed"
+}
+
+src_compile() {
+ LDFLAGS="$(raw-ldflags)" \
+ CC=$(tc-getCC) LD=$(tc-getLD) \
+ 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..250f2d1940ea
--- /dev/null
+++ b/dev-java/libmatthew-java/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>