You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/gmpy/gmpy-1.15.ebuild

45 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/gmpy-1.15.ebuild,v 1.1 2012/08/17 07:38:12 patrick Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
inherit distutils
DESCRIPTION="Python bindings for GMP library"
HOMEPAGE="http://www.aleax.it/gmpy.html http://code.google.com/p/gmpy/ http://pypi.python.org/pypi/gmpy"
SRC_URI="http://${PN}.googlecode.com/files/${P}.zip"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-linux ~ppc-macos"
IUSE=""
RDEPEND="dev-libs/gmp"
DEPEND="${RDEPEND}
app-arch/unzip"
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
DOCS="doc/gmpydoc.txt"
src_test() {
testing() {
if [[ "${PYTHON_ABI:0:2}" == "3." ]]; then
pushd test3 > /dev/null
else
pushd test > /dev/null
fi
PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" gmpy_test.py || return 1
popd > /dev/null
}
python_execute_function testing
}
src_install() {
distutils_src_install
dohtml doc/index.html || die "dohtml failed"
}