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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Mar 30 17:03:41 2008 UTC (8 years, 8 months ago) by corsair
Branch: MAIN
Changes since 1.6: +2 -2 lines
Added ~ppc64
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 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.5.1.ebuild,v 1.6 2008/03/08 11:49:02 nelchael 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"
17 IUSE=""
18
19 COMMON_DEP="elibc_glibc? ( >=sys-libs/timezone-data-2007h ) "
20
21 DEPEND="
22 >=virtual/jdk-1.4
23 test? ( dev-java/ant-junit )
24 ${COMMON_DEP}"
25 RDEPEND=">=virtual/jre-1.4
26 ${COMMON_DEP}"
27
28 S="${WORKDIR}/${MY_P}"
29
30 src_unpack() {
31 unpack ${A}
32 cd "${S}"
33 rm -v *.jar || die
34 # https://sourceforge.net/tracker/index.php?func=detail&aid=1855430&group_id=97367&atid=617889
35 epatch "${FILESDIR}/1.5.1-ecj.patch"
36 }
37
38 # chokes on static inner class making instance of non-static inner class
39 EANT_FILTER_COMPILER="jikes"
40 # little trick so it doesn't try to download junit
41 EANT_EXTRA_ARGS="-Djunit.ant=1 -Djunit.present=1"
42
43 src_test() {
44 if has_version "<sys-libs/timezone-data-2007c"; then
45 ewarn "Tests are known to fail with older versions of"
46 ewarn "sys-libs/timezone-data. Please update to the latest stable"
47 ewarn "version. We don't force it because not all libc"
48 ewarn "implementations use that package. See bugzilla for details:"
49 ewarn "https://bugs.gentoo.org/show_bug.cgi?id=170189"
50 fi
51
52 ANT_TASKS="ant-junit" eant -Djunit.jar="$(java-pkg_getjars junit)" test
53 }
54
55 src_install() {
56 java-pkg_newjar build/${P}.jar
57
58 dodoc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt ToDo.txt || die
59 use doc && java-pkg_dojavadoc build/docs
60 use examples && java-pkg_doexamples src/example
61 use source && java-pkg_dosrc src/java/org
62 }

  ViewVC Help
Powered by ViewVC 1.1.20