| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/polygon/polygon-3.0.4.ebuild,v 1.4 2012/06/21 01:26:52 jdhore Exp $ |
| 4 |
|
| 5 |
EAPI=3 |
| 6 |
PYTHON_DEPEND="3" |
| 7 |
SUPPORT_PYTHON_ABIS="1" |
| 8 |
RESTRICT_PYTHON_ABIS="2.*" |
| 9 |
|
| 10 |
inherit distutils |
| 11 |
|
| 12 |
DESCRIPTION="Python package to handle polygonal shapes in 2D" |
| 13 |
HOMEPAGE="http://www.j-raedler.de/projects/polygon" |
| 14 |
SRC_URI="mirror://github/jraedler/Polygon3/Polygon-${PV}a-src.zip" |
| 15 |
|
| 16 |
LICENSE="LGPL-2" |
| 17 |
SLOT="3" |
| 18 |
KEYWORDS="amd64 ~ppc x86" |
| 19 |
IUSE="" |
| 20 |
|
| 21 |
RDEPEND="" |
| 22 |
DEPEND="${RDEPEND} |
| 23 |
app-arch/unzip" |
| 24 |
|
| 25 |
S="${WORKDIR}/Polygon-${PV}" |
| 26 |
|
| 27 |
src_test() { |
| 28 |
testing() { |
| 29 |
PYTHONPATH="$(dir -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" test/Test.py |
| 30 |
} |
| 31 |
python_execute_function testing |
| 32 |
} |
| 33 |
|
| 34 |
src_install() { |
| 35 |
distutils_src_install |
| 36 |
dodoc HISTORY doc/Polygon.txt |
| 37 |
} |