blob: c89713e19c5cb97e6ee53ad6aec04928af6f813a (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/foomatic-db/foomatic-db-20050910.ebuild,v 1.13 2006/07/15 03:17:21 vapier Exp $
inherit eutils
DESCRIPTION="Foomatic printer database"
HOMEPAGE="http://www.linuxprinting.org/foomatic.html"
SRC_URI="http://linuxprinting.org/download/foomatic/${PN}-3.0-${PV}.tar.gz
ppds? ( http://linuxprinting.org/download/foomatic/foomatic-filters-ppds-${PV}.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="cups ppds"
DEPEND="dev-libs/libxml2
net-misc/wget
net-misc/curl
net-print/foomatic-filters
net-print/foomatic-db-engine"
src_unpack() {
unpack ${A}
cd ${WORKDIR}
use ppds && epatch ${FILESDIR}/fix-sandbox-${PV}.patch
cd ${S}
}
src_compile() {
econf || die
rm db/source/driver/stp.xml
if use ppds ; then
cd ../foomatic-filters-ppds-${PV}
rm -f `find . -name "*gimp-print*" `
rm -f `find . -name "*hpijs*" `
# conflicts with foomatic-filters
rm -f bin/{foomatic-gswrapper,foomatic-rip}
rm -f share/man/man1/{foomatic-gswrapper,foomatic-rip}.1
fi
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
chmod -R 644 ${D}/usr/share/foomatic/db/
chmod 755 ${D}/usr/share/foomatic/db/
chmod 755 ${D}/usr/share/foomatic/db/source
chmod 755 ${D}/usr/share/foomatic/db/source/{driver,opt,printer}
if use ppds ; then
cd ../foomatic-filters-ppds-${PV}
./install -d ${D} -p /usr -z
if use cups ; then
dodir /usr/share/cups/model
dosym /usr/share/ppd /usr/share/cups/model/foomatic-ppds
fi
fi
}
|