blob: 262baa14691338974b20cc5b52bc2bfd1b8e6a18 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jid3/jid3-0.46.ebuild,v 1.1 2007/05/06 10:19:28 betelgeuse Exp $
JAVA_PKG_IUSE="doc source test"
# To make sure the javadoc patch doesn't break things
WANT_SPLIT_WANT="true"
inherit eutils java-pkg-2 java-ant-2
MY_P=${P/-/_}
S=${WORKDIR}/${MY_P}
DESCRIPTION="ID3 Class Library Implementation"
HOMEPAGE="http://jid3.blinkenlights.org/"
SRC_URI="http://jid3.blinkenlights.org/release/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
# Feel free to submit a patch that doesn't bundle the classes
# into the result jar
RDEPEND=">=virtual/jre-1.4
test? ( dev-java/junit )"
DEPEND=">=virtual/jdk-1.4
test? ( dev-java/junit )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/0.46-javadoc.patch"
rm -v "${S}"/dist/*.jar || die
if use !test; then
rm -rv "${S}/src/org/blinkenlights/jid3/test" || die
else
epatch "${FILESDIR}/0.46-tests.patch"
sed -e "s%c:/work/jid3/%${S}/%" -i \
src/org/blinkenlights/jid3/test/AllTests.java || die
fi
}
src_compile() {
local junit="-Dlibs.junit.classpath"
eant jar $(use_doc) \
$(use test && echo ${junit}=$(java-pkg_getjars junit))
}
src_test() {
ejunit -cp dist/JID3.jar org.blinkenlights.jid3.test.AllTests
}
src_install() {
java-pkg_dojar dist/JID3.jar
use doc && java-pkg_dojavadoc dist/javadoc
use source && java-pkg_dosrc src/
}
|