Delete not needed jna package

This commit is contained in:
Mario Fetka 2015-08-06 15:07:39 +02:00
parent cfd4a56211
commit 195c28089e
10 changed files with 10 additions and 386 deletions

View File

@ -4,6 +4,6 @@ DIST irserver-6.09.04.tar.gz 665809 SHA256 ad7d8d42afef595a596c086d5df496fabe788
DIST irserver-src-6.08.28.tar.gz 195695 SHA256 375a567f760e8afd02b749b9624499d19233c3e3ed1d64ebf863e192f0181575 DIST irserver-src-6.08.28.tar.gz 195695 SHA256 375a567f760e8afd02b749b9624499d19233c3e3ed1d64ebf863e192f0181575
DIST irserver-src-6.09.04.tar.gz 200481 SHA256 0ce8baa3216d0c45bec0fb8384363c5a4ae93b384654d758373f912648ffb930 SHA512 09c38066e64404808856a89a8451e41a6eb8a51b98635b1515fc07050f25b4552b9cc912bd9612c6746ba67cd9b1bb45f3d4871dfa820c9e9bd810ede20f28d6 WHIRLPOOL 2fff3f6a24f6d74efc98a5ad818c6a098f176e97df9d0a8be3ac89109c71350a4ba88feb4b78ca947dab6bf515c29d86b5c61cdf9523dc13bc2782697a2d8fae DIST irserver-src-6.09.04.tar.gz 200481 SHA256 0ce8baa3216d0c45bec0fb8384363c5a4ae93b384654d758373f912648ffb930 SHA512 09c38066e64404808856a89a8451e41a6eb8a51b98635b1515fc07050f25b4552b9cc912bd9612c6746ba67cd9b1bb45f3d4871dfa820c9e9bd810ede20f28d6 WHIRLPOOL 2fff3f6a24f6d74efc98a5ad818c6a098f176e97df9d0a8be3ac89109c71350a4ba88feb4b78ca947dab6bf515c29d86b5c61cdf9523dc13bc2782697a2d8fae
EBUILD irtrans-irserver-6.08.28.ebuild 1487 SHA256 48018ab1d827468ddb88086b72f5a18795bfde97b057e20775bf198ce19f422d SHA512 879000ac0299b380d49212977fd053958e5829db8019e07979c1d88e842ee509801bf5e739e90f0310a12b3081cc44736b2ac5e6ca045badb46d762ce640a2d7 WHIRLPOOL bfae23747fc353595469033248a61f8b109f338aacf131938a4e9a9dbc76ba71bba35336e145b9e90670dae890be61fc6083c879905d30fa3576746714a4ac29 EBUILD irtrans-irserver-6.08.28.ebuild 1487 SHA256 48018ab1d827468ddb88086b72f5a18795bfde97b057e20775bf198ce19f422d SHA512 879000ac0299b380d49212977fd053958e5829db8019e07979c1d88e842ee509801bf5e739e90f0310a12b3081cc44736b2ac5e6ca045badb46d762ce640a2d7 WHIRLPOOL bfae23747fc353595469033248a61f8b109f338aacf131938a4e9a9dbc76ba71bba35336e145b9e90670dae890be61fc6083c879905d30fa3576746714a4ac29
EBUILD irtrans-irserver-6.09.04.ebuild 2042 SHA256 783a017efd95fb507e1ab1c095f8b7ecdab88514f4ed84a5da55e902f9496e04 SHA512 187dda0df66b37700040c46dca7875e4462e8d3418e559aeab64fc12ffb44b9cf16f2c0e1b1d94b8c6a66e372516b2b67752f46031c03687585e817f8721aebe WHIRLPOOL 04710717ee18ace2de3e1504835e4e5614ec3f181baf1525f2ea7dd6e952a3f0179a22e1a73b59701070c7a3f3cadf88e96d1d213f1d4f247b2c20217f6eced0 EBUILD irtrans-irserver-6.09.04.ebuild 2067 SHA256 17272271164cec85a3463d29af3aff21296a21e3c0ad176f52232f70bf4781d3 SHA512 72482e8605494caf9170dc4125edc5a2aac615527efe7218d3b36583cbe05f94ebe500a1309934d23111c5f240edf7ae2bd69998741f78612d46ace94752152c WHIRLPOOL ff9f28111cb472b87bb533855370a0ccc83a219c07c859ac95228eb2b8156c69d63f8993fc94f2745aec6da4ab6cc1fa623154adc38b44336327395d5711bd8f
MISC ChangeLog 5894 SHA256 b586a016254e2deefda6d704d7bf35bdebc3bc61b2f7b6a10ab020da8a332df9 SHA512 b1abf5ce2cb71455f687267c3914b8cd7d7860bd6de11de12a2534d6e1bd482c34d706e67c8e197643c3baa3562022ea24e181b14340dd8e98d7b72e4b85a5cf WHIRLPOOL 142009747c5eae00c51f655944aa4dbeaa08a6f1c9a1a8bf8e1424042365b3b7a22dcb5ba3ff3c16fb6b76907d61d784306095465ed59fcca29c1d77299bfe59 MISC ChangeLog 5894 SHA256 b586a016254e2deefda6d704d7bf35bdebc3bc61b2f7b6a10ab020da8a332df9 SHA512 b1abf5ce2cb71455f687267c3914b8cd7d7860bd6de11de12a2534d6e1bd482c34d706e67c8e197643c3baa3562022ea24e181b14340dd8e98d7b72e4b85a5cf WHIRLPOOL 142009747c5eae00c51f655944aa4dbeaa08a6f1c9a1a8bf8e1424042365b3b7a22dcb5ba3ff3c16fb6b76907d61d784306095465ed59fcca29c1d77299bfe59
MISC metadata.xml 205 SHA256 9fdfc9c91107d94feb8416adc2cec7734fa27084bff83ea859938b3216e028bc SHA512 ef3a39d2cd131cd29451ec2d009484e89b60e8cbeed5fc0f5f899cebb0c5f9867682ce603982e4de32004493944c6ff99a4c797e7ef2441d6049e5a616143a8b WHIRLPOOL 779e2cb116b19389f70acc6d49694358619116f9849f3b8e46f00df4e39b4476424b20990b9dabb4ba16605d1894d6b820eaeb930401d825265bfdca27f6fb96 MISC metadata.xml 205 SHA256 9fdfc9c91107d94feb8416adc2cec7734fa27084bff83ea859938b3216e028bc SHA512 ef3a39d2cd131cd29451ec2d009484e89b60e8cbeed5fc0f5f899cebb0c5f9867682ce603982e4de32004493944c6ff99a4c797e7ef2441d6049e5a616143a8b WHIRLPOOL 779e2cb116b19389f70acc6d49694358619116f9849f3b8e46f00df4e39b4476424b20990b9dabb4ba16605d1894d6b820eaeb930401d825265bfdca27f6fb96

View File

@ -1,68 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils flag-o-matic toolchain-funcs
RESTRICT="strip"
DESCRIPTION="IRTrans Server"
HOMEPAGE="http://www.irtrans.de"
SRC_URI="http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz -> irserver-src-${PV}.tar.gz
http://ftp.disconnected-by-peer.at/irtrans/irserver-src-${PV}.tar.gz"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm"
IUSE=""
DEPEND=""
RDEPEND="${RDEPEND}"
S="${WORKDIR}"
src_prepare() {
sed -e 's!^ODIRARM = .*!ODIRARM = n800!' -i makefile
}
src_compile() {
append-flags -DLINUX
# Set sane defaults (arm target has no -D flags added)
irbuild=irserver_arm_noccf
irserver=irserver
# change variable by need
if use x86 ; then
irbuild=irserver
elif use amd64 ; then
irbuild=irserver64
irserver=irserver64
elif use arm ; then
irbuild=irserver_arm
fi
# Some output for bugreport
einfo "CFLAGS=\"${CFLAGS}\""
einfo "Build Target=\"${irbuild}\""
einfo "Build Binary=\"${irserver}\""
# Build
emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" "${irbuild}" || die "emake irserver failed"
}
src_install() {
newbin "${WORKDIR}/${irserver}" irserver
keepdir /etc/irserver/remotes
docinto remotes
dodoc remotes/*
newinitd "${FILESDIR}"/irtrans-server.initd irtrans-server
newconfd "${FILESDIR}"/irtrans-server.confd irtrans-server
}

View File

@ -1,8 +1,8 @@
# Copyright 1999-2013 Gentoo Foundation # Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Header: $ # $Header: /var/cvsroot/gentoo-x86/app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild,v 1.1 2015/06/26 02:28:23 idella4 Exp $
EAPI="2" EAPI="5"
inherit eutils flag-o-matic toolchain-funcs mono-env multilib inherit eutils flag-o-matic toolchain-funcs mono-env multilib
@ -11,7 +11,7 @@ RESTRICT="strip"
DESCRIPTION="IRTrans Server" DESCRIPTION="IRTrans Server"
HOMEPAGE="http://www.irtrans.de" HOMEPAGE="http://www.irtrans.de"
SRC_URI="http://ftp.disconnected-by-peer.at/irtrans/irserver-src-${PV}.tar.gz SRC_URI="http://ftp.disconnected-by-peer.at/irtrans/irserver-src-${PV}.tar.gz
http://ftp.disconnected-by-peer.at/irtrans/irserver-${PV}.tar.gz http://ftp.disconnected-by-peer.at/irtrans/irserver-${PV}.tar.gz
http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz -> irserver-src-${PV}.tar.gz http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz -> irserver-src-${PV}.tar.gz
http://www.irtrans.de/download/Server/Linux/irserver.tar.gz -> irserver-${PV}.tar.gz" http://www.irtrans.de/download/Server/Linux/irserver.tar.gz -> irserver-${PV}.tar.gz"
@ -20,9 +20,7 @@ SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm" KEYWORDS="~x86 ~amd64 ~arm"
IUSE="mono" IUSE="mono"
DEPEND="" RDEPEND="mono? ( >=dev-lang/mono-2.10.5 )"
RDEPEND="mono? ( >=dev-lang/mono-2.10.5 )
${RDEPEND}"
S="${WORKDIR}" S="${WORKDIR}"
@ -32,6 +30,7 @@ src_prepare() {
src_compile() { src_compile() {
append-flags -DLINUX -DMEDIACENTER append-flags -DLINUX -DMEDIACENTER
append-ldflags --static
# Set sane defaults (arm target has no -D flags added) # Set sane defaults (arm target has no -D flags added)
irbuild=irserver_arm_noccf irbuild=irserver_arm_noccf
@ -53,7 +52,8 @@ src_compile() {
einfo "Build Binary=\"${irserver}\"" einfo "Build Binary=\"${irserver}\""
# Build # Build
emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" "${irbuild}" || die "emake irserver failed" emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" "${irbuild}"
} }
src_install() { src_install() {

View File

@ -1,107 +0,0 @@
# ChangeLog for dev-java/jna
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/ChangeLog,v 1.20 2012/06/11 14:05:33 mgorny Exp $
22 Jul 2015; Mario Fetka <mario.fetka@gmail.com> jna-4.1.0.ebuild:
keyword arm
11 Jun 2012; Michał Górny <mgorny@gentoo.org> jna-3.4.0-r1.ebuild,
jna-3.4.0.ebuild:
Use matching name for download & S to make the ebuild forward-proof to vcs-
snapshot API.
07 Jun 2012; Brent Baude <ranger@gentoo.org> jna-3.4.0.ebuild:
Marking jna-3.4.0 ppc for bug 413157
*jna-3.4.0-r1 (13 May 2012)
13 May 2012; Ralph Sennhauser <sera@gentoo.org> +jna-3.4.0-r1.ebuild,
+files/jna-3.4.0-makefile-flags.patch:
Respect CC. #413277
Register optional dependency emul-linux-x86-jna for use with 32bit JVMs.
#313209
Cleanup.
07 May 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> jna-3.4.0.ebuild:
x86 stable wrt bug #413157
03 May 2012; Jeff Horelick <jdhore@gentoo.org> jna-3.0.3-r1.ebuild,
jna-3.2.4.ebuild, jna-3.4.0.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
23 Apr 2012; Agostino Sarubbo <ago@gentoo.org> jna-3.4.0.ebuild:
Stable for amd64, wrt bug #413157
25 Mar 2012; Miroslav Šulc <fordfrog@gentoo.org>
-files/3.2.7-build.xml.patch, -files/3.2.7-makefile-flags.patch,
-files/3.3.0-build.xml.patch, -jna-3.2.7.ebuild,
-files/3.3.0-makefile-flags.patch, -jna-3.3.0.ebuild:
Removed obsolete versions
23 Mar 2012; Ralph Sennhauser <sera@gentoo.org> jna-3.4.0.ebuild:
Fix running tests. #294289
23 Mar 2012; Ralph Sennhauser <sera@gentoo.org> jna-3.4.0.ebuild:
Use vcs-snapshot eclass for github download.
Don't use xargs and also remove bundled libffi.
Drop libffi symlink workaround.
22 Mar 2012; Ralph Sennhauser <sera@gentoo.org> jna-3.0.3-r1.ebuild,
jna-3.2.4.ebuild, jna-3.2.7.ebuild, jna-3.3.0.ebuild, jna-3.4.0.ebuild:
Add missing build dep dev-util/pkgconfig. #403577
*jna-3.4.0 (25 Dec 2011)
25 Dec 2011; Miroslav Šulc <fordfrog@gentoo.org>
+files/3.4.0-build.xml.patch, +jna-3.4.0.ebuild,
+files/3.4.0-makefile-flags.patch, metadata.xml:
Version bump. Added new USE flags, awt and nio-buffers. awt USE flag should
require X USE flag on used JDK/JRE but we do not have this flag on virtuals
yet.
*jna-3.3.0 (13 Dec 2011)
13 Dec 2011; Miroslav Šulc <fordfrog@gentoo.org>
+files/3.3.0-build.xml.patch, +files/3.3.0-makefile-flags.patch,
+jna-3.3.0.ebuild:
Version bump
18 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> jna-3.2.4.ebuild:
ppc stable wrt #311105
*jna-3.2.7 (25 Jan 2011)
25 Jan 2011; Miroslav Šulc <fordfrog@gentoo.org>
+files/3.2.7-build.xml.patch, +files/3.2.7-makefile-flags.patch,
+jna-3.2.7.ebuild:
Version bump. Switched to EAPI4, sources are now downloaded directly from
upstream, build.xml patches moved to patch file, also added building of
platform.jar.
23 May 2010; Pacho Ramos <pacho@gentoo.org> jna-3.2.4.ebuild:
stable amd64, bug 311105
24 Mar 2010; Christian Faulhammer <fauli@gentoo.org> jna-3.2.4.ebuild:
stable x86, bug 311105
*jna-3.2.4 (30 Dec 2009)
30 Dec 2009; Alistair Bush <ali_bush@gentoo.org>
+files/3.2.4-makefile-flags.patch, +jna-3.2.4.ebuild:
Version Bump.
25 Oct 2009; Mounir Lamouri <volkmar@gentoo.org> jna-3.0.3-r1.ebuild:
Keywording for ppc, bug 270910
*jna-3.0.3-r1 (03 Jun 2009)
03 Jun 2009; Vlastimil Babka <caster@gentoo.org> +jna-3.0.3-r1.ebuild,
+files/makefile-flags.patch:
Revbump to switch to virtual/libffi, bug #272054.
*jna-3.0.3 (22 May 2009)
22 May 2009; Vlastimil Babka <caster@gentoo.org> +jna-3.0.3.ebuild,
+metadata.xml:
New package, jruby dependency, bug #244785. Ebuild provided by serkan and
chewi in java-overlay.

View File

@ -1,6 +0,0 @@
AUX 4.1.0-build.xml.patch 1180 SHA256 4b56d9bcc80d032dde9f66458e0cade95e5f961d04cc8b7efa49ebb714b393dd SHA512 c286dd84ef6868463aed22fb52e09e7ec68e9a0fb1c4276b0ab79dc4ce39897961c3710fd501ad8a376c4f644c3c3fb5a076c31e9772a2f8eadf2414610095aa WHIRLPOOL 8500dd0bc722b23149ce51044bbd5032cbcfe4c0b2da33b95de3566742f3bdb109d42a954c82388ff24947ddeb6b848aae5d73ff3f74a450648e0a32e0e2925c
AUX jna-4.1.0-makefile-flags.patch 2057 SHA256 7b6d0c5f2eecfab07c223050349d246740d234c38831c87744c0fd68139ebc33 SHA512 9dc427644ae75faaad6ee67fa3b71f22e449692c9b924c793aebb7cdf2b448cca95e53350968c11e20645c0ead974e4f4a17f3268612067b0fce0f7382d4014e WHIRLPOOL 6888a87ae8605e9c0415c608844f8e097b1fe6fe0c9462a21ce2f8897d9b0a4b1f0d43fca24f2e05cfa3382f568c9c6cd97eb4884176ba3a9c1b924aef62993d
DIST jna-4.1.0.tar.gz 34547165 SHA256 bff8fb935044a1e5de611e576e30a08c263e6a26a9f4c631dbe3a0cac2d79f14 SHA512 30c4e6a3a5ac133095248d3eb7d4983a91e11a267a581268a91316927ac75c5a133a58625d321276ac0b229c42c502f85492672d99713c90de98a648bd008b35 WHIRLPOOL 0a5a9d35db0e0090375235048c985fd8bd9ccf319d03c1c3db33e81d3e1a1bec8718a48f6b8180c7531d3963ae91b5337f539eb69e3db73b3f87ea693706fe08
EBUILD jna-4.1.0.ebuild 2484 SHA256 3edf68211d17d200fa87d3c1759d41ea385f389cb739314395899d71ad903aa6 SHA512 f777ce759e3f32b1ff8c16528aea6d88ef1ae8000d6db7fa44d6deb0bba4c8186398532af555aa50d73e775e1297835f615ab7cdef10c6a99e3fe131a4378210 WHIRLPOOL a27160c18446fc2fde2a7371ecb683cea0900fea5950a90f19f065705f43b1b7b17749a7f43896464c56641e79ae9ddae82eb7428ae8dd5ef50e48921937aafe
MISC ChangeLog 3747 SHA256 024fbea62510cc8a62e7df80fcc0d6dd0c5e8efdbedbbfa973b1ecabfcc15534 SHA512 d704c9e67bebc400348531d97113e3f921739311f201d7492ec112b97322f13dd34c6caab8dd213b08cc1040387b1f321ab58eb0c08e944d8ae3eac2f340edf2 WHIRLPOOL 87b3cb52b21baae753c4b469d8b522f1866b271d7fdd1d37ae90b98d9e4dec081d814d33b62892e85877048badfdf41255f2cb2706060126158f8285711a3230
MISC metadata.xml 295 SHA256 7aeccd89219646978f39ce1d46b40051eb950e1452bd225e7dd8e2fe5267c8a2 SHA512 06282ec9de4b3cdc98ba09622461638e409db87d6057cece577abd0169618f17d0174a1a3f52785de0121019a050aa35b522057bf0313a958a7a1496c738c8b4 WHIRLPOOL e0722112734f828808c06e10b1c9a430a7821824cd04aecb3c0db7d565cffbd7d48cdbf25edbca06942375fcccc51eb4761eb38e9fa6b1e3c3c92ac8fb778699

View File

@ -1,31 +0,0 @@
--- build.xml.orig 2011-01-25 17:33:24.750473340 +0100
+++ build.xml 2011-01-25 17:07:14.657410373 +0100
@@ -176,7 +176,9 @@
<path id="test.runpath">
<pathelement path="${build}/${jar}"/>
<pathelement path="${test.classes}"/>
+ <!--
<pathelement path="lib/clover.jar"/>
+ -->
<path refid="test.libs"/>
</path>
</target>
@@ -433,13 +435,17 @@
<copy todir="${build}/jws" file="${build}/${jar}"/>
<copy todir="${build}/jws" file="${build}/${testjar}"/>
<copy todir="${build}/jws" file="lib/junit.jar"/>
+ <!--
<copy todir="${build}/jws" file="lib/clover.jar"/>
+ -->
<jar jarfile="${build}/jws/jnidispatch.jar">
<fileset dir="${build.native}" includes="*jnidispatch.*"/>
</jar>
+ <!--
<signjar alias="jna" keystore="jna.keystore" storepass="jnadev" lazy="true">
- <fileset dir="${build}/jws" includes="jna.jar,jna-test.jar,junit.jar,jnidispatch.jar,clover.jar"/>
+ <fileset dir="${build}/jws" includes="jna.jar,jna-test.jar,junit.jar,jnidispatch.jar"/>
</signjar>
+ -->
</target>
<!-- When running tests from an IDE, be sure to set jna.library.path -->

View File

@ -1,62 +0,0 @@
diff --git a/native/Makefile b/native/Makefile
index 75246a8..a1c3e66 100644
--- a/native/Makefile
+++ b/native/Makefile
@@ -70,7 +70,7 @@ LIBPFX=lib
LIBSFX=.so
ARSFX=.a
JNISFX=$(LIBSFX)
-CC=gcc
+CC?=gcc
LD=$(CC)
LIBS=
# Default to Sun recommendations for JNI compilation
@@ -83,10 +83,10 @@ CFLAGS_EXTRA=
COUT=-o $@
CINCLUDES=$(JAVA_INCLUDES) -I"$(JAVAH)" -I$(FFI_BUILD)/include
CDEFINES=-D_REENTRANT
-PCFLAGS=-W -Wall -Wno-unused -Wno-parentheses
-CFLAGS=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
+PCFLAGS=-Wall -Wno-unused -Wno-parentheses
+CFLAGS+=$(PCFLAGS) $(CFLAGS_EXTRA) $(COPT) $(CDEBUG) $(CDEFINES) $(CINCLUDES) \
-DJNA_JNI_VERSION='"$(JNA_JNI_VERSION)"' -DCHECKSUM='"$(CHECKSUM)"'
-LDFLAGS=-o $@ -shared
+LDFLAGS+=-o $@ -shared
ifeq ($(DYNAMIC_LIBFFI),true)
CFLAGS += $(shell pkg-config --cflags libffi 2>/dev/null || echo)
LIBS += $(shell pkg-config --libs libffi 2>/dev/null || echo -lffi)
@@ -149,7 +149,7 @@ ifneq ($(MINGW),)
CDEFINES=-DPSAPI_VERSION=1
CC = $(MINGW) -m64 -mno-cygwin
LD = $(CC)
-LDFLAGS=-o $@ -shared
+LDFLAGS+=-o $@ -shared
LIBS= -lmingwex -lpsapi -lkernel32 -lmsvcrt
FFI_CONFIG += --host=x86_64-pc-mingw32
else
@@ -169,14 +169,14 @@ ifeq ($(OS),linux)
ARCH=$(shell uname -m | sed 's/i.86/i386/g')
PCFLAGS+=-fPIC
CDEFINES+=-DHAVE_PROTECTION
-LDFLAGS+=-Wl,-soname,$@
+LDFLAGS+= -Wl,-soname,$(shell basename $@)
endif
ifneq (,$(findstring bsd,$(OS)))
ARCH=$(shell uname -m | sed 's/i.86/i386/g')
PCFLAGS+=-fPIC
CINCLUDES+=-I/usr/X11R6/include
-LDFLAGS=-o $@ -shared
+LDFLAGS+= -o $@ -shared
CDEFINES+=-DHAVE_PROTECTION -DFFI_MMAP_EXEC_WRIT
endif
@@ -239,7 +239,7 @@ endif
PCFLAGS+=$(ISYSROOT) -x objective-c
CDEFINES+=-DTARGET_RT_MAC_CFM=0 -DFFI_MMAP_EXEC_WRIT
-LDFLAGS=$(ARCHFLAGS) -dynamiclib -o $@ -framework JavaVM \
+LDFLAGS+=$(ARCHFLAGS) -dynamiclib -o $@ -framework JavaVM \
-compatibility_version $(shell echo ${JNA_JNI_VERSION}|sed 's/^\([0-9][0-9]*\).*/\1/g') \
-current_version $(JNA_JNI_VERSION) \
-mmacosx-version-min=10.3 \

View File

@ -1,92 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jna/jna-3.4.0-r1.ebuild,v 1.2 2012/06/11 14:05:33 mgorny Exp $
EAPI="4"
JAVA_PKG_IUSE="doc source test"
inherit eutils java-pkg-2 java-ant-2 toolchain-funcs vcs-snapshot
DESCRIPTION="Java Native Access (JNA)"
HOMEPAGE="https://github.com/twall/jna#readme"
SRC_URI="https://github.com/twall/jna/tarball/3.4.0 -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE="+awt +nio-buffers"
REQUIRED_USE="test? ( awt nio-buffers )"
COMMON_DEP="
virtual/libffi"
RDEPEND="${COMMON_DEP}
>=virtual/jre-1.6"
DEPEND="${COMMON_DEP}
>=virtual/jdk-1.6
dev-java/ant-nodeps:0
virtual/pkgconfig
test? (
dev-java/ant-junit:0
dev-java/ant-trax:0
)"
java_prepare() {
# delete bundled jars and copy of libffi
find -name "*.jar" -exec rm -v {} + || die
rm -r native/libffi || die
epatch "${FILESDIR}/${PV}-build.xml.patch"
# respect CFLAGS, don't inhibit warnings, honour CC
epatch "${FILESDIR}/${P}-makefile-flags.patch"
tc-export CC
# Build to same directory on 64-bit archs.
mkdir build || die
ln -snf build build-d64 || die
if ! use awt ; then
sed -i -E "s/^(CDEFINES=.*)/\1 -DNO_JAWT/g" native/Makefile || die
fi
if ! use nio-buffers ; then
sed -i -E "s/^(CDEFINES=.*)/\1 -DNO_NIO_BUFFERS/g" native/Makefile || die
fi
}
EANT_BUILD_TARGET="jar contrib-jars"
EANT_ANT_TASKS="ant-nodeps"
EANT_EXTRA_ARGS="-Ddynlink.native=true"
EANT_TEST_ANT_TASKS="ant-junit ant-nodeps ant-trax"
src_test() {
local sysprops=""
# crashes vm (segfault)
sed -i -e 's|testRegisterMethods|no&|' test/com/sun/jna/DirectTest.java || die
# crashes vm, java 7 only (icedtea-7, oracle-jdk-bin-1.7)
sed -i -e 's|testGCCallbackOnFinalize|no&|' test/com/sun/jna/CallbacksTest.java || die
sysprops+=" -Djava.awt.headless=true"
sysprops+=" -Djava.io.tmpdir=${T}" #to ensure exec mount
mkdir -p lib || die
java-pkg_jar-from --into lib --build-only junit
# need to use _JAVA_OPTIONS or add them to the build.xml. ANT_OPTS won't
# survive the junit task.
_JAVA_OPTIONS="${sysprops}" java-pkg-2_src_test
}
src_install() {
java-pkg_dojar build/${PN}.jar
java-pkg_dojar contrib/platform/dist/platform.jar
java-pkg_doso build/native/libjnidispatch.so
java-pkg_register-optional-dependency emul-linux-x86-jna #313209
use source && java-pkg_dosrc src/com
use doc && java-pkg_dojavadoc doc/javadoc
}

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>java</herd>
<use>
<flag name='awt'>Enables support for Java AWT</flag>
<flag name='nio-buffers'>Enables support for NIO buffers</flag>
</use>
</pkgmetadata>

View File

@ -8,7 +8,7 @@ inherit autotools eutils
DESCRIPTION="Partition cloning tool" DESCRIPTION="Partition cloning tool"
HOMEPAGE="http://partclone.org" HOMEPAGE="http://partclone.org"
SRC_URI="mirror://sourceforge/partclone/testing/src/partclone_${PV}.orig.tar.gz -> partclone-${PV}.tar.gz " SRC_URI="mirror://sourceforge/partclone/testing/src/partclone_${PV}.orig.tar.gz -> partclone-${PV}.tar.gz"
LICENSE="GPL-2" LICENSE="GPL-2"
SLOT="0" SLOT="0"