blob: 057051231075ace99e96b6b8c903f162a7c51fc4 (
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/python-debian/python-debian-0.1.21.ebuild,v 1.4 2011/09/10 01:13:12 mr_bones_ Exp $
EAPI="3"
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.*"
inherit distutils
DESCRIPTION="Python modules to work with Debian-related data formats"
HOMEPAGE="http://packages.debian.org/sid/python-debian"
SRC_URI="mirror://debian/pool/main/${P:0:1}/${PN}/${PN}_${PV}.tar.gz"
LICENSE="GPL-2 GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples test"
RDEPEND="dev-python/chardet"
DEPEND="${RDEPEND}
dev-python/setuptools
test? ( app-arch/dpkg )"
PYTHON_MODNAME="deb822.py debian debian_bundle"
src_prepare() {
sed -e "s/__CHANGELOG_VERSION__/${PV}/" setup.py.in > setup.py || die
distutils_src_prepare
}
src_test() {
testing() {
local t
for t in test_*.py ; do
"$(PYTHON)" "${t}" || return
done
}
cd tests || die
python_execute_function testing
}
src_install() {
distutils_src_install
if use examples ; then
insinto /usr/share/doc/${PF}
doins -r examples || die
fi
}
|