blob: fe75a3cfb79f605dc0c4105b4eb02ba0016022b0 (
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
63
64
65
66
67
68
69
70
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source test"
MAVEN_ID="ant-contrib:ant-contrib:1.0b6"
JAVA_TESTING_FRAMEWORKS="junit-4"
inherit java-pkg-2 java-pkg-simple
MY_COMMIT="0228412be2ef648cfabc1d74416d3188755aff9b"
DESCRIPTION="Ant-contrib tasks for Apache Ant"
HOMEPAGE="https://ant-contrib.sourceforge.net/"
SRC_URI="https://github.com/cniweb/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_COMMIT}/${PN}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ppc64"
# Too many tests fail
RESTRICT="test"
# Common dependencies
# POM: pom.xml
# commons-httpclient:commons-httpclient:3.1 -> >=dev-java/commons-httpclient-3.1:3
# org.apache.ant:ant:1.9.15 -> >=dev-java/ant-core-1.10.9:0
# org.apache.bcel:bcel:5.1 -> >=dev-java/bcel-6.5.0:0
# org.apache.ivy:ivy:2.5.0 -> >=dev-java/ant-ivy-2.5.0:2
# org.jvnet.hudson:ivy:1.4.1 -> !!!groupId-not-found!!!
# xerces:xercesImpl:2.12.0 -> >=dev-java/xerces-2.12.0:2
CDEPEND="
>=dev-java/ant-1.10.14-r3:0
dev-java/ant-ivy:0
dev-java/bcel:0
dev-java/commons-httpclient:3
dev-java/xerces:2
"
# Compile dependencies
# POM: pom.xml
# test? junit:junit:4.12 -> >=dev-java/junit-4.12:4
# test? org.apache.ant:ant-launcher:1.9.5 -> >=dev-java/ant-core-1.10.9:0
DEPEND="${CDEPEND}
>=virtual/jdk-1.8:*
test? (
>=dev-java/ant-1.10.14-r3:0[junit4]
)"
RDEPEND="${CDEPEND}
>=virtual/jre-1.8:*"
# JAVA_GENTOO_CLASSPATH="commons-httpclient-3,ant-core,bcel,ant-ivy-2,!!!groupId-not-found!!!,xerces-2"
JAVA_GENTOO_CLASSPATH="commons-httpclient-3,ant,bcel,ant-ivy,xerces-2"
JAVA_SRC_DIR="src/main/java"
JAVA_RESOURCE_DIRS="src/main/resources"
JAVA_TEST_GENTOO_CLASSPATH="junit-4,ant"
JAVA_TEST_SRC_DIR="test/src"
JAVA_TEST_RESOURCE_DIRS="test/resources"
src_prepare() {
default
sed -i \
-e '/^import/s/fr.jayasoft.ivy.ant/org.apache.ivy.ant/' \
src/main/java/net/sf/antcontrib/net/Ivy14Adapter.java || die
}
|