/[gentoo-x86]/dev-java/joda-time/joda-time-2.2.ebuild
Gentoo

Contents of /dev-java/joda-time/joda-time-2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Aug 10 20:19:22 2014 UTC (4 years, 3 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/joda-time/joda-time-2.2.ebuild,v 1.2 2013/05/09 22:07:46 radhermit Exp $
4
5 EAPI="5"
6
7 JAVA_PKG_IUSE="doc examples source test"
8 JAVA_ANT_REWRITE_CLASSPATH="true"
9
10 inherit java-pkg-2 java-ant-2
11
12 DESCRIPTION="A quality open-source replacement for the Java Date and Time classes"
13 HOMEPAGE="http://joda-time.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/${PN}/${P}-dist.tar.gz"
15
16 LICENSE="Apache-2.0"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
19
20 DEPEND=">=virtual/jdk-1.5
21 dev-java/joda-convert:0
22 test? (
23 dev-java/junit:0
24 dev-java/ant-junit:0
25 )"
26 RDEPEND=">=virtual/jre-1.5"
27
28 java_prepare() {
29 rm -v *.jar || die "Failed to remove bundled jars."
30 cp "${FILESDIR}"/${P}-build.xml "${S}"/build.xml || die "Failed to copy build file."
31
32 mkdir -p "${S}"/target/classes || die "Failed to create target classes directory."
33 cp -Rv "${S}"/src/tz-data/* "${S}"/target/classes/ || die "Failed to copy timezone data."
34 }
35
36 src_compile() {
37 EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar)"
38
39 java-pkg-2_src_compile
40 }
41
42 src_test() {
43 EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar):$(java-pkg_getjar --build-only junit junit.jar)"
44
45 java-pkg-2_src_test
46 }
47
48 src_install() {
49 java-pkg_newjar target/${P}.jar
50
51 dodoc NOTICE.txt RELEASE-NOTES.txt
52
53 use doc && java-pkg_dojavadoc target/site/apidocs
54 use examples && java-pkg_doexamples src/example
55 use source && java-pkg_dosrc src/main/java/*
56 }

  ViewVC Help
Powered by ViewVC 1.1.20