diff options
Diffstat (limited to 'dev-java/ant-contrib')
-rw-r--r-- | dev-java/ant-contrib/Manifest | 1 | ||||
-rw-r--r-- | dev-java/ant-contrib/ant-contrib-1.0_beta6_pre20201123.ebuild | 75 | ||||
-rw-r--r-- | dev-java/ant-contrib/metadata.xml | 1 |
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-java/ant-contrib/Manifest b/dev-java/ant-contrib/Manifest index 8290b6b58b9c..8b26c2ae497b 100644 --- a/dev-java/ant-contrib/Manifest +++ b/dev-java/ant-contrib/Manifest @@ -1 +1,2 @@ +DIST ant-contrib-1.0_beta6_pre20201123.tar.gz 473435 BLAKE2B f73f0a3cfbf92719143a806e1b4b753f7809aeef4976fd6f75aef85490daa0a44a90c03779aba0784e9e59dfe9b9abf7b19c405287fa20838b29e621fa5f7dac SHA512 0b4d05c90c16c5d076364aa140d3ce503b7b7abf187d7d4cccbf0170dd3afab879bb71b002b3c467f73d2632a57dfd70f74715e8b48f26376cb88e872ec1014e DIST ant-contrib-1.0b3-src.tar.bz2 3298187 BLAKE2B 0572d583a770c239880fb7e8e4a1e91331dfe80a52d7cf83a90d108f1e717caa26699dce43b72fb1944a74c8c738ad659f60864e2e8e945c8e91569d80c1214b SHA512 8147ed51612eed9d41515c00ef2bb7210ebd50dba8b471abfadf8a56c67b53c030602ce9e49e9070d72d383de61f290e941a76c282e223330fee606f3633b0a8 diff --git a/dev-java/ant-contrib/ant-contrib-1.0_beta6_pre20201123.ebuild b/dev-java/ant-contrib/ant-contrib-1.0_beta6_pre20201123.ebuild new file mode 100644 index 000000000000..f652e7eadd71 --- /dev/null +++ b/dev-java/ant-contrib/ant-contrib-1.0_beta6_pre20201123.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/cniweb/ant-contrib/archive/0228412be2ef648cfabc1d74416d3188755aff9b.tar.gz --slot 0 --keywords "~amd64 ~ppc64 ~x86" --ebuild ant-contrib-1.0_beta6_pre20201123.ebuild + +EAPI=7 + +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="http://ant-contrib.sourceforge.net:80" +SRC_URI="https://github.com/cniweb/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +# 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-core-1.10.9:0 + >=dev-java/ant-ivy-2.3.0:2 + >=dev-java/bcel-6.5.0:0 + >=dev-java/commons-httpclient-3.1:3 + >=dev-java/xerces-2.12.0: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=" + >=virtual/jdk-1.8:* + ${CDEPEND} + test? ( + >=dev-java/ant-core-1.10.9:0 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND} +" + +S="${WORKDIR}/${PN}-${MY_COMMIT}/${PN}" + +# JAVA_GENTOO_CLASSPATH="commons-httpclient-3,ant-core,bcel,ant-ivy-2,!!!groupId-not-found!!!,xerces-2" +JAVA_GENTOO_CLASSPATH="commons-httpclient-3,ant-core,bcel,ant-ivy-2,xerces-2" +JAVA_SRC_DIR="src/main/java" +JAVA_RESOURCE_DIRS="src/main/resources" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4,ant-core" +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 +} diff --git a/dev-java/ant-contrib/metadata.xml b/dev-java/ant-contrib/metadata.xml index 5c1224a74c63..b0770934cd36 100644 --- a/dev-java/ant-contrib/metadata.xml +++ b/dev-java/ant-contrib/metadata.xml @@ -7,5 +7,6 @@ </maintainer> <upstream> <remote-id type="sourceforge">ant-contrib</remote-id> + <remote-id type="github">cniweb/ant-contrib</remote-id> </upstream> </pkgmetadata> |