summaryrefslogtreecommitdiff
blob: c44000da5766c559b4bb056f6667e12b08907a23 (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-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/foomatic/foomatic-2.0.0.ebuild,v 1.1 2002/10/17 19:32:28 raker Exp $

inherit perl-module

S="${WORKDIR}/${P}"

IUSE=""

DESCRIPTION="Generates printer conifgs automagically"
HOMEPAGE="http://www.linuxprinting.org/foomatic"
SRC_URI="http://www.linuxprinting.org/download/foomatic/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND="virtual/glibc
	virtual/x11
	dev-libs/libxml2
	net-misc/wget
	net-ftp/curl
	samba? ( net-fs/samba )
	cups? ( net-print/cups )"
RDEPEND="${DEPEND}"

src_unpack() {

	unpack ${A}
	cd ${S}
	patch -p1 < ${FILESDIR}/perl-module.diff || die "patch failed"

}

src_compile() {

	econf || die "configure failed"

	emake || die "parallel make failed"

}

src_install() {

	make DESTDIR=${D} install || die "make install failed"

	# install perl modules
	cd ${S}/lib
	perl-module_src_prep
	perl-module_src_compile
	perl-module_src_test
	perl-module_src_install

}