blob: 9cb312e010d2ee59c89a8426c0ad939cda9ab865 (
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-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
JAVA_PKG_IUSE="doc source test"
inherit java-pkg-2 java-ant-2
DESCRIPTION="An implementation of DNS in Java"
HOMEPAGE="http://www.dnsjava.org/"
SRC_URI="http://www.dnsjava.org/download/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="test"
RDEPEND=">=virtual/jre-1.6"
DEPEND=">=virtual/jdk-1.6
test? (
dev-java/junit:0
dev-java/ant-junit:0
)"
EANT_BUILD_TARGET="jar"
EANT_DOC_TARGET="docs"
EANT_TEST_TARGET="run_tests"
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_TEST_GENTOO_CLASSPATH="junit"
EANT_GENTOO_CLASSPATH_EXTRA="${P}.jar"
src_prepare() {
default
java-pkg_clean
#epatch "${FILESDIR}"/*.patch
}
src_install() {
java-pkg_newjar "${P}.jar"
einstalldocs
use doc && java-pkg_dojavadoc doc
use source && java-pkg_dosrc org/
}
src_test() {
EANT_ANT_TASKS="ant-junit" java-pkg-2_src_test
}
|