blob: 8e9e42b6e8c5344824611169cc15c1bb76e214fa (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/foomatic-db-engine/foomatic-db-engine-4.0.3.ebuild,v 1.1 2010/02/05 23:21:02 jlec Exp $
EAPI="2"
inherit eutils perl-app versionator
DESCRIPTION="Generates ppds out of xml foomatic printer description files"
HOMEPAGE="http://www.linuxprinting.org/foomatic.html"
SRC_URI="http://www.linuxprinting.org/download/foomatic/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE=""
RDEPEND="
dev-libs/libxml2
net-print/foomatic-filters"
PDEPEND="net-print/foomatic-db"
src_prepare() {
epatch \
"${FILESDIR}/${PV}-perl-module.patch" \
"${FILESDIR}/${PV}-respect-ldflag.patch"
sed -i -e "s:@LIB_CUPS@:$(cups-config --serverbin):" "${S}"/Makefile.in
}
src_configure() {
default
emake defaults || "emake defaults failed"
cd lib
perl-app_src_configure
}
src_compile() {
emake || die "emake failed"
cd lib
perl-app_src_compile
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
cd lib
perl-module_src_install
}
src_test() {
cd lib
perl-module_src_test
}
|