/[gentoo-x86]/dev-java/jna/jna-3.0.3-r1.ebuild
Gentoo

Contents of /dev-java/jna/jna-3.0.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu May 3 07:42:50 2012 UTC (2 years, 6 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jna/jna-3.0.3-r1.ebuild,v 1.3 2012/03/22 13:27:46 sera Exp $
4
5 EAPI=2
6
7 JAVA_PKG_IUSE="test doc source"
8 WANT_ANT_TASKS="ant-nodeps"
9
10 inherit java-pkg-2 java-ant-2 toolchain-funcs flag-o-matic
11
12 DESCRIPTION="Java Native Access (JNA)"
13 HOMEPAGE="https://jna.dev.java.net/"
14 # repack and mirror
15 #SRC_URI="http://jna.dev.java.net/source/browse/*checkout*/jna/tags/${PV}/jnalib/dist/src.zip"
16 SRC_URI="mirror://gentoo/${P}.tar.bz2"
17 LICENSE="LGPL-2.1"
18 SLOT="0"
19 KEYWORDS="~amd64 ~ppc ~x86"
20 IUSE=""
21
22 RDEPEND="virtual/libffi
23 >=virtual/jre-1.4"
24
25 DEPEND="virtual/libffi
26 virtual/pkgconfig
27 !test? ( >=virtual/jdk-1.4 )
28 test? (
29 dev-java/ant-junit
30 dev-java/ant-trax
31 >=virtual/jdk-1.5
32 )"
33
34 JAVA_ANT_REWRITE_CLASSPATH="true"
35
36 java_prepare() {
37 # remove bundled libffi
38 rm -rf native/libffi || die
39
40 # respect CFLAGS, don't inhibit warnings, honour CC
41 epatch "${FILESDIR}/makefile-flags.patch"
42
43 # bug #272054
44 append-cflags $(pkg-config --cflags-only-I libffi)
45
46 # Fetch our own prebuilt libffi.
47 mkdir -p build/native/libffi/.libs || die
48 ln -snf "/usr/$(get_libdir)/libffi.so" \
49 build/native/libffi/.libs/libffi_convenience.a || die
50
51 # Build to same directory on 64-bit archs.
52 ln -snf build build-d64 || die
53 }
54
55 src_install() {
56 java-pkg_dojar build/${PN}.jar
57 java-pkg_doso build/native/libjnidispatch.so
58 use source && java-pkg_dosrc src/com
59 use doc && java-pkg_dojavadoc doc/javadoc
60 }
61
62 src_test() {
63 unset DISPLAY
64 ANT_TASKS="ant-junit ant-nodeps ant-trax" ANT_OPTS="-Djava.awt.headless=true" eant test
65 }

  ViewVC Help
Powered by ViewVC 1.1.20