diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/itext/itext-5.5.4-r2.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/itext/itext-5.5.4-r2.ebuild')
-rw-r--r-- | dev-java/itext/itext-5.5.4-r2.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-java/itext/itext-5.5.4-r2.ebuild b/dev-java/itext/itext-5.5.4-r2.ebuild new file mode 100644 index 000000000000..55b8d3c8fa1d --- /dev/null +++ b/dev-java/itext/itext-5.5.4-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Generate documents in the Portable Document Format (PDF) and/or HTML" +HOMEPAGE="https://itextpdf.com" +SRC_URI="mirror://sourceforge/${PN}/${P}.zip" + +LICENSE="AGPL-3" +SLOT="5" +KEYWORDS="amd64 x86" + +BC_SLOT="1.52" + +CDEPEND="dev-java/bcmail:${BC_SLOT} + dev-java/bcpkix:${BC_SLOT} + dev-java/bcprov:${BC_SLOT} + dev-java/xml-security:0" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.6" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.6 + app-arch/unzip" + +JAVA_GENTOO_CLASSPATH=" + bcmail-${BC_SLOT} + bcpkix-${BC_SLOT} + bcprov-${BC_SLOT} + xml-security" + +PATCHES=( + "${FILESDIR}"/${P}-OcspClientBouncyCastle.java.patch +) + +java_prepare() { + mkdir source || die + + for x in *-sources.jar; do + unzip -n ${x} -d source || die + done + + rm -v *.jar || die + + mkdir target/classes/com/itextpdf/text/pdf/fonts -p || die + cp source/com/itextpdf/text/pdf/fonts/*{afm,html,txt} target/classes/com/itextpdf/text/pdf/fonts/ || die + mkdir target/classes/com/itextpdf/text/l10n/ -p || die + cp -r source/com/itextpdf/text/l10n/* target/classes/com/itextpdf/text/l10n/ || die + + epatch "${PATCHES[@]}" +} |