From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 21B2B138252 for ; Wed, 11 May 2016 21:07:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AF16E0810; Wed, 11 May 2016 21:07:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5126CE0810 for ; Wed, 11 May 2016 21:07:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48BE3340739 for ; Wed, 11 May 2016 21:07:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 246F4967 for ; Wed, 11 May 2016 21:07:18 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1463000782.f81d7ecc9b41cab24fc03f3b7e7da6d9796bb1ea.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jna/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/jna/jna-3.4.0-r1.ebuild X-VCS-Directories: dev-java/jna/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: f81d7ecc9b41cab24fc03f3b7e7da6d9796bb1ea X-VCS-Branch: master Date: Wed, 11 May 2016 21:07:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d82f2182-09ea-477b-bf5b-aef9bba9192d X-Archives-Hash: 406cf39d25b6d01cf9a004ea655802ad commit: f81d7ecc9b41cab24fc03f3b7e7da6d9796bb1ea Author: James Le Cuirot gentoo org> AuthorDate: Wed May 11 21:06:04 2016 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Wed May 11 21:06:22 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f81d7ecc dev-java/jna: Remove old 3.4.0-r1 Package-Manager: portage-2.2.28 dev-java/jna/jna-3.4.0-r1.ebuild | 92 ---------------------------------------- 1 file changed, 92 deletions(-) diff --git a/dev-java/jna/jna-3.4.0-r1.ebuild b/dev-java/jna/jna-3.4.0-r1.ebuild deleted file mode 100644 index 9789387..0000000 --- a/dev-java/jna/jna-3.4.0-r1.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -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 ~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 -}