blob: 25c8ae5673527d2b236dc9f6bdf0a538adc2aa05 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/qdox/qdox-20050104-r1.ebuild,v 1.5 2007/05/13 18:23:19 nelchael Exp $
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Parser for extracting class/interface/method definitions from source files with JavaDoc tags."
HOMEPAGE="http://qdox.codehaus.org"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="Apache-1.1"
SLOT="1.6" # it's the 1.6 codebase
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
COMMON_DEP="dev-java/junit
dev-java/ant-core"
DEPEND=">=virtual/jdk-1.4
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
src_unpack() {
unpack ${A}
java-ant_rewrite-classpath "${S}/build.xml"
}
EANT_DOC_TARGET="docs"
src_compile() {
EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjars junit,ant-core)"
java-pkg-2_src_compile
}
src_install() {
java-pkg_dojar dist/${PN}.jar
dodoc README.txt
use doc && java-pkg_dojavadoc docs
use source && java-pkg_dosrc src/java/*
}
|