diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-11-13 09:30:19 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-12-28 19:52:36 +0100 |
commit | 573dc7e69673d57fdd26b246ef609ab2783a4217 (patch) | |
tree | 0b10457db524c12c38e774b4a6567eb4e7c93742 /dev-java | |
parent | sec-keys/openpgp-keys-apache-xmlgraphics-commons: new package, add 20150603 (diff) | |
download | gentoo-573dc7e69673d57fdd26b246ef609ab2783a4217.tar.gz gentoo-573dc7e69673d57fdd26b246ef609ab2783a4217.tar.bz2 gentoo-573dc7e69673d57fdd26b246ef609ab2783a4217.zip |
dev-java/xmlgraphics-commons: add 2.8
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/28252
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/xmlgraphics-commons/Manifest | 2 | ||||
-rw-r--r-- | dev-java/xmlgraphics-commons/xmlgraphics-commons-2.8.ebuild | 72 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-java/xmlgraphics-commons/Manifest b/dev-java/xmlgraphics-commons/Manifest index ee6793181490..f21616af05c7 100644 --- a/dev-java/xmlgraphics-commons/Manifest +++ b/dev-java/xmlgraphics-commons/Manifest @@ -1 +1,3 @@ DIST xmlgraphics-commons-2.7-src.tar.gz 2021218 BLAKE2B a16dda389662a38d5ebf6cbd015ac5bf8154b5e2df9e36fd3a33987b04a4de08cc1ebc71e940c05793ef045249c68e7dbb54c418a7c6888020a800e039b0a188 SHA512 7d3993fc920767512f94edef3342757f0ffc9c9dbad80695fe3d77b0ec162380d9b467682ae41238e7ee719601709edb41b2dab06c385dfd9fa898577d8d2c22 +DIST xmlgraphics-commons-2.8-src.tar.gz 2243271 BLAKE2B 86456adf4b9610e580b3b4f87c362dc1259c2f2bb4d4abb0dc3d765ee2cc5fb3df54597f5a5fa620a813dee83cd7549771d2b4116d20077103e389f1942903a0 SHA512 3e6c397a7444c4ce1d1aeda96a7c9abfd3d8d57a0997d7d6ae2be36303dd17550b7b92fd86eac832566bbeefccdd06619e31c0d907cd6b953a8eb934d7fa618b +DIST xmlgraphics-commons-2.8-src.tar.gz.asc 833 BLAKE2B d68b6fe36b44764c44b67baca02a50f01644aaf2e8ed6571caeffd7724b6284860bd81d5a2ddcbefde6411bd5c9ed072f853cd178f862541f9f49aea3e023e21 SHA512 6e17a628ddd253c44d62a7f08d615f5a484bb6433482e6e217e794620396150b327f2e89836f62aafde3050ac0677432e0b12b645c57ae74cc11e093d86ac43c diff --git a/dev-java/xmlgraphics-commons/xmlgraphics-commons-2.8.ebuild b/dev-java/xmlgraphics-commons/xmlgraphics-commons-2.8.ebuild new file mode 100644 index 000000000000..973d1085e255 --- /dev/null +++ b/dev-java/xmlgraphics-commons/xmlgraphics-commons-2.8.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2022 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 mirror://apache/xmlgraphics/commons/source/2.8-src.tar.gz --slot 2 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild xmlgraphics-commons-2.8.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.xmlgraphics:xmlgraphics-commons:2.8" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple verify-sig + +DESCRIPTION="XML Graphics Commons" +HOMEPAGE="https://xmlgraphics.apache.org/commons/" +SRC_URI="mirror://apache/xmlgraphics/commons/source/${P}-src.tar.gz + verify-sig? ( https://downloads.apache.org/xmlgraphics/commons/source/xmlgraphics-commons-${PV}-src.tar.gz.asc )" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +# Common dependencies +# POM: pom.xml +# commons-io:commons-io:2.11.0 -> >=dev-java/commons-io-2.11.0:1 +# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 + +CP_DEPEND=" + dev-java/commons-io:1 + dev-java/commons-logging:0 +" + +# Compile dependencies +# POM: pom.xml +# test? junit:junit:4.11 -> >=dev-java/junit-4.13.2:4 +# test? org.mockito:mockito-core:2.28.2 -> >=dev-java/mockito-4.8.0:4 +# test? xml-resolver:xml-resolver:1.2 -> >=dev-java/xml-commons-resolver-1.2:0 + +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:* + test? ( + dev-java/mockito:4 + dev-java/xml-commons-resolver:0 + )" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-commons )" +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/xmlgraphics-commons.apache.org.asc" + +DOCS=( NOTICE README ) + +S="${WORKDIR}/${P}" + +JAVA_RESOURCE_DIRS="src/main/resources" +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_EXTRA_ARGS=( -ea ) +JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-4,xml-commons-resolver" +# Some *.{png,tiff,txt,xmp} are misplaced in "src/main/java". +JAVA_TEST_RESOURCE_DIRS=( "src/test/resources" "src/test/java" ) +JAVA_TEST_SRC_DIR="src/test/java" + +src_test() { + local vm_version="$(java-config -g PROVIDES_VERSION)" + if ver_test "${vm_version}" -ge 11; then + JAVA_TEST_EXCLUDES="org.apache.xmlgraphics.image.loader.CorruptImagesTestCase" + fi + java-pkg-simple_src_test +} |