35 lines
1,022 B
Bash
35 lines
1,022 B
Bash
# Copyright 1999-2012 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/decorator/decorator-3.4.0.ebuild,v 1.1 2012/10/29 08:54:24 patrick Exp $
|
|
|
|
EAPI="3"
|
|
SUPPORT_PYTHON_ABIS="1"
|
|
PYTHON_TESTS_RESTRICTED_ABIS="2.4 2.5"
|
|
|
|
inherit distutils
|
|
|
|
DESCRIPTION="Simplifies the usage of decorators for the average programmer"
|
|
HOMEPAGE="http://pypi.python.org/pypi/decorator http://code.google.com/p/micheles/"
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|
|
IUSE=""
|
|
|
|
DEPEND="dev-python/setuptools"
|
|
RDEPEND=""
|
|
|
|
DOCS="README.txt"
|
|
PYTHON_MODNAME="decorator.py"
|
|
|
|
src_test() {
|
|
testing() {
|
|
if [[ "${PYTHON_ABI}" == 3.* ]]; then
|
|
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" documentation3.py
|
|
else
|
|
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" documentation.py
|
|
fi
|
|
}
|
|
python_execute_function testing
|
|
}
|