| 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/gmpy/gmpy-1.14.ebuild,v 1.5 2012/02/20 15:03:17 patrick Exp $
|
| 4 |
|
| 5 |
EAPI="3"
|
| 6 |
SUPPORT_PYTHON_ABIS="1"
|
| 7 |
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
|
| 8 |
|
| 9 |
inherit distutils
|
| 10 |
|
| 11 |
DESCRIPTION="Python bindings for GMP library"
|
| 12 |
HOMEPAGE="http://www.aleax.it/gmpy.html http://code.google.com/p/gmpy/ http://pypi.python.org/pypi/gmpy"
|
| 13 |
SRC_URI="http://${PN}.googlecode.com/files/${P}.zip"
|
| 14 |
|
| 15 |
LICENSE="LGPL-2.1"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-linux ~ppc-macos"
|
| 18 |
IUSE=""
|
| 19 |
|
| 20 |
RDEPEND="dev-libs/gmp"
|
| 21 |
DEPEND="${RDEPEND}
|
| 22 |
app-arch/unzip"
|
| 23 |
|
| 24 |
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
| 25 |
|
| 26 |
DOCS="doc/gmpydoc.txt"
|
| 27 |
|
| 28 |
src_test() {
|
| 29 |
testing() {
|
| 30 |
if [[ "${PYTHON_ABI:0:2}" == "3." ]]; then
|
| 31 |
pushd test3 > /dev/null
|
| 32 |
else
|
| 33 |
pushd test > /dev/null
|
| 34 |
fi
|
| 35 |
PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" gmpy_test.py || return 1
|
| 36 |
popd > /dev/null
|
| 37 |
}
|
| 38 |
python_execute_function testing
|
| 39 |
}
|
| 40 |
|
| 41 |
src_install() {
|
| 42 |
distutils_src_install
|
| 43 |
dohtml doc/index.html || die "dohtml failed"
|
| 44 |
}
|