blob: 2935d9f5a5af8af6e3ddc3943ccbe0b223762dc1 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycups/pycups-1.9.49.ebuild,v 1.13 2011/09/12 22:26:15 reavertm Exp $
EAPI="3"
PYTHON_DEPEND="2:2.5"
RESTRICT_PYTHON_ABIS="*-jython"
inherit distutils flag-o-matic
DESCRIPTION="Python bindings for the CUPS API"
HOMEPAGE="http://cyberelk.net/tim/data/pycups/"
SRC_URI="http://cyberelk.net/tim/data/pycups/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ~ppc64 ~sh sparc x86"
SLOT="0"
IUSE="doc examples"
RDEPEND="
net-print/cups
"
DEPEND="${RDEPEND}
doc? ( dev-python/epydoc )
"
pkg_setup() {
python_set_active_version 2
}
src_compile() {
append-cflags -DVERSION=\\\"${PV}\\\"
distutils_src_compile
if use doc; then
emake doc || die "emake doc failed"
fi
}
src_install() {
distutils_src_install
if use doc; then
dohtml -r html/ || die "installing html docs failed"
fi
if use examples; then
insinto /usr/share/doc/"${P}"
doins -r examples/ || die "installing examples failed"
fi
}
|