net-print/cups-filters: add --enable-ijs control too
authorMike Frysinger <vapier@gentoo.org>
Wed, 23 Mar 2016 22:22:28 +0000 (18:22 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 23 Mar 2016 22:25:08 +0000 (18:25 -0400)
Was missed in previous commit here.

Also sync the live git version.

net-print/cups-filters/cups-filters-1.8.2-r1.ebuild
net-print/cups-filters/cups-filters-9999.ebuild

index 844bf04bd6abc2abbad8fbd2d26bbecace2d8308..276c3a070657d24c2ab5a368711c8dc541cb3b78 100644 (file)
@@ -64,6 +64,7 @@ src_configure() {
                $(use_enable foomatic) \
                $(use_enable ldap) \
                $(use_enable postscript ghostscript) \
+               $(use_enable postscript ijs) \
                --with-fontdir="fonts/conf.avail" \
                --with-pdftops=pdftops \
                --enable-imagefilters \
index fad7ebc0e1a58f2a300ece0ce6a3efd58a7619ec..fe1b994b7fb390d170f1b1984b323d15d2f921a4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -20,10 +20,10 @@ HOMEPAGE="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf
 
 LICENSE="MIT GPL-2"
 SLOT="0"
-IUSE="dbus +foomatic jpeg ldap perl png static-libs tiff zeroconf"
+IUSE="dbus +foomatic jpeg ldap perl png +postscript static-libs tiff zeroconf"
 
 RDEPEND="
-       >=app-text/ghostscript-gpl-9.09[cups]
+       postscript? ( >=app-text/ghostscript-gpl-9.09[cups] )
        >=app-text/poppler-0.32:=[cxx,jpeg?,lcms,tiff?,utils,xpdf-headers(+)]
        >=app-text/qpdf-3.0.2:=
        dev-libs/glib:2
@@ -59,7 +59,10 @@ src_configure() {
                $(use_enable dbus) \
                $(use_enable zeroconf avahi) \
                $(use_enable static-libs static) \
+               $(use_enable foomatic) \
                $(use_enable ldap) \
+               $(use_enable postscript ghostscript) \
+               $(use_enable postscript ijs) \
                --with-fontdir="fonts/conf.avail" \
                --with-pdftops=pdftops \
                --enable-imagefilters \
@@ -67,7 +70,7 @@ src_configure() {
                $(use_with png) \
                $(use_with tiff) \
                --with-rcdir=no \
-               --with-browseremoteprotocols=DNSSD,CUPS \
+               --with-browseremoteprotocols=DNSSD,CUPS \
                --without-php
 }
 
@@ -92,9 +95,11 @@ src_install() {
                popd > /dev/null
        fi
 
-       # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831
-       dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster
-       dosym /usr/libexec/cups/filter/gstopxl /usr/libexec/cups/filter/pstopxl
+       if use postscript; then
+               # workaround: some printer drivers still require pstoraster and pstopxl, bug #383831
+               dosym gstoraster /usr/libexec/cups/filter/pstoraster
+               dosym gstopxl /usr/libexec/cups/filter/pstopxl
+       fi
 
        prune_libtool_files --all
 
@@ -105,13 +110,6 @@ src_install() {
                sed -i -e 's:cups\.service avahi-daemon\.service:cups.service:g' "${S}"/utils/cups-browsed.service || die
        fi
 
-       if ! use foomatic ; then
-               # this needs an upstream solution / configure switch
-               rm -v "${ED}/usr/bin/foomatic-rip" || die
-               rm -v "${ED}/usr/libexec/cups/filter/foomatic-rip" || die
-               rm -v "${ED}/usr/share/man/man1/foomatic-rip.1" || die
-       fi
-
        doinitd "${T}"/cups-browsed
        systemd_dounit "${S}/utils/cups-browsed.service"
 }