summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2021-04-25 19:52:12 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2021-04-25 19:52:12 +0200
commit435b2616a0c3a4e6a10f526bd522c728af5ba2ee (patch)
tree2f8f80d6df466510f6ac352bb450e0f05a9c93aa /dev-java/jna
parentnet-libs/webkit-gtk: Stabilize 2.30.6 x86, #773193 (diff)
downloadgentoo-435b2616a0c3a4e6a10f526bd522c728af5ba2ee.tar.gz
gentoo-435b2616a0c3a4e6a10f526bd522c728af5ba2ee.tar.bz2
gentoo-435b2616a0c3a4e6a10f526bd522c728af5ba2ee.zip
dev-java/jna: dropped unused slot 0
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jna')
-rw-r--r--dev-java/jna/Manifest1
-rw-r--r--dev-java/jna/jna-3.4.1.ebuild88
2 files changed, 0 insertions, 89 deletions
diff --git a/dev-java/jna/Manifest b/dev-java/jna/Manifest
index a83367395e4a..20ee000d50be 100644
--- a/dev-java/jna/Manifest
+++ b/dev-java/jna/Manifest
@@ -1,2 +1 @@
-DIST jna-3.4.1.tar.gz 35285043 BLAKE2B 192f893f25c692a80d8b3ea0b469e951ef45ea561a02f1ec2ac8292f37ac32df468c7bb04211f1009314da4d7acba8ab9220114980b3f30b56af5f2310d5a18a SHA512 8164de9d213f670e6408627ec13fc128802351c2b906e1e1e95fd3280917ef1eba24d8b6b913a9df8034d20a5d46f6f823b5ee2d18b83248093a1855c89c5917
DIST jna-4.2.2.tar.gz 58638853 BLAKE2B 3941202ad7839f748c65f1abf53a335f6de7959def06de27a30520457147af3f70f6de54d640718b8314f6e61ab61ee9b26c39812d5cb1f918b8ff714d6b902e SHA512 11ab524f87f6dc7fe3ac8eb0620f9ba392445147770304be7b7fa5cd49de8efed983ad30c16077bfa6419eaf1ff50311a3ded811a78fdcd09bc686ef93ad7f9f
diff --git a/dev-java/jna/jna-3.4.1.ebuild b/dev-java/jna/jna-3.4.1.ebuild
deleted file mode 100644
index 48d35ff519be..000000000000
--- a/dev-java/jna/jna-3.4.1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-JAVA_PKG_IUSE="test doc source"
-
-inherit java-pkg-2 java-ant-2 toolchain-funcs flag-o-matic vcs-snapshot
-
-DESCRIPTION="Java Native Access (JNA)"
-HOMEPAGE="https://github.com/twall/jna#readme"
-SRC_URI="https://github.com/twall/jna/tarball/${PV} -> ${P}.tar.gz"
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="+awt +nio-buffers"
-REQUIRED_USE="test? ( awt nio-buffers )"
-
-CDEPEND="
- dev-libs/libffi"
-RDEPEND="${CDEPEND}
- >=virtual/jre-1.6"
-DEPEND="${CDEPEND}
- >=virtual/jdk-1.6
- virtual/pkgconfig
- test? (
- dev-java/junit:0
- dev-java/ant-core:0
- dev-java/ant-junit:0
- )"
-
-JAVA_ANT_REWRITE_CLASSPATH="true"
-EANT_BUILD_TARGET="jar contrib-jars"
-
-java_prepare() {
- # This jar is needed for some tests.
- # So let's make a copy of it.
- cp lib/clover.jar "${T}" || die
-
- find -name "*.jar" -exec rm -v {} + || die
- rm -r native/libffi || die
- mkdir -p doc/javadoc || die
-
- # and restore it.
- cp "${T}"/clover.jar lib || die
-
- # 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_EXTRA_ARGS="-Ddynlink.native=true"
-
-EANT_TEST_ANT_TASKS="ant-junit ant-core"
-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
- use source && java-pkg_dosrc src/com
- use doc && java-pkg_dojavadoc doc/javadoc
-}