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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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.1: +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.5.ebuild,v 1.1 2007/10/30 00:31:48 betelgeuse 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 ~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 rm -v "${S}"/*.jar || die
33 }
34
35 # chokes on static inner class making instance of non-static inner class
36 EANT_FILTER_COMPILER="jikes"
37 # little trick so it doesn't try to download junit
38 EANT_EXTRA_ARGS="-Djunit.ant=1 -Djunit.present=1"
39
40 src_test() {
41 if has_version "<sys-libs/timezone-data-2007c"; then
42 ewarn "Tests are known to fail with older versions of"
43 ewarn "sys-libs/timezone-data. Please update to the latest stable"
44 ewarn "version. We don't force it because not all libc"
45 ewarn "implementations use that package. See bugzilla for details:"
46 ewarn "https://bugs.gentoo.org/show_bug.cgi?id=170189"
47 fi
48
49 ANT_TASKS="ant-junit" eant -Djunit.jar="$(java-pkg_getjars junit)" test
50 }
51
52 src_install() {
53 java-pkg_newjar build/${P}.jar
54
55 dodoc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt ToDo.txt || die
56 use doc && java-pkg_dojavadoc build/docs
57 use examples && java-pkg_doexamples src/example
58 use source && java-pkg_dosrc src/java/org
59 }

  ViewVC Help
Powered by ViewVC 1.1.20