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

Contents of /dev-java/joda-time/joda-time-1.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Feb 4 12:28:27 2009 UTC (10 years, 4 months ago) by betelgeuse
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old versions.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28-gentoo i686)

1 # Copyright 1999-2007 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.4-r1.ebuild,v 1.4 2007/11/01 23:51:59 wltjr Exp $
4
5 JAVA_PKG_IUSE="doc examples source test"
6 inherit java-pkg-2 java-ant-2
7
8 MY_P="${P}-src"
9
10 DESCRIPTION="A quality open-source replacement for the Java Date and Time classes."
11 HOMEPAGE="http://joda-time.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
13 LICENSE="Apache-2.0"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc x86"
16 IUSE=""
17
18 COMMON_DEP="
19 elibc_glibc? ( >=sys-libs/timezone-data-2007c )
20 "
21 # test fail compile with 1.5+ because test mock object doesn't override some
22 # new abstract foo
23 DEPEND="
24 test? (
25 =dev-java/junit-3*
26 dev-java/ant-junit
27 =virtual/jdk-1.4*
28 )
29 !test? ( >=virtual/jdk-1.4 )
30 ${COMMON_DEP}"
31 RDEPEND=">=virtual/jre-1.4
32 ${COMMON_DEP}"
33
34 S="${WORKDIR}/${MY_P}"
35
36 src_unpack() {
37 unpack ${A}
38 cd "${S}"
39 rm -v ${P}.jar || die
40 }
41
42 src_compile() {
43 # chokes on static inner class making instance of non-static inner class
44 java-pkg_filter-compiler jikes
45 # little trick so it doesn't try to download junit
46 eant -Djunit.ant=1 -Djunit.present=1 jar $(use_doc)
47 }
48
49 src_test() {
50 if has_version "<sys-libs/timezone-data-2007c"; then
51 ewarn "Tests are known to fail with older versions of"
52 ewarn "sys-libs/timezone-data. Please update to the latest stable"
53 ewarn "version. We don't force it because not all libc"
54 ewarn "implementations use that package. See bugzilla for details:"
55 ewarn "https://bugs.gentoo.org/show_bug.cgi?id=170189"
56 fi
57
58 ANT_TASKS="ant-junit" eant -Djunit.jar="$(java-pkg_getjars junit)" test
59 }
60
61 src_install() {
62 java-pkg_newjar build/${P}.jar
63
64 dodoc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt ToDo.txt || die
65 use doc && java-pkg_dojavadoc build/docs
66 use examples && java-pkg_doexamples src/example
67 use source && java-pkg_dosrc src/java/org
68 }

  ViewVC Help
Powered by ViewVC 1.1.20