/[gentoo-x86]/dev-java/jnr-posix/jnr-posix-2.1.ebuild
Gentoo

Contents of /dev-java/jnr-posix/jnr-posix-2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Feb 7 14:23:17 2013 UTC (20 months, 2 weeks ago) by sera
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump. #452168
Remove obsolete.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 3C5CF75A)

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/jnr-posix/jnr-posix-2.1.ebuild,v 1.1 2012/05/28 15:18:57 sera Exp $
4
5 EAPI="4"
6
7 JAVA_PKG_IUSE="doc source test"
8
9 inherit java-pkg-2 java-ant-2 vcs-snapshot
10
11 DESCRIPTION="Lightweight cross-platform POSIX emulation layer for Java"
12 HOMEPAGE="https://github.com/jnr/jnr-posix"
13 SRC_URI="https://github.com/jnr/${PN}/tarball/${PV} -> ${P}.tar.gz"
14
15 LICENSE="|| ( CPL-1.0 GPL-2 LGPL-2.1 )"
16 SLOT="2.1"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
18 IUSE=""
19
20 COMMON_DEP="
21 dev-java/jnr-constants:0
22 dev-java/jnr-ffi:0.7"
23 RDEPEND="${COMMON_DEP}
24 >=virtual/jre-1.5"
25 DEPEND="${COMMON_DEP}
26 >=virtual/jdk-1.5
27 test? (
28 dev-java/ant-junit
29 dev-java/junit:4
30 )"
31
32 java_prepare() {
33 cp "${FILESDIR}"/${PN}_maven-build.xml build.xml || die
34 }
35
36 JAVA_ANT_REWRITE_CLASSPATH="yes"
37 JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc"
38 JAVA_ANT_ENCODING="UTF-8"
39
40 EANT_GENTOO_CLASSPATH="jnr-constants,jnr-ffi-0.7"
41 EANT_EXTRA_ARGS="-Dmaven.build.finalName=${PN}"
42
43 EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
44 src_test() {
45 # Fails, upstream pom has ignore test failures enabled.
46 rm -v src/test/java/jnr/posix/FileStatTest.java || die
47
48 java-pkg-2_src_test
49 }
50
51 src_install() {
52 java-pkg_dojar target/${PN}.jar
53 dodoc README.txt
54
55 use doc && java-pkg_dojavadoc target/site/apidocs
56 use source && java-pkg_dosrc src/main/java/*
57 }

  ViewVC Help
Powered by ViewVC 1.1.20