diff options
author | Thomas Sachau <tommy@gentoo.org> | 2009-01-29 21:34:05 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2009-01-29 21:34:05 +0000 |
commit | 7898e7ed650aae16a19e8d6ddb1601bde5b1954e (patch) | |
tree | 544a334cbec2ffd4f1e9bccc45513cada7ca2675 /net-libs/NativeThread | |
parent | Use mirror://gentoo (diff) | |
download | gentoo-2-7898e7ed650aae16a19e8d6ddb1601bde5b1954e.tar.gz gentoo-2-7898e7ed650aae16a19e8d6ddb1601bde5b1954e.tar.bz2 gentoo-2-7898e7ed650aae16a19e8d6ddb1601bde5b1954e.zip |
Initial commit. Fixes bug 238038
(Portage version: 2.2_rc23/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'net-libs/NativeThread')
-rw-r--r-- | net-libs/NativeThread/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/NativeThread/NativeThread-0_pre20080330.ebuild | 33 | ||||
-rw-r--r-- | net-libs/NativeThread/files/Makefile.patch | 22 | ||||
-rw-r--r-- | net-libs/NativeThread/metadata.xml | 9 |
4 files changed, 74 insertions, 0 deletions
diff --git a/net-libs/NativeThread/ChangeLog b/net-libs/NativeThread/ChangeLog new file mode 100644 index 000000000000..47f44320f614 --- /dev/null +++ b/net-libs/NativeThread/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-libs/NativeThread +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/NativeThread/ChangeLog,v 1.1 2009/01/29 21:34:05 tommy Exp $ + +*NativeThread-0_pre20080330 (29 Jan 2009) + + 29 Jan 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +files/Makefile.patch, +NativeThread-0_pre20080330.ebuild: + Initial commit. Fixes bug 238038 + diff --git a/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild b/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild new file mode 100644 index 000000000000..901381951b69 --- /dev/null +++ b/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/NativeThread/NativeThread-0_pre20080330.ebuild,v 1.1 2009/01/29 21:34:05 tommy Exp $ + +inherit eutils flag-o-matic java-pkg-2 toolchain-funcs + +DESCRIPTION="NativeThread for priorities on linux for freenet" +HOMEPAGE="http://www.freenetproject.org/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="net-p2p/freenet + >=virtual/jdk-1.4" +RDEPEND="" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/Makefile.patch +} + +src_compile() { + append-flags -fPIC + tc-export CC + emake || die +} + +src_install() { + dolib.so lib${PN}.so || die +} diff --git a/net-libs/NativeThread/files/Makefile.patch b/net-libs/NativeThread/files/Makefile.patch new file mode 100644 index 000000000000..e1f0209a6f3f --- /dev/null +++ b/net-libs/NativeThread/files/Makefile.patch @@ -0,0 +1,22 @@ +--- Makefile 2008-03-03 13:59:06.000000000 +0100 ++++ Makefile.new 2008-03-30 16:27:12.000000000 +0200 +@@ -1,14 +1,14 @@ +-CC = gcc + INC = $(JAVA_HOME)/include +-CFLAGS = -Wall -O3 -fPIC +-LDFLAGS = -shared -Wl,-soname,libnative.so -I$(INC) -I$(INC)/linux ++CFLAGS += -Wall ++LDFLAGS += -shared -Wl,-soname,libnative.so -I$(INC) -I$(INC)/linux + LIBS = -lc + + all: clean libNativeThread.so + + NativeThread.class: +- javac java/NativeThread.java +- mv java/NativeThread.class freenet/support/io/ ++ javac -classpath /usr/share/freenet/lib/freenet.jar NativeThread.java ++ mkdir -p freenet/support/io ++ mv NativeThread.class freenet/support/io/ + + libNativeThread.so: NativeThread.c NativeThread.h + $(CC) $(CFLAGS) -o libNativeThread.so $(LDFLAGS) NativeThread.c $(LIBS) diff --git a/net-libs/NativeThread/metadata.xml b/net-libs/NativeThread/metadata.xml new file mode 100644 index 000000000000..fed3658eec53 --- /dev/null +++ b/net-libs/NativeThread/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>tommy@gentoo.org</email> + <name>Thomas Sachau (Tommy[D])</name> + </maintainer> +</pkgmetadata> + |