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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Apr 24 17:55:14 2010 UTC (4 years, 2 months ago) by grobian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Marked ~sparc-solaris ~x86-solaris, bug #314093
(Portage version: 2.2.00.15842-prefix/cvs/Darwin powerpc)

1 # Copyright 1999-2010 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-1.6.ebuild,v 1.5 2010/01/03 21:07:48 fauli Exp $
4
5 JAVA_PKG_IUSE="doc examples source test"
6
7 inherit java-pkg-2 java-ant-2
8
9 MY_P="${P}-src"
10
11 DESCRIPTION="A quality open-source replacement for the Java Date and Time classes."
12 HOMEPAGE="http://joda-time.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
14 LICENSE="Apache-2.0"
15 SLOT="0"
16 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
17 IUSE=""
18
19 DEPEND="
20 >=virtual/jdk-1.4
21 test? ( dev-java/ant-junit )"
22 RDEPEND=">=virtual/jre-1.4"
23
24 S="${WORKDIR}/${MY_P}"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29 rm -v *.jar || die
30 # https://sourceforge.net/tracker/index.php?func=detail&aid=1855430&group_id=97367&atid=617889
31 epatch "${FILESDIR}/1.5.1-ecj.patch"
32 }
33
34 # chokes on static inner class making instance of non-static inner class
35 EANT_FILTER_COMPILER="jikes"
36 # little trick so it doesn't try to download junit
37 EANT_EXTRA_ARGS="-Djunit.ant=1 -Djunit.present=1"
38
39 src_test() {
40 ANT_TASKS="ant-junit" eant -Djunit.jar="$(java-pkg_getjars junit)" test
41 }
42
43 src_install() {
44 java-pkg_newjar build/${P}.jar
45
46 dodoc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt ToDo.txt || die
47 use doc && java-pkg_dojavadoc build/docs
48 use examples && java-pkg_doexamples src/example
49 use source && java-pkg_dosrc src/java/org
50 }

  ViewVC Help
Powered by ViewVC 1.1.20