commit: 53ec8d6bcb32cf98d430e8c57599284784cbe1c9 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Sat Oct 8 15:40:28 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Tue Dec 27 19:51:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53ec8d6b
dev-java/fontbox: add 2.0.27 Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> dev-java/fontbox/Manifest | 1 + dev-java/fontbox/fontbox-2.0.27.ebuild | 63 ++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-java/fontbox/Manifest b/dev-java/fontbox/Manifest index 3336cdec5c6b..8b022d83f3d5 100644 --- a/dev-java/fontbox/Manifest +++ b/dev-java/fontbox/Manifest @@ -4,3 +4,4 @@ DIST NotoSansSC-Regular.otf 8481960 BLAKE2B 3eee2c1e6be5e013d2ed679ccb361221e3e4 DIST OpenSans-Regular.pfb 100962 BLAKE2B ff906c67a79df9d8deb9736f7439ba5429b72940b6a6fa49751fdea88adef70a3b57f28b2c31014da3206efe601095a8caeb98382fb36f8544afd0bec5cce355 SHA512 2787fcecc0feb1c9e6ff0d8de6193658413863e44eaab572751ca7e6c3b369c0a9731f4952cb0821f307760f0422f77c5f0d3fe7df6b054643fb39423e8d70ee DIST SourceSansProBold.otf 104072 BLAKE2B 2c6538ed97cca04a6a38a1bcca7def6c9e923f0e7a773c2715d50ca1a526b1ff683bc6544155b1e170fb828c3923d6b22cdf7017f9da9de164523f328c1cc187 SHA512 28a044a2685fbc8da7810d9ac7b6b93a95542d504d7d8e671f009b8ebb2f5b70c974be7ea78974b188d8e6ab17d65b08f276c054927857315d5aad26f6fe36fc DIST pdfbox-2.0.26-src.zip 15766524 BLAKE2B eafedf1db5a54d36cb42111b736ad79adfcc106630fa4b2bc57873dcfbdbbb7bd0e9408611b0d8771909e719813e388430944ae0fbaf800bdc859595de2b101b SHA512 e14c57e28d10324dbcb6ad239bad5751a2dab0035bbd80427afd03f65467ec1376ddd7d08e7cefd4d950b149f85d8f505f6f50cc3093fd65bb8a2cbb2b8c7c1e +DIST pdfbox-2.0.27-src.zip 15770627 BLAKE2B 9f93d597141ff3da39b69da3ce989a0cc7f4020071e5cb1609a8b86d0f12a3219037cb4c7b276acf58ee6b07d842b6d7c76e14fdf79e9efdeac401048e345f89 SHA512 59a5675f5d1d34f092adc019679f7d10e7e93c0f554a002ac29d48cbffcaa600d930309fa94a92191c01ead8da905cbb37ce5e233dcc9b8732a881d4abf75def diff --git a/dev-java/fontbox/fontbox-2.0.27.ebuild b/dev-java/fontbox/fontbox-2.0.27.ebuild new file mode 100644 index 000000000000..64b56398d12a --- /dev/null +++ b/dev-java/fontbox/fontbox-2.0.27.ebuild @@ -0,0 +1,63 @@ +# 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/pdfbox/2.0.27/pdfbox-2.0.27-src.zip --slot 0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild fontbox-2.0.27.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.pdfbox:fontbox:2.0.27" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="An open source Java library for parsing font files" +HOMEPAGE="https://pdfbox.apache.org/" +SRC_URI="mirror://apache/pdfbox/${PV}/pdfbox-${PV}-src.zip + test? ( + https://issues.apache.org/jira/secure/attachment/12684264/SourceSansProBold.otf + https://issues.apache.org/jira/secure/attachment/12896461/NotoEmoji-Regular.ttf + https://issues.apache.org/jira/secure/attachment/12809395/DejaVuSansMono.ttf + https://issues.apache.org/jira/secure/attachment/13036376/NotoSansSC-Regular.otf + https://mirrors.ctan.org/fonts/opensans/type1/OpenSans-Regular.pfb + )" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +# Common dependencies +# POM: pom.xml +# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 + +CP_DEPEND="dev-java/commons-logging:0" +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:*" +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" +BDEPEND="app-arch/unzip" + +S="${WORKDIR}/pdfbox-${PV}/${PN}" + +JAVA_AUTOMATIC_MODULE_NAME="org.apache.fontbox" +JAVA_RESOURCE_DIRS="src/main/resources" +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" +JAVA_TEST_SRC_DIR="src/test/java" + +src_test() { + mkdir --parents target/{pdfs,fonts} || die + cp \ + "${DISTDIR}"/SourceSansProBold.otf \ + "${DISTDIR}"/NotoEmoji-Regular.ttf \ + "${DISTDIR}"/DejaVuSansMono.ttf \ + "${DISTDIR}"/NotoSansSC-Regular.otf \ + "target/pdfs" || die + cp "${DISTDIR}"/OpenSans-Regular.pfb \ + "target/fonts" || die + + java-pkg-simple_src_test +}