summaryrefslogtreecommitdiff
blob: d92e0de34b57a55b28724226d787c9b99bd29d61 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"

inherit distutils

DESCRIPTION="Glue to stick OptionParser and ConfigParser together"
HOMEPAGE="https://launchpad.net/configglue"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

DEPEND="test? ( dev-python/mock )"
RDEPEND="dev-python/pyxdg"

RESTRICT_PYTHON_ABIS="2.4 3.*"

src_test() {
	testing() {
		PYTHONPATH="build-${PYTHON_ABI}" "$(PYTHON)" setup.py test
	}
	python_execute_function testing
}