Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jffi/
Date: Sat, 05 Dec 2015 19:49:43
Message-Id: 1449344901.b38360ca60ee6c12f505cc62da14422ef6b69638.monsieurp@gentoo
1 commit: b38360ca60ee6c12f505cc62da14422ef6b69638
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 5 19:10:34 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 5 19:48:21 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b38360ca
7
8 dev-java/jffi: Stable for amd64. Retroactively mark stable for the remaining arches using the ALLARCHES policy.
9
10 Package-Manager: portage-2.2.20.1
11 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
12
13 dev-java/jffi/jffi-1.0.11-r1.ebuild | 31 ++++++++++++++++++++-----------
14 1 file changed, 20 insertions(+), 11 deletions(-)
15
16 diff --git a/dev-java/jffi/jffi-1.0.11-r1.ebuild b/dev-java/jffi/jffi-1.0.11-r1.ebuild
17 index 7af0347..271b085 100644
18 --- a/dev-java/jffi/jffi-1.0.11-r1.ebuild
19 +++ b/dev-java/jffi/jffi-1.0.11-r1.ebuild
20 @@ -1,9 +1,8 @@
21 -# Copyright 1999-2014 Gentoo Foundation
22 +# Copyright 1999-2015 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24 # $Id$
25
26 EAPI="5"
27 -
28 JAVA_PKG_IUSE="doc source test"
29
30 inherit eutils java-pkg-2 java-ant-2 versionator
31 @@ -14,32 +13,42 @@ SRC_URI="https://github.com/jnr/jffi/tarball/${PV} -> ${P}.tar.gz"
32
33 LICENSE="|| ( Apache-2.0 LGPL-3 )"
34 SLOT="1.0"
35 -KEYWORDS="~amd64 ~ppc ~x86"
36 +KEYWORDS="amd64 ppc x86"
37 IUSE=""
38
39 -COMMON_DEP="
40 +CDEPEND="
41 virtual/libffi"
42 -RDEPEND="${COMMON_DEP}
43 - >=virtual/jre-1.5"
44 -DEPEND="${COMMON_DEP}
45 - >=virtual/jdk-1.5
46 +
47 +RDEPEND="
48 + ${CDEPEND}
49 + >=virtual/jre-1.6"
50 +
51 +DEPEND="
52 + ${CDEPEND}
53 + >=virtual/jdk-1.6
54 virtual/pkgconfig
55 test? (
56 dev-java/ant-junit:0
57 dev-java/junit:4
58 )"
59
60 +PATCHES=(
61 + "${FILESDIR}"/${P}_no-werror.patch
62 +)
63 +
64 src_unpack() {
65 unpack ${A}
66 mv jnr-jffi-* "${P}" || die
67 }
68
69 java_prepare() {
70 + java-pkg_clean
71 +
72 cp "${FILESDIR}"/${PN}_maven-build.xml build.xml || die
73 - epatch "${FILESDIR}"/${P}_no-werror.patch
74 - sed -i -e 's/-Werror //' libtest/GNUmakefile || die
75
76 - find "${WORKDIR}" -iname '*.jar' -delete || die
77 + epatch "${PATCHES[@]}"
78 +
79 + sed -i -e 's/-Werror //' libtest/GNUmakefile || die
80
81 # Fix build with GCC 4.7 #421501
82 sed -i -e "s|-mimpure-text||g" jni/GNUmakefile libtest/GNUmakefile || die