summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2021-06-07 14:57:08 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2021-07-23 07:41:06 +0200
commit30d28727f22b4a326891b721b8f21083521762b6 (patch)
treecaa63186eb3c57ccd079da4ecc63205397b962f2 /dev-java
parentdev-java/fontbox: bump to 2.0.24 (diff)
downloadgentoo-30d28727f22b4a326891b721b8f21083521762b6.tar.gz
gentoo-30d28727f22b4a326891b721b8f21083521762b6.tar.bz2
gentoo-30d28727f22b4a326891b721b8f21083521762b6.zip
dev-java/jbig2-imageio: new package
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21564/commits/ab54c675b7c5764b9094edb64f945a556a89ebda Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jbig2-imageio/Manifest1
-rw-r--r--dev-java/jbig2-imageio/jbig2-imageio-3.0.3.ebuild41
-rw-r--r--dev-java/jbig2-imageio/metadata.xml14
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-java/jbig2-imageio/Manifest b/dev-java/jbig2-imageio/Manifest
new file mode 100644
index 000000000000..e0b9d8c74615
--- /dev/null
+++ b/dev-java/jbig2-imageio/Manifest
@@ -0,0 +1 @@
+DIST jbig2-imageio-3.0.3-src.zip 2079380 BLAKE2B bb05f81bfdef00b1a0ffcb7a2df2617fe5f5a83957249266917e775ceab57282ee289aedb198c6639201e85df83e89b8cfe8cf2d865fff863d1f2a5acd439721 SHA512 5350b4ce89af72eea5069f6ea5fc830238e4df711712506405aaf0e14546a1b07155b8c5225b47f0d40ce2821032426a2987adbe0df63c536cae4fb319b5c700
diff --git a/dev-java/jbig2-imageio/jbig2-imageio-3.0.3.ebuild b/dev-java/jbig2-imageio/jbig2-imageio-3.0.3.ebuild
new file mode 100644
index 000000000000..f6ba1cf47e0c
--- /dev/null
+++ b/dev-java/jbig2-imageio/jbig2-imageio-3.0.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom jbig2-imageio-3.0.3/pom.xml --download-uri https://downloads.apache.org/pdfbox/jbig2-imageio/3.0.3/jbig2-imageio-3.0.3-src.zip --slot 0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild jbig2-imageio-3.0.3.ebuild
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.apache.pdfbox:jbig2-imageio:3.0.3"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="PDFBox JBIG2 ImageIO plugin"
+HOMEPAGE="https://pdfbox.apache.org"
+SRC_URI="https://downloads.apache.org/pdfbox/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+DEPEND=">=virtual/jdk-1.8:*"
+RDEPEND=">=virtual/jre-1.8:*"
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}"
+
+JAVA_SRC_DIR="${P}/src/main/java"
+JAVA_RESOURCE_DIRS="${P}/src/main/resources"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_SRC_DIR="${P}/src/test/java"
+JAVA_TEST_RESOURCE_DIRS="${P}/src/test/resources"
+
+JAVA_TEST_EXCLUDES=(
+ # org.junit.runners.model.InvalidTestClassError: Invalid test class
+ # 1. Test class should have exactly one public constructor
+ "org.apache.pdfbox.jbig2.util.TestServiceImpl"
+ "org.apache.pdfbox.jbig2.util.TestService"
+)
diff --git a/dev-java/jbig2-imageio/metadata.xml b/dev-java/jbig2-imageio/metadata.xml
new file mode 100644
index 000000000000..22254bd7257b
--- /dev/null
+++ b/dev-java/jbig2-imageio/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Java Image I/O plugin for reading JBIG2-compressed image data.
+ Formerly known as the levigo JBig2 ImageIO plugin (com.levigo.jbig2:levigo-jbig2-imageio).
+ </longdescription>
+ <upstream>
+ <remote-id type="github">apache/pdfbox-jbig2</remote-id>
+ </upstream>
+</pkgmetadata>