From: Thomas Sachau Date: Tue, 26 Feb 2008 21:18:09 +0000 (+0000) Subject: net-p2p/NativeThread: New lib for net-p2p/freenet (bug #128783), moved out of freenet... X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=184d9e2968b6f63e4995e48422e9f5ac998982f4;p=~andy%2Fsunrise net-p2p/NativeThread: New lib for net-p2p/freenet (bug #128783), moved out of freenet to compile native one svn path=/sunrise/; revision=5763 --- diff --git a/net-p2p/NativeThread/ChangeLog b/net-p2p/NativeThread/ChangeLog new file mode 100644 index 000000000..1836172aa --- /dev/null +++ b/net-p2p/NativeThread/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-p2p/NativeThread +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 26 Feb 2008; (Tommy[D]) tommy100@gmx.de +NativeThread-20080224.ebuild, + +files/Makefile.patch, +metadata.xml: + New lib for net-p2p/freenet (bug #128783), moved out of freenet to compile + native one + diff --git a/net-p2p/NativeThread/Manifest b/net-p2p/NativeThread/Manifest new file mode 100644 index 000000000..63034166b --- /dev/null +++ b/net-p2p/NativeThread/Manifest @@ -0,0 +1,5 @@ +AUX Makefile.patch 769 RMD160 aebad51745bbb626ac2f036be584fbc37ccb6abf SHA1 a0a66003816928b3f02a476a57aba68da9bdb48e SHA256 392483bde37e35660d76ea2f555e6334cfaa1a265a2e7448472381a2916ae542 +DIST NativeThread-20080224.tar.bz2 728 RMD160 2d428a54d7dcdf28b13386dd212cbe9ea7cc69cb SHA1 64f33c484cae3d647e59eeeb3bda13567659dc61 SHA256 c6fd7a65a01531ce30fa171ac64dd9df983a0afb7c40a9e696e50d3e747b01c5 +EBUILD NativeThread-20080224.ebuild 753 RMD160 2a671880d5db88a10271861dc22abd8a3fcee55a SHA1 fa4366f1e2918a845e65c59aceb12efcc9315e31 SHA256 bef44b069dd91366ad61bc8c7de413f603990c3cad3019e8eb90b60da9ee6100 +MISC ChangeLog 325 RMD160 9e867815601d8d769cb6836b802424fc8c569462 SHA1 e7a387cf66164b8be05d557a2c0dc4d71d17b1f5 SHA256 05204e271328d2c283c4290f6c0e45ef8bc7d1e530483269e2c58704efa980eb +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/net-p2p/NativeThread/NativeThread-20080224.ebuild b/net-p2p/NativeThread/NativeThread-20080224.ebuild new file mode 100644 index 000000000..df898bf3e --- /dev/null +++ b/net-p2p/NativeThread/NativeThread-20080224.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="NativeThread for priorities on linux for freenet" +HOMEPAGE="http://www.freenetproject.org/" +SRC_URI="http://dev.gentooexperimental.org/~tommy/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="net-p2p/freenet" + +append-flags -fPIC +tc-getCC >/dev/null + +pkg_setup() { + cp ${ROOT}opt/freenet/freenet-cvs-snapshot.jar ${DISTDIR}/ + chmod 644 ${DISTDIR}/freenet-cvs-snapshot.jar +} + + +src_unpack() { + unpack ${A} + cp ${DISTDIR}/freenet-cvs-snapshot.jar . + epatch "${FILESDIR}"/Makefile.patch +} + +src_install() { + into /opt/freenet + dolib.so libNativeThread.so +} diff --git a/net-p2p/NativeThread/files/Makefile.patch b/net-p2p/NativeThread/files/Makefile.patch new file mode 100644 index 000000000..97906b570 --- /dev/null +++ b/net-p2p/NativeThread/files/Makefile.patch @@ -0,0 +1,26 @@ +--- Makefile 2008-02-24 17:25:07.000000000 +0100 ++++ Makefile.new 2008-02-24 17:25:23.000000000 +0100 +@@ -1,20 +1,14 @@ +-CC = gcc +-INC = /path/to/java/include +-CFLAGS = -Wall -O3 -fPIC ++INC = $(JAVA_HOME)/include + 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 . +- + libNativeThread.so: NativeThread.c NativeThread.h + $(CC) $(CFLAGS) -o libNativeThread.so $(LDFLAGS) NativeThread.c $(LIBS) + +-NativeThread.h: NativeThread.class +- javah NativeThread ++NativeThread.h: ++ javah -o NativeThread.h -classpath freenet-cvs-snapshot.jar freenet.support.io.NativeThread + + clean: + -rm -f *.class NativeThread.h libNativeThread*.so diff --git a/net-p2p/NativeThread/metadata.xml b/net-p2p/NativeThread/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/net-p2p/NativeThread/metadata.xml @@ -0,0 +1,5 @@ + + + +maintainer-wanted +