blob: 63bac1fb04cd56a20ad112097480ca13fdcde0d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
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
!=net-print/cups-filters-1.0.43
!>=net-print/cups-filters-1.0.43-r1[foomatic]
cups? (
>=net-print/cups-1.6.0 net-print/cups-filters
)
!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-rip "${CUPS_SERVERBIN}/filter/cupsomatic"
else
rm -r "${ED}"/${CUPS_SERVERBIN}/filter
rm -r "${ED}"/${CUPS_SERVERBIN}/backend
fi
}
|