summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-12-06 17:22:20 -0500
committerMike Frysinger <vapier@gentoo.org>2016-12-06 17:24:39 -0500
commitcb460c455a7ffc69256d7acd70e829181624a79a (patch)
treecd7828904c669a5b3e553c1a52a0b1d7ee402bd1 /app-text
parentapp-shells/bashdb: clean up old. (diff)
downloadgentoo-cb460c455a7ffc69256d7acd70e829181624a79a.tar.gz
gentoo-cb460c455a7ffc69256d7acd70e829181624a79a.tar.bz2
gentoo-cb460c455a7ffc69256d7acd70e829181624a79a.zip
app-text/qpdf: add USE=perl to control the perl/fix-qdf dep
The only reason we depend on perl is for the fix-qdf helper script written in perl. That's a heavy dep when all you want is the libqdf library. Add USE=perl to control it.
Diffstat (limited to 'app-text')
-rw-r--r--app-text/qpdf/metadata.xml3
-rw-r--r--app-text/qpdf/qpdf-5.1.1-r1.ebuild (renamed from app-text/qpdf/qpdf-5.1.1.ebuild)12
-rw-r--r--app-text/qpdf/qpdf-5.1.2-r1.ebuild (renamed from app-text/qpdf/qpdf-5.1.2.ebuild)12
-rw-r--r--app-text/qpdf/qpdf-5.1.3-r1.ebuild (renamed from app-text/qpdf/qpdf-5.1.3.ebuild)12
-rw-r--r--app-text/qpdf/qpdf-6.0.0-r1.ebuild (renamed from app-text/qpdf/qpdf-6.0.0.ebuild)12
5 files changed, 39 insertions, 12 deletions
diff --git a/app-text/qpdf/metadata.xml b/app-text/qpdf/metadata.xml
index 2027270a8297..ce823e597ac8 100644
--- a/app-text/qpdf/metadata.xml
+++ b/app-text/qpdf/metadata.xml
@@ -5,6 +5,9 @@
<email>printing@gentoo.org</email>
<name>Gentoo Printing Project</name>
</maintainer>
+ <use>
+ <flag name="perl">Install fix-qdf tool (for reverting PDF edits) written in perl</flag>
+ </use>
<upstream>
<remote-id type="sourceforge">qpdf</remote-id>
</upstream>
diff --git a/app-text/qpdf/qpdf-5.1.1.ebuild b/app-text/qpdf/qpdf-5.1.1-r1.ebuild
index bcd0f7f4745b..c347e71eb23d 100644
--- a/app-text/qpdf/qpdf-5.1.1.ebuild
+++ b/app-text/qpdf/qpdf-5.1.1-r1.ebuild
@@ -13,17 +13,18 @@ SRC_URI="mirror://sourceforge/qpdf/${P}.tar.gz"
LICENSE="Artistic-2"
SLOT="0/13" # subslot = libqpdf soname version
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris"
-IUSE="doc examples static-libs test"
+IUSE="doc examples perl static-libs test"
RDEPEND="dev-libs/libpcre
- sys-libs/zlib
- >=dev-lang/perl-5.8"
+ sys-libs/zlib"
DEPEND="${RDEPEND}
test? (
sys-apps/diffutils
media-libs/tiff
app-text/ghostscript-gpl
)"
+# Only need perl for the installed tools.
+RDEPEND+=" perl? ( >=dev-lang/perl-5.8 )"
DOCS=( ChangeLog README TODO )
@@ -41,6 +42,11 @@ src_configure() {
src_install() {
default
+ if ! use perl ; then
+ rm "${ED}"/usr/bin/fix-qdf || die
+ rm "${ED}"/usr/share/man/man1/fix-qdf.1 || die
+ fi
+
if use doc ; then
dodoc doc/qpdf-manual.pdf
dohtml doc/*
diff --git a/app-text/qpdf/qpdf-5.1.2.ebuild b/app-text/qpdf/qpdf-5.1.2-r1.ebuild
index 694f56c97f30..041bdcff1364 100644
--- a/app-text/qpdf/qpdf-5.1.2.ebuild
+++ b/app-text/qpdf/qpdf-5.1.2-r1.ebuild
@@ -13,17 +13,18 @@ SRC_URI="mirror://sourceforge/qpdf/${P}.tar.gz"
LICENSE="Artistic-2"
SLOT="0/13" # subslot = libqpdf soname version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris"
-IUSE="doc examples static-libs test"
+IUSE="doc examples perl static-libs test"
RDEPEND="dev-libs/libpcre
- sys-libs/zlib
- >=dev-lang/perl-5.8"
+ sys-libs/zlib"
DEPEND="${RDEPEND}
test? (
sys-apps/diffutils
media-libs/tiff
app-text/ghostscript-gpl
)"
+# Only need perl for the installed tools.
+RDEPEND+=" perl? ( >=dev-lang/perl-5.8 )"
DOCS=( ChangeLog README TODO )
@@ -41,6 +42,11 @@ src_configure() {
src_install() {
default
+ if ! use perl ; then
+ rm "${ED}"/usr/bin/fix-qdf || die
+ rm "${ED}"/usr/share/man/man1/fix-qdf.1 || die
+ fi
+
if use doc ; then
dodoc doc/qpdf-manual.pdf
dohtml doc/*
diff --git a/app-text/qpdf/qpdf-5.1.3.ebuild b/app-text/qpdf/qpdf-5.1.3-r1.ebuild
index ebfd5d539ef0..52e8a6f4bf89 100644
--- a/app-text/qpdf/qpdf-5.1.3.ebuild
+++ b/app-text/qpdf/qpdf-5.1.3-r1.ebuild
@@ -13,17 +13,18 @@ SRC_URI="mirror://sourceforge/qpdf/${P}.tar.gz"
LICENSE="Artistic-2"
SLOT="0/13" # subslot = libqpdf soname version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris"
-IUSE="doc examples static-libs test"
+IUSE="doc examples perl static-libs test"
RDEPEND="dev-libs/libpcre
- sys-libs/zlib
- >=dev-lang/perl-5.8"
+ sys-libs/zlib"
DEPEND="${RDEPEND}
test? (
sys-apps/diffutils
media-libs/tiff
app-text/ghostscript-gpl
)"
+# Only need perl for the installed tools.
+RDEPEND+=" perl? ( >=dev-lang/perl-5.8 )"
DOCS=( ChangeLog README TODO )
@@ -41,6 +42,11 @@ src_configure() {
src_install() {
default
+ if ! use perl ; then
+ rm "${ED}"/usr/bin/fix-qdf || die
+ rm "${ED}"/usr/share/man/man1/fix-qdf.1 || die
+ fi
+
if use doc ; then
dodoc doc/qpdf-manual.pdf
dohtml doc/*
diff --git a/app-text/qpdf/qpdf-6.0.0.ebuild b/app-text/qpdf/qpdf-6.0.0-r1.ebuild
index b31f1b04b5af..f7939cebf095 100644
--- a/app-text/qpdf/qpdf-6.0.0.ebuild
+++ b/app-text/qpdf/qpdf-6.0.0-r1.ebuild
@@ -13,17 +13,18 @@ SRC_URI="mirror://sourceforge/qpdf/${P}.tar.gz"
LICENSE="Artistic-2"
SLOT="0/17" # subslot = libqpdf soname version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris"
-IUSE="doc examples static-libs test"
+IUSE="doc examples perl static-libs test"
RDEPEND="dev-libs/libpcre
- sys-libs/zlib
- >=dev-lang/perl-5.8"
+ sys-libs/zlib"
DEPEND="${RDEPEND}
test? (
sys-apps/diffutils
media-libs/tiff
app-text/ghostscript-gpl
)"
+# Only need perl for the installed tools.
+RDEPEND+=" perl? ( >=dev-lang/perl-5.8 )"
DOCS=( ChangeLog README TODO )
@@ -41,6 +42,11 @@ src_configure() {
src_install() {
default
+ if ! use perl ; then
+ rm "${ED}"/usr/bin/fix-qdf || die
+ rm "${ED}"/usr/share/man/man1/fix-qdf.1 || die
+ fi
+
if use doc ; then
dodoc doc/qpdf-manual.pdf
dohtml doc/*