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

EAPI=4
PYTHON_depend="2:2.6"
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="3.* *-jython *-pypy-*"
inherit distutils

DESCRIPTION="A dictionary that supports attribute-style access, a la JavaScript"
HOMEPAGE="http://pypi.python.org/pypi/bunch http://github.com/dsc/bunch/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

KEYWORDS="~amd64"
IUSE="doc"
LICENSE="MIT"
SLOT="0"

RDEPEND=""
DEPEND="${RDEPEND}
	dev-python/setuptools"

src_test() {
	testing() {
		local exit_status=0
		PYTHONPATH=. "$(PYTHON)" -d ${PN}/test.py || exit_status=1
		einfo testing completed by python${PYTHON_ABI}
		return $exit_status
	}
	python_execute_function testing
}