diff options
author | Florian Schmaus <flow@gentoo.org> | 2024-06-22 13:20:08 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-06-22 13:21:50 +0200 |
commit | 98ee41ed3e7458b62326d5b72b412865643a4dcb (patch) | |
tree | 7a246bc4c6eca575a62ed98da038933051a3f57c /app-text/pdfjam | |
parent | dev-cpp/antlr-cpp: update maintainers Java -> Gentoo Science Project (diff) | |
download | gentoo-98ee41ed3e7458b62326d5b72b412865643a4dcb.tar.gz gentoo-98ee41ed3e7458b62326d5b72b412865643a4dcb.tar.bz2 gentoo-98ee41ed3e7458b62326d5b72b412865643a4dcb.zip |
app-text/pdfjam: add 'extra' USE flag for pdfjam-extras
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'app-text/pdfjam')
-rw-r--r-- | app-text/pdfjam/Manifest | 1 | ||||
-rw-r--r-- | app-text/pdfjam/metadata.xml | 3 | ||||
-rw-r--r-- | app-text/pdfjam/pdfjam-3.10.ebuild | 22 |
3 files changed, 23 insertions, 3 deletions
diff --git a/app-text/pdfjam/Manifest b/app-text/pdfjam/Manifest index b1ba891c3266..90a6f52c291f 100644 --- a/app-text/pdfjam/Manifest +++ b/app-text/pdfjam/Manifest @@ -1,2 +1,3 @@ DIST pdfjam-3.10.tar.gz 121928 BLAKE2B 5ff82abba43becb2792ff9e6a13dd3458d4b884e9e2361d116c638bb8a396fd8ca833361dfbc981433ebf445cfa8bfe99bb5fc7f1a76a35361666b91acef934e SHA512 dd69d8e5f86bb4fcb8db0e71454fdb0f2dd75e222d68e8cf3870d9f318aa7e8ccf51f87977ad71ddba1d78569e358044b111b8014f88dddf86654dc5bc334e90 +DIST pdfjam-extra-20191118.tar.gz 15457 BLAKE2B 3d673ba68a1ee89cec7af0ec7d7fc61c8993b9ae328d3362a6bbbae47cbda2caa2e8f4ecd28424dd894c31d14754228b067389b61fa7845cfe5dfc0e2b5d9b8d SHA512 1d02abb9d81baf6edf3e51e2c7838df191a7a18b4b50518ee1ae3108020a274d7608570654ab540539d3717e51ef10f548c83c3480681bc20c9702280f694b8f DIST pdfjam_208.tgz 180725 BLAKE2B 903ce4f0874c9fc9ad23f3db37b882596589d6470dfe9289f65a72fb66ff843bbd49b52086d7b2d2cbbfb1b6406cbbda64d46b933a853d5d681ef88d4033372c SHA512 728c8d304c6d2af773980d20ef4a4be6e0a5dad286ad8cd00be9b1687f5024e00032a750c10c74dcd24431f081368d02b76f03cc5bb1c8725a060cd70be0fd8c diff --git a/app-text/pdfjam/metadata.xml b/app-text/pdfjam/metadata.xml index c5d16eb357c3..af299c1e9b05 100644 --- a/app-text/pdfjam/metadata.xml +++ b/app-text/pdfjam/metadata.xml @@ -5,6 +5,9 @@ <email>tex@gentoo.org</email> <name>Gentoo TeX Project</name> </maintainer> + <use> + <flag name="extra">Install unsupported wrapper scripts, for example pdf90, pdfnup, pdfjoin</flag> + </use> <upstream> <remote-id type="github">rrthomas/pdfjam</remote-id> </upstream> diff --git a/app-text/pdfjam/pdfjam-3.10.ebuild b/app-text/pdfjam/pdfjam-3.10.ebuild index fefcf36b724e..e8674eb746da 100644 --- a/app-text/pdfjam/pdfjam-3.10.ebuild +++ b/app-text/pdfjam/pdfjam-3.10.ebuild @@ -3,15 +3,23 @@ EAPI=8 -DESCRIPTION="Allows the manipulation of PDF files (pdfnup, pdfjoin and pdf90)" +PDFJAM_EXTRAS_COMMIT=622e03add59db004144c0b41722a09b3b29d6d3e + +DESCRIPTION="Allows the manipulation of PDF files" HOMEPAGE="https://github.com/rrthomas/pdfjam" -SRC_URI="https://github.com/rrthomas/pdfjam/releases/download/v${PV}/pdfjam-${PV}.tar.gz" +SRC_URI=" + https://github.com/rrthomas/pdfjam/releases/download/v${PV}/pdfjam-${PV}.tar.gz + extra? ( + https://github.com/rrthomas/pdfjam-extras/archive/${PDFJAM_EXTRAS_COMMIT}.tar.gz + -> pdfjam-extra-20191118.tar.gz + ) +" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="test" +IUSE="extra test" RESTRICT="!test? ( test )" DEPEND="virtual/latex-base" @@ -39,4 +47,12 @@ src_install() { insinto usr/share/etc doins pdfjam.conf + + if use extra; then + cd ../pdfjam-extras-${PDFJAM_EXTRAS_COMMIT} || die + + dobin bin/* + dodoc README.md + doman man1/* + fi } |