6e98564831
kde-base/printer-applet kde-base/system-config-printer-kde dev-python-pycups app-admin/system-config-printer app-misc/hal-cups-utils git-svn-id: http://svn.sabayonlinux.org/overlay@2910 d7aec97c-591d-0410-af39-a8856400b30a
47 lines
930 B
Bash
47 lines
930 B
Bash
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
NEED_PYTHON="2.4"
|
|
inherit python
|
|
|
|
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"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="doc examples"
|
|
|
|
RDEPEND="
|
|
net-print/cups
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
doc? ( dev-python/epydoc )
|
|
"
|
|
|
|
src_compile() {
|
|
python_version
|
|
emake PYTHONVERS="python${PYVER}" || die "emake failed"
|
|
|
|
if use doc; then
|
|
emake doc || die "emake doc failed"
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
dodoc NEWS README TODO || die "dodoc failed"
|
|
|
|
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
|
|
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
|
}
|