summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-12-24 09:55:25 +0100
committerFlorian Schmaus <flow@gentoo.org>2024-12-30 20:40:53 +0100
commitd9785926e71abd20b08604f6e32a9885223cbdd3 (patch)
tree06d4f55dbd4015ed3e836e2ed346b4652f1997ec /dev-java/pdfbox
parentdev-java/commons-logging: drop 1.3.1 (diff)
downloadgentoo-d9785926e71abd20b08604f6e32a9885223cbdd3.tar.gz
gentoo-d9785926e71abd20b08604f6e32a9885223cbdd3.tar.bz2
gentoo-d9785926e71abd20b08604f6e32a9885223cbdd3.zip
dev-java/pdfbox: drop 2.0.27
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/pdfbox')
-rw-r--r--dev-java/pdfbox/Manifest1
-rw-r--r--dev-java/pdfbox/pdfbox-2.0.27.ebuild259
2 files changed, 0 insertions, 260 deletions
diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest
index bbbfdbca4ea2..45d488e2a062 100644
--- a/dev-java/pdfbox/Manifest
+++ b/dev-java/pdfbox/Manifest
@@ -39,6 +39,5 @@ DIST genko_oc_shiryo1.pdf 124896 BLAKE2B c3a9921afb052ee4fe5080a1f1e66d991e3041f
DIST ipag00303.zip 4295310 BLAKE2B b68dd7dd7a7320894d782350c4598572c31d6ef492f9572adc2aac20ca98b5c5027995c0169bf815bc1e3a64d635b0e2d4e378b749e034f2fe718bcb7901d40a SHA512 59535137c649a2f8bdbb463cd716426811a6003a65883ca6e45bb0af1d526b3889af0fba3a353e90bc8d373cd32b90a27ff9ff6916ecbccb42e922c09e9b046a
DIST ipagp00303.zip 4295877 BLAKE2B e096303106029daaedae9befb003f70c2c7d00b858f89f5f8fffb9fc73679e63ec0dde8e0304cad2c611aa74d3cf1bfea56b9ac35e6838953d38b028654f5434 SHA512 26d0a9bfba7f5457a98b0bf45a4a6b081bca4140047a0886625691231459f8c81a6cdbe523e9abcbd45fd7caed21d78f1baf3a2cf9167320f6b79be3d697cb5b
DIST n019003l.pfb 79155 BLAKE2B 2995cd6e35de2d49cc6d4a5f6c7461396b23e14c6403cd7aecedbd5cec904fd0c42a114c4c5f5079fd1fad306dd8ddba649a13424ec5183395fb0fc1cbe2abb9 SHA512 8eafe21ffa6f3d7d0a50e9f4e5bcdeb727e804b552d74e65b709e778c9ed4605e5aa63743be285f0bc17ad162768583fec4196e1d1146d98f8703359247f22d0
-DIST pdfbox-2.0.27-src.zip 15770627 BLAKE2B 9f93d597141ff3da39b69da3ce989a0cc7f4020071e5cb1609a8b86d0f12a3219037cb4c7b276acf58ee6b07d842b6d7c76e14fdf79e9efdeac401048e345f89 SHA512 59a5675f5d1d34f092adc019679f7d10e7e93c0f554a002ac29d48cbffcaa600d930309fa94a92191c01ead8da905cbb37ce5e233dcc9b8732a881d4abf75def
DIST pdfbox-2.0.32-src.zip 17094201 BLAKE2B a48677819bab371d82a956affa8a9b55a8dca2627bb301b56facb4408229639162550c67eccc843b903e28a3f6258db4b0c096c2b40c134c1f0bf6085ff122d0 SHA512 bdad289bda79e78774dd4dedb8b0531f20382038e96232eb6c55508e2187ca3d7512072e87cd293fe6d1b9967d7e6a44f39b09a3af59872bf2f307275a65f546
DIST pdfbox-2.0.32-src.zip.asc 195 BLAKE2B a3c1f8078ded155bfecca3c15ec8c9ae648ab6dbfa9c023715eabdf72f092920b0c0ddedaafed3fc6a186f05c9880fbaa703eb088b704964ac4bb8bd5dd386e8 SHA512 b6aff86c09f75234c57ae079eff71e098377e27a1b0d55911b2cd466ff74c5d529c9cd45ba20653adae3a9b5f9ecfc3e9d6df0647bae59a7b651f128ef3b39e5
diff --git a/dev-java/pdfbox/pdfbox-2.0.27.ebuild b/dev-java/pdfbox/pdfbox-2.0.27.ebuild
deleted file mode 100644
index ffe02a58ecd9..000000000000
--- a/dev-java/pdfbox/pdfbox-2.0.27.ebuild
+++ /dev/null
@@ -1,259 +0,0 @@
-# Copyright 1999-2024 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/pdfbox/2.0.27/pdfbox-2.0.27-src.zip --slot 0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild pdfbox-2.0.27.ebuild
-
-EAPI=8
-
-JAVA_PKG_IUSE="doc source test"
-MAVEN_ID="org.apache.pdfbox:pdfbox:2.0.27"
-JAVA_TESTING_FRAMEWORKS="junit-4"
-
-inherit java-pkg-2 java-pkg-simple
-
-DESCRIPTION="Java library and utilities for working with PDF documents"
-HOMEPAGE="https://pdfbox.apache.org/"
-SRC_URI="mirror://apache/${PN}/${PV}/${P}-src.zip
- test? (
- https://issues.apache.org/jira/secure/attachment/12481683/1.pdf -> PDFBOX-1031-1.pdf
- https://issues.apache.org/jira/secure/attachment/12481684/2.pdf -> PDFBOX-1031-2.pdf
- https://issues.apache.org/jira/secure/attachment/12486525/1_testfile1.pdf -> PDFBOX-1065-1.pdf
- https://issues.apache.org/jira/secure/attachment/12486526/2_testfile1.pdf -> PDFBOX-1065-2.pdf
- https://issues.apache.org/jira/secure/attachment/12490774/a.pdf -> PDFBOX-1100-1.pdf
- https://issues.apache.org/jira/secure/attachment/12490775/b.pdf -> PDFBOX-1100-2.pdf
- https://issues.apache.org/jira/secure/attachment/12848122/SF1199AEG%20%28Complete%29.pdf -> PDFBOX-3656.pdf
- https://issues.apache.org/jira/secure/attachment/12852207/test.pdf -> PDFBOX-3682.pdf
- https://issues.apache.org/jira/secure/attachment/12888957/079977.pdf -> PDFBOX-3940-079977.pdf
- https://issues.apache.org/jira/secure/attachment/12867113/202097.pdf -> PDFBOX-3785-202097.pdf
- https://issues.apache.org/jira/secure/attachment/12890031/670064.pdf -> PDFBOX-3947-670064.pdf
- https://issues.apache.org/jira/secure/attachment/12890034/EUWO6SQS5TM4VGOMRD3FLXZHU35V2CP2.pdf -> PDFBOX-3948-EUWO6SQS5TM4VGOMRD3FLXZHU35V2CP2.pdf
- https://issues.apache.org/jira/secure/attachment/12890037/MKFYUGZWS3OPXLLVU2Z4LWCTVA5WNOGF.pdf -> PDFBOX-3949-MKFYUGZWS3OPXLLVU2Z4LWCTVA5WNOGF.pdf
- https://issues.apache.org/jira/secure/attachment/12890042/23EGDHXSBBYQLKYOKGZUOVYVNE675PRD.pdf -> PDFBOX-3950-23EGDHXSBBYQLKYOKGZUOVYVNE675PRD.pdf
- https://issues.apache.org/jira/secure/attachment/12890047/FIHUZWDDL2VGPOE34N6YHWSIGSH5LVGZ.pdf -> PDFBOX-3951-FIHUZWDDL2VGPOE34N6YHWSIGSH5LVGZ.pdf
- https://issues.apache.org/jira/secure/attachment/12892097/c687766d68ac766be3f02aaec5e0d713_2.pdf -> PDFBOX-3964-c687766d68ac766be3f02aaec5e0d713_2.pdf
- https://issues.apache.org/jira/secure/attachment/12893582/63NGFQRI44HQNPIPEJH5W2TBM6DJZWMI.pdf -> PDFBOX-3977-63NGFQRI44HQNPIPEJH5W2TBM6DJZWMI.pdf
- https://issues.apache.org/jira/secure/attachment/12896905/GeneralForbearance.pdf -> PDFBOX-3999-GeneralForbearance.pdf
- https://issues.apache.org/jira/secure/attachment/12919726/sample.pdf -> PDFBOX-4197.pdf
- https://issues.apache.org/jira/secure/attachment/12938094/Quelldatei.pdf -> PDFBOX-4308.pdf
- https://issues.apache.org/jira/secure/attachment/12952086/form.pdf -> PDFBOX-4408.pdf
- https://issues.apache.org/jira/secure/attachment/12953423/000314.pdf -> PDFBOX-4418-000314.pdf
- https://issues.apache.org/jira/secure/attachment/12953421/000671.pdf -> PDFBOX-4418-000671.pdf
- https://issues.apache.org/jira/secure/attachment/12953866/000746.pdf -> PDFBOX-4423-000746.pdf
- https://issues.apache.org/jira/secure/attachment/12966453/cryptfilter.pdf -> PDFBOX-4517-cryptfilter.pdf
- https://issues.apache.org/jira/secure/attachment/12991833/PDFBOX-4750-test.pdf -> PDFBOX-4750.pdf
- https://issues.apache.org/jira/secure/attachment/12914331/WXMDXCYRWFDCMOSFQJ5OAJIAFXYRZ5OA.pdf -> PDFBOX-4153-WXMDXCYRWFDCMOSFQJ5OAJIAFXYRZ5OA.pdf
- https://issues.apache.org/jira/secure/attachment/12962991/NeS1078.pdf -> PDFBOX-4490.pdf
- https://issues.apache.org/jira/secure/attachment/12784025/PDFBOX-3208-L33MUTT2SVCWGCS6UIYL5TH3PNPXHIS6.pdf
- https://issues.apache.org/jira/secure/attachment/12867102/PDFBOX-3783-72GLBIGUC6LB46ELZFBARRJTLN4RBSQM.pdf
- https://issues.apache.org/jira/secure/attachment/12929821/16bit.png -> PDFBOX-4184-16bit.png
- https://issues.apache.org/jira/secure/attachment/12943502/ArrayIndexOutOfBoundsException%20COSParser -> PDFBOX-4338.pdf
- https://issues.apache.org/jira/secure/attachment/12943503/NullPointerException%20COSParser -> PDFBOX-4339.pdf
- https://issues.apache.org/jira/secure/attachment/12867433/genko_oc_shiryo1.pdf
- https://moji.or.jp/wp-content/ipafont/IPAfont/ipag00303.zip
- https://moji.or.jp/wp-content/ipafont/IPAfont/ipagp00303.zip
- https://issues.apache.org/jira/secure/attachment/12911053/n019003l.pfb
- https://issues.apache.org/jira/secure/attachment/12949710/032163.jpg -> PDFBOX-4184-032163.jpg
- https://issues.apache.org/jira/secure/attachment/13025718/lotus.jpg -> PDFBOX-5196-lotus.jpg
- https://issues.apache.org/jira/secure/attachment/13002695/13._Korona_szallo_vegzes_13.09.26.eredeti.pdf -> PDFBOX-4831.pdf
- )"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="amd64 arm64 ppc64"
-IUSE="+tools"
-
-PROPERTIES="test_network"
-RESTRICT="test"
-
-# Common dependencies
-# POM: pom.xml
-# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0
-# org.apache.pdfbox:fontbox:2.0.27 -> >=dev-java/fontbox-2.0.27:0
-# org.bouncycastle:bcmail-jdk15on:1.70 -> !!!artifactId-not-found!!!
-# org.bouncycastle:bcprov-jdk15on:1.70 -> !!!artifactId-not-found!!!
-
-CP_DEPEND="
- dev-java/bcmail:0
- dev-java/bcprov:0
- dev-java/commons-logging:0
- ~dev-java/fontbox-${PV}:0
-"
-
-# Compile dependencies
-# POM: pom.xml
-# test? com.github.jai-imageio:jai-imageio-core:1.4.0 -> >=dev-java/jai-imageio-core-1.4.0:0
-# test? com.github.jai-imageio:jai-imageio-jpeg2000:1.4.0 -> >=dev-java/jai-imageio-jpeg2000-1.4.0:0
-# test? com.googlecode.java-diff-utils:diffutils:1.3.0 -> >=dev-java/java-diff-utils-1.3.0:0
-# test? junit:junit:4.13.2 -> >=dev-java/junit-4.13.2:4
-# test? org.apache.pdfbox:jbig2-imageio:3.0.4 -> !!!suitable-mavenVersion-not-found!!!
-# test? org.mockito:mockito-core:4.8.0 -> >=dev-java/mockito-4.8.0:4
-
-DEPEND="${CP_DEPEND}
- >=virtual/jdk-1.8:*
- test? (
- dev-java/jai-imageio-core:0
- dev-java/jai-imageio-jpeg2000:0
- dev-java/java-diff-utils:0
- dev-java/jbig2-imageio:0
- dev-java/mockito:4
- )"
-
-RDEPEND="${CP_DEPEND}
- >=virtual/jre-1.8:*"
-
-BDEPEND="app-arch/unzip"
-
-DOCS=( README.md {NOTICE,RELEASE-NOTES}.txt )
-
-S="${WORKDIR}/${P}"
-
-JAVA_GENTOO_CLASSPATH_EXTRA="pdfbox.jar:pdfbox-debugger.jar"
-JAVA_TEST_GENTOO_CLASSPATH="jai-imageio-core,jai-imageio-jpeg2000,java-diff-utils,jbig2-imageio,junit-4,mockito-4"
-
-JAVA_TEST_EXCLUDES=(
- # excluded upstream according to
- # https://github.com/apache/pdfbox/blob/2.0.27/pdfbox/pom.xml#L123
- "org.apache.pdfbox.rendering.TestPDFToImage"
-
- # Causing test failures. Upstream does not run these tests.
- "org.apache.pdfbox.cos.TestCOSBase"
- "org.apache.pdfbox.cos.TestCOSNumber"
-)
-
-src_compile() {
- einfo "Compiling pdfbox"
- JAVA_AUTOMATIC_MODULE_NAME="org.apache.pdfbox"
- JAVA_JAR_FILENAME="pdfbox.jar"
- JAVA_RESOURCE_DIRS="pdfbox/src/main/resources"
- JAVA_SRC_DIR="pdfbox/src/main/java"
- java-pkg-simple_src_compile
-
- if use tools; then
- einfo "Compiling debugger"
- JAVA_AUTOMATIC_MODULE_NAME=""
- JAVA_JAR_FILENAME="pdfbox-debugger.jar"
- JAVA_RESOURCE_DIRS="debugger/src/main/resources"
- JAVA_SRC_DIR="debugger/src/main/java"
- java-pkg-simple_src_compile
-
- einfo "Compiling pdfbox-tools"
- JAVA_JAR_FILENAME="pdfbox-tools.jar"
- JAVA_RESOURCE_DIRS=""
- JAVA_SRC_DIR="tools/src/main/java"
- java-pkg-simple_src_compile
- fi
-
- if use doc; then
- einfo "Compiling javadocs"
- JAVA_SRC_DIR=(
- "${S}/pdfbox/src/main/java"
- "${S}/debugger/src/main/java"
- )
- if use tools; then
- JAVA_SRC_DIR+=( "${S}/tools/src/main/java" )
- fi
- JAVA_JAR_FILENAME="ignoreme.jar"
- java-pkg-simple_src_compile
- fi
-}
-
-src_test() {
- # @Ignore 2 tests which otherwise would fail
- # 'mvn test' skips them
- sed \
- -e '/import org.junit.Test/a import org.junit.Ignore;' \
- -e '/testPDFBox3826()/i @Ignore' \
- -e '/testPDFBox5484()/i @Ignore' \
- -i pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java || die
-
- einfo "Testing pdfbox"
- JAVA_TEST_SRC_DIR="pdfbox/src/test/java"
- JAVA_TEST_RESOURCE_DIRS="pdfbox/src/test/resources"
-
- # tests failed with S="${WORKDIR}/${P}"
- find pdfbox/src/test/ -type f -exec sed -i 's:src/test/resources:pdfbox/src/test/resources:' {} + || die
-
- mkdir --parents target/pdfs || die
- cp \
- "${DISTDIR}"/PDFBOX-1031-1.pdf \
- "${DISTDIR}"/PDFBOX-1031-2.pdf \
- "${DISTDIR}"/PDFBOX-1065-1.pdf \
- "${DISTDIR}"/PDFBOX-1065-2.pdf \
- "${DISTDIR}"/PDFBOX-1100-1.pdf \
- "${DISTDIR}"/PDFBOX-1100-2.pdf \
- "${DISTDIR}"/PDFBOX-3656.pdf \
- "${DISTDIR}"/PDFBOX-3682.pdf \
- "${DISTDIR}"/PDFBOX-3940-079977.pdf \
- "${DISTDIR}"/PDFBOX-3785-202097.pdf \
- "${DISTDIR}"/PDFBOX-3947-670064.pdf \
- "${DISTDIR}"/PDFBOX-3948-EUWO6SQS5TM4VGOMRD3FLXZHU35V2CP2.pdf \
- "${DISTDIR}"/PDFBOX-3949-MKFYUGZWS3OPXLLVU2Z4LWCTVA5WNOGF.pdf \
- "${DISTDIR}"/PDFBOX-3950-23EGDHXSBBYQLKYOKGZUOVYVNE675PRD.pdf \
- "${DISTDIR}"/PDFBOX-3951-FIHUZWDDL2VGPOE34N6YHWSIGSH5LVGZ.pdf \
- "${DISTDIR}"/PDFBOX-3964-c687766d68ac766be3f02aaec5e0d713_2.pdf \
- "${DISTDIR}"/PDFBOX-3977-63NGFQRI44HQNPIPEJH5W2TBM6DJZWMI.pdf \
- "${DISTDIR}"/PDFBOX-3999-GeneralForbearance.pdf \
- "${DISTDIR}"/PDFBOX-4197.pdf \
- "${DISTDIR}"/PDFBOX-4308.pdf \
- "${DISTDIR}"/PDFBOX-4408.pdf \
- "${DISTDIR}"/PDFBOX-4418-000314.pdf \
- "${DISTDIR}"/PDFBOX-4418-000671.pdf \
- "${DISTDIR}"/PDFBOX-4423-000746.pdf \
- "${DISTDIR}"/PDFBOX-4517-cryptfilter.pdf \
- "${DISTDIR}"/PDFBOX-4750.pdf \
- "${DISTDIR}"/PDFBOX-4153-WXMDXCYRWFDCMOSFQJ5OAJIAFXYRZ5OA.pdf \
- "${DISTDIR}"/PDFBOX-4490.pdf \
- "${DISTDIR}"/PDFBOX-3208-L33MUTT2SVCWGCS6UIYL5TH3PNPXHIS6.pdf \
- "${DISTDIR}"/PDFBOX-3783-72GLBIGUC6LB46ELZFBARRJTLN4RBSQM.pdf \
- "${DISTDIR}"/PDFBOX-4338.pdf \
- "${DISTDIR}"/PDFBOX-4339.pdf \
- "${DISTDIR}"/genko_oc_shiryo1.pdf \
- "${DISTDIR}"/PDFBOX-4831.pdf \
- "target/pdfs" || die
-
- mkdir target/fonts || die
- cp "${DISTDIR}"/n019003l.pfb "target/fonts" || die
- unzip "${DISTDIR}"/ipag00303.zip -d "target/fonts" || die
- unzip "${DISTDIR}"/ipagp00303.zip -d "target/fonts" || die
-
- mkdir target/imgs || die
- cp \
- "${DISTDIR}"/PDFBOX-5196-lotus.jpg \
- "${DISTDIR}"/PDFBOX-4184-032163.jpg \
- "${DISTDIR}"/PDFBOX-4184-16bit.png \
- "target/imgs" || die
-
- java-pkg-simple_src_test
- rm -r target/test-classes || die # avoid to run previous tests again
-
- if use tools; then
- einfo "Testing pdfbox-tools"
- find tools/src/test/ -type f -exec sed -i 's:src/test/resources:tools/src/test/resources:' {} + || die
- JAVA_TEST_SRC_DIR="tools/src/test/java"
- JAVA_TEST_RESOURCE_DIRS="tools/src/test/resources"
- java-pkg-simple_src_test
- fi
-}
-
-src_install() {
- default
-
- java-pkg_dojar "pdfbox.jar"
- if use tools; then
- java-pkg_dojar "pdfbox-debugger.jar"
- java-pkg_dojar "pdfbox-tools.jar"
- java-pkg_dolauncher ${PN} --main org.apache.pdfbox.tools.PDFBox
- fi
-
- if use doc; then
- java-pkg_dojavadoc target/api
- fi
-
- if use source; then
- java-pkg_dosrc \
- "${S}/pdfbox/src/main/java/*" \
- "${S}/debugger/src/main/java/*" \
- "${S}/tools/src/main/java/*"
- fi
-}