blob: 33330e7ebec2cd4587401c82c069c0238ee83794 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ical4j/ical4j-1.0_beta2.ebuild,v 1.6 2007/08/15 09:38:11 opfer Exp $
JAVA_PKG_IUSE="doc examples source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="a Java library for handling iCalendar data streams"
HOMEPAGE="http://ical4j.sourceforge.net/"
MY_PV=${PV/_/-}
MY_P=${PN}-${MY_PV}
SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
COMMON_DEP="
dev-java/commons-logging
dev-java/commons-codec
=dev-java/commons-lang-2.1*
"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.4
dev-java/emma
${COMMON_DEP}"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
java-ant_rewrite-classpath
rm -v lib/*.jar || die "rm jar failed"
mkdir bin || die "mkdir bin failed"
java-pkg_filter-compiler jikes
}
EANT_ANT_TASKS="emma"
EANT_BUILD_TARGET="package"
EANT_GENTOO_CLASSPATH="commons-logging,commons-codec,commons-lang-2.1"
EANT_EXTRA_ARGS="-Demma.dir=/usr/share/emma/lib/"
RESTRICT="test"
# two tests fail with maven, they work in HEAD
src_test() {
local dcp="$(java-pkg_getjars --with-dependencies ${EANT_GENTOO_CLASSPATH})"
ANT_TASKS="ant-junit emma" eant ${EANT_EXTRA_ARGS} run-tests \
-Dproject.classpath="${dcp}"
}
src_install() {
java-pkg_dojar build/*.jar
dodoc README AUTHORS CHANGELOG etc/FAQ \
etc/TODO etc/standard_deviations.txt || die "dodoc failed"
use doc && java-pkg_dojavadoc docs/api
use source && java-pkg_dosrc source/net
use examples && java-pkg_doexamples etc/samples
}
|