From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jna/
Date: Wed, 30 Sep 2015 23:07:11 +0000 (UTC) [thread overview]
Message-ID: <1443654353.0e59abf8d4fde8404ca0f0bd23f117460fc953ca.monsieurp@gentoo> (raw)
commit: 0e59abf8d4fde8404ca0f0bd23f117460fc953ca
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 30 23:05:53 2015 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Sep 30 23:05:53 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e59abf8
dev-java/jna: Version bump.
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
dev-java/jna/Manifest | 1 +
dev-java/jna/jna-3.4.1.ebuild | 90 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+)
diff --git a/dev-java/jna/Manifest b/dev-java/jna/Manifest
index f99a716..2125bdc 100644
--- a/dev-java/jna/Manifest
+++ b/dev-java/jna/Manifest
@@ -1 +1,2 @@
DIST jna-3.4.0.tar.gz 34547165 SHA256 bff8fb935044a1e5de611e576e30a08c263e6a26a9f4c631dbe3a0cac2d79f14 SHA512 30c4e6a3a5ac133095248d3eb7d4983a91e11a267a581268a91316927ac75c5a133a58625d321276ac0b229c42c502f85492672d99713c90de98a648bd008b35 WHIRLPOOL 0a5a9d35db0e0090375235048c985fd8bd9ccf319d03c1c3db33e81d3e1a1bec8718a48f6b8180c7531d3963ae91b5337f539eb69e3db73b3f87ea693706fe08
+DIST jna-3.4.1.tar.gz 35285043 SHA256 fb0ff552a11ddf18b82f1e3fbfe01985fb7a41e242124c63257bb685408ca16e SHA512 8164de9d213f670e6408627ec13fc128802351c2b906e1e1e95fd3280917ef1eba24d8b6b913a9df8034d20a5d46f6f823b5ee2d18b83248093a1855c89c5917 WHIRLPOOL 9c06862f76fbab7175f134a3f965d7d944ff536a03f03256307f8300b1fd1c9888c6e312bb74a80088128278efa9f8f7dfca668e4ebeacfff91bba3bc97951b0
diff --git a/dev-java/jna/jna-3.4.1.ebuild b/dev-java/jna/jna-3.4.1.ebuild
new file mode 100644
index 0000000..8ad9de7
--- /dev/null
+++ b/dev-java/jna/jna-3.4.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+JAVA_PKG_IUSE="test doc source"
+WANT_ANT_TASKS="ant-nodeps"
+
+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 ~ppc ~x86"
+IUSE="+awt +nio-buffers"
+REQUIRED_USE="test? ( awt nio-buffers )"
+
+CDEPEND="
+ virtual/libffi"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.6"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.6
+ virtual/pkgconfig
+ test? (
+ dev-java/junit:0
+ dev-java/ant-junit:0
+ dev-java/ant-trax: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-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
+ use source && java-pkg_dosrc src/com
+ use doc && java-pkg_dojavadoc doc/javadoc
+}
next reply other threads:[~2015-09-30 23:07 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 23:07 Patrice Clement [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-05-11 21:07 [gentoo-commits] repo/gentoo:master commit in: dev-java/jna/ James Le Cuirot
2016-06-28 12:29 Patrick Lauer
2016-11-06 11:19 James Le Cuirot
2016-11-06 11:19 James Le Cuirot
2018-03-17 13:37 Pacho Ramos
2018-03-17 13:37 Pacho Ramos
2018-11-04 15:16 Pacho Ramos
2020-11-16 22:53 Sergei Trofimovich
2021-04-25 17:52 Miroslav Šulc
2021-06-12 9:59 Miroslav Šulc
2021-06-12 13:19 Miroslav Šulc
2021-06-14 6:39 Sergei Trofimovich
2021-07-10 18:54 Sam James
2021-11-11 11:35 Agostino Sarubbo
2021-11-12 8:16 Agostino Sarubbo
2021-11-26 9:23 Sam James
2022-01-08 10:17 Arthur Zamarin
2022-01-08 10:17 Arthur Zamarin
2022-01-08 13:08 Miroslav Šulc
2022-01-09 9:07 Miroslav Šulc
2022-01-14 15:07 Arthur Zamarin
2022-04-19 7:43 Florian Schmaus
2022-05-12 7:09 Florian Schmaus
2022-06-15 7:36 Jakov Smolić
2022-06-15 14:30 Agostino Sarubbo
2022-06-15 16:15 Arthur Zamarin
2022-06-15 16:15 Arthur Zamarin
2022-07-02 7:18 Jakov Smolić
2022-07-02 12:20 Agostino Sarubbo
2022-07-02 12:23 Agostino Sarubbo
2022-07-06 18:26 Arthur Zamarin
2022-07-07 4:03 Miroslav Šulc
2022-07-22 21:31 Florian Schmaus
2023-05-08 17:36 Sam James
2023-05-20 9:39 Sam James
2023-06-19 14:18 Sam James
2023-06-19 14:18 Sam James
2023-07-18 9:53 Sam James
2023-09-17 14:28 Arthur Zamarin
2023-09-29 5:53 Miroslav Šulc
2023-09-29 5:53 Miroslav Šulc
2023-12-20 9:19 Miroslav Šulc
2024-01-19 10:07 Sam James
2024-01-19 10:07 Sam James
2024-01-19 10:47 Sam James
2024-01-29 8:28 Miroslav Šulc
2024-10-30 11:42 Miroslav Šulc
2024-11-29 14:30 Arthur Zamarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1443654353.0e59abf8d4fde8404ca0f0bd23f117460fc953ca.monsieurp@gentoo \
--to=monsieurp@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox