diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2018-09-05 12:00:27 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2018-09-05 13:50:33 +0200 |
commit | cdbdd31fe0cd528853445b2dbccc1d6b4215eeec (patch) | |
tree | d7095846da0c0a450fcb8f7f1e529f9302698768 /app-text/pdftk | |
parent | x11-drivers/nvidia-drivers: Old. (diff) | |
download | gentoo-cdbdd31fe0cd528853445b2dbccc1d6b4215eeec.tar.gz gentoo-cdbdd31fe0cd528853445b2dbccc1d6b4215eeec.tar.bz2 gentoo-cdbdd31fe0cd528853445b2dbccc1d6b4215eeec.zip |
app-text/pdftk: Make ebuild a bit more flexible; add release ebuild
Diffstat (limited to 'app-text/pdftk')
-rw-r--r-- | app-text/pdftk/Manifest | 1 | ||||
-rw-r--r-- | app-text/pdftk/pdftk-3.0.0.ebuild | 42 | ||||
-rw-r--r-- | app-text/pdftk/pdftk-9999.ebuild | 12 |
3 files changed, 53 insertions, 2 deletions
diff --git a/app-text/pdftk/Manifest b/app-text/pdftk/Manifest index 7c6b82e26bbd..c305177200f0 100644 --- a/app-text/pdftk/Manifest +++ b/app-text/pdftk/Manifest @@ -1 +1,2 @@ DIST pdftk-2.02-src.zip 2239008 BLAKE2B 9bb55fb687b85de2ee0f9bec4ff16772646613b1519afb6d432985ad452cd09d04636788cb2deedb9924833cc10a802057c0e8ff146789da29cd4969cd614c39 SHA512 5c73ab3b7b12cfc24a17c2737d224fdde2ae684e1712031a968b83f5b8d91c521d477e932fc47f8b4a8c0ff0ba183678aaa13a1e7b29107c5c47ded8d960ef54 +DIST pdftk-v3.0.0.tar.bz2 546821 BLAKE2B 1d1935322f1468d9e2e8044e748fbb816e399599e445e078866d416d5e99866739134fb794ff42dbfcc37271d66655440f706db46f152722ab7030cba16edf38 SHA512 3b487f7532140366c9ac41222cd366d387b93e67aada845772f60ff20601e25611e34a190a65fbcec9d776a0b5683100fdd54453357bf7c43cebea7dda0c6229 diff --git a/app-text/pdftk/pdftk-3.0.0.ebuild b/app-text/pdftk/pdftk-3.0.0.ebuild new file mode 100644 index 000000000000..c07263f6856d --- /dev/null +++ b/app-text/pdftk/pdftk-3.0.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="gcj-free version of pdftk written in Java" +HOMEPAGE="https://gitlab.com/pdftk-java/pdftk" + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/pdftk-java/pdftk/" +else + SRC_URI="https://gitlab.com/pdftk-java/pdftk/-/archive/v${PV}/pdftk-v${PV}.tar.bz2" + KEYWORDS="" + S="${WORKDIR}/pdftk-v${PV}" +fi + +LICENSE="GPL-2" +SLOT="0" + +JAVA_PKG_STRICT="yes" +EANT_GENTOO_CLASSPATH="bcprov,commons-lang-3.6" +JAVA_ANT_REWRITE_CLASSPATH="true" + +CDEPEND=" + dev-java/bcprov:0 + dev-java/commons-lang:3.6" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.7" + +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.7" + +src_install() { + java-pkg_newjar "build/jar/pdftk.jar" + java-pkg_dolauncher +} diff --git a/app-text/pdftk/pdftk-9999.ebuild b/app-text/pdftk/pdftk-9999.ebuild index ca097cf65391..c07263f6856d 100644 --- a/app-text/pdftk/pdftk-9999.ebuild +++ b/app-text/pdftk/pdftk-9999.ebuild @@ -3,11 +3,19 @@ EAPI=6 -inherit git-r3 java-pkg-2 java-ant-2 +inherit java-pkg-2 java-ant-2 DESCRIPTION="gcj-free version of pdftk written in Java" HOMEPAGE="https://gitlab.com/pdftk-java/pdftk" -EGIT_REPO_URI="https://gitlab.com/pdftk-java/pdftk/" + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/pdftk-java/pdftk/" +else + SRC_URI="https://gitlab.com/pdftk-java/pdftk/-/archive/v${PV}/pdftk-v${PV}.tar.bz2" + KEYWORDS="" + S="${WORKDIR}/pdftk-v${PV}" +fi LICENSE="GPL-2" SLOT="0" |