blob: 795ba5d995adf7a6bd842cb125ec834b1ac1cb60 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/system-config-printer-common/system-config-printer-common-1.1.8.ebuild,v 1.2 2009/09/12 10:29:14 armin76 Exp $
EAPI="2"
inherit python autotools
MY_P="${PN%-common}-${PV}"
DESCRIPTION="Common modules of Red Hat's printer administration tool"
HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/"
SRC_URI="http://cyberelk.net/tim/data/system-config-printer/1.1/${MY_P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~ia64 ~x86"
SLOT="0"
IUSE="doc"
# system-config-printer split since 1.1.3
DEPEND="
doc? ( dev-python/epydoc )
"
RDEPEND="
!app-admin/system-config-printer:0
dev-libs/libxml2[python]
dev-python/dbus-python
dev-python/pycups
dev-python/pygobject
net-print/cups[dbus]
"
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}/${P}-split.patch"
eaclocal
eautomake
eautoconf
}
src_configure() {
econf --disable-nls
}
src_compile() {
emake || die "emake failed"
if use doc; then
emake html || die "emake html failed"
fi
}
src_install() {
dodoc AUTHORS ChangeLog README || die "dodoc failed"
if use doc; then
dohtml -r html/ || die "installing html docs failed"
fi
emake DESTDIR="${D}" install || die "emake install failed"
}
|