linamh/net-print/foomatic-db-engine/foomatic-db-engine-4.0.3.ebuild
geos_one e06cd25b40 update foomatic
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1565 6952d904-891a-0410-993b-d76249ca496b
2009-10-18 08:49:11 +00:00

54 lines
1.1 KiB
Bash

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
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}/perl-module-3.0.20070508.diff" \
"${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
}