diff options
author | Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> | 2013-01-02 04:21:39 +0000 |
---|---|---|
committer | Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> | 2013-01-02 04:21:39 +0000 |
commit | 695b45fc25d1a999ff897444644e859ce16e57b7 (patch) | |
tree | 16a7d125376281c72a0fe62998719f39dfd4dc51 /net-print | |
parent | Version bump. (diff) | |
download | gentoo-2-695b45fc25d1a999ff897444644e859ce16e57b7.tar.gz gentoo-2-695b45fc25d1a999ff897444644e859ce16e57b7.tar.bz2 gentoo-2-695b45fc25d1a999ff897444644e859ce16e57b7.zip |
Fix cups dependencies - bug 429590.
Thanks to Vladimir for checking the correct version deps.
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key BB0E6E98)
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/foomatic-filters/ChangeLog | 11 | ||||
-rw-r--r-- | net-print/foomatic-filters/foomatic-filters-4.0.17-r1.ebuild | 68 |
2 files changed, 77 insertions, 2 deletions
diff --git a/net-print/foomatic-filters/ChangeLog b/net-print/foomatic-filters/ChangeLog index adbde592a181..235b0fa75a6f 100644 --- a/net-print/foomatic-filters/ChangeLog +++ b/net-print/foomatic-filters/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-print/foomatic-filters -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/foomatic-filters/ChangeLog,v 1.88 2012/11/16 14:27:35 scarabeus Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/foomatic-filters/ChangeLog,v 1.89 2013/01/02 04:21:39 jmbsvicetto Exp $ + +*foomatic-filters-4.0.17-r1 (02 Jan 2013) + + 02 Jan 2013; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> + +foomatic-filters-4.0.17-r1.ebuild: + Fix cups dependencies - bug 429590. Thanks to Vladimir for checking the + correct version deps. 16 Nov 2012; Tomáš Chvátal <scarabeus@gentoo.org> -foomatic-filters-4.0.16.ebuild, foomatic-filters-4.0.17.ebuild: diff --git a/net-print/foomatic-filters/foomatic-filters-4.0.17-r1.ebuild b/net-print/foomatic-filters/foomatic-filters-4.0.17-r1.ebuild new file mode 100644 index 000000000000..51e6f94301fc --- /dev/null +++ b/net-print/foomatic-filters/foomatic-filters-4.0.17-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/foomatic-filters/foomatic-filters-4.0.17-r1.ebuild,v 1.1 2013/01/02 04:21:39 jmbsvicetto Exp $ + +EAPI=4 + +inherit autotools eutils versionator + +DESCRIPTION="Foomatic wrapper scripts" +HOMEPAGE="http://www.linuxprinting.org/foomatic.html" +SRC_URI="http://www.openprinting.org/download/foomatic/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="cups dbus" + +RDEPEND=" + dev-lang/perl + app-text/ghostscript-gpl + cups? ( + || ( + ( >=net-print/cups-1.6.0 net-print/cups-filters ) + <net-print/cups-1.5.9999 + ) + ) + !cups? ( + || ( + app-text/enscript + app-text/a2ps + app-text/mpage + ) + ) + dbus? ( sys-apps/dbus )" +DEPEND="${RDEPEND}" + +src_prepare() { + if use cups; then + CUPS_SERVERBIN="$(cups-config --serverbin)" + else + CUPS_SERVERBIN="" + fi + + # Search for libs in ${libdir}, not just /usr/lib + epatch "${FILESDIR}"/${PN}-4.0.9-multilib.patch + eautoreconf + + export CUPS_BACKENDS=${CUPS_SERVERBIN}/backend \ + CUPS_FILTERS=${CUPS_SERVERBIN}/filter CUPS=${CUPS_SERVERBIN}/ +} + +src_configure() { + econf $(use_enable dbus) +} + +src_install() { + default + + dosym /usr/bin/foomatic-rip /usr/bin/lpdomatic + + if use cups; then + dosym /usr/bin/foomatic-gswrapper "${CUPS_SERVERBIN}/filter/foomatic-gswrapper" + dosym /usr/bin/foomatic-rip "${CUPS_SERVERBIN}/filter/cupsomatic" + else + rm -r "${ED}"/${CUPS_SERVERBIN}/filter + rm -r "${ED}"/${CUPS_SERVERBIN}/backend + fi +} |