summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2010-02-12 16:10:31 +0000
committerAndrey Grozin <grozin@gentoo.org>2010-02-12 16:10:31 +0000
commit985403dd4c16e20187b18fc0a557369ac285ddbb (patch)
tree0eea11c112a078c349533b789c06c4d60400dfdc /dev-python/gmpy
parentApply patch from Daniel T Chen (Ubuntu) to avoid a file-descriptor leak. It c... (diff)
downloadgentoo-2-985403dd4c16e20187b18fc0a557369ac285ddbb.tar.gz
gentoo-2-985403dd4c16e20187b18fc0a557369ac285ddbb.tar.bz2
gentoo-2-985403dd4c16e20187b18fc0a557369ac285ddbb.zip
Version bump
(Portage version: 2.2_rc62/cvs/Linux i686)
Diffstat (limited to 'dev-python/gmpy')
-rw-r--r--dev-python/gmpy/ChangeLog10
-rw-r--r--dev-python/gmpy/gmpy-1.11.ebuild (renamed from dev-python/gmpy/gmpy-1.04.ebuild)35
2 files changed, 29 insertions, 16 deletions
diff --git a/dev-python/gmpy/ChangeLog b/dev-python/gmpy/ChangeLog
index e73aa4f3b968..8420782ffb8b 100644
--- a/dev-python/gmpy/ChangeLog
+++ b/dev-python/gmpy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/gmpy
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/ChangeLog,v 1.11 2009/12/31 16:24:19 fauli Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/ChangeLog,v 1.12 2010/02/12 16:10:31 grozin Exp $
+
+*gmpy-1.11 (12 Feb 2010)
+
+ 12 Feb 2010; Andrey Grozin <grozin@gentoo.org> -gmpy-1.04.ebuild,
+ +gmpy-1.11.ebuild:
+ Version bump
31 Dec 2009; Christian Faulhammer <fauli@gentoo.org> gmpy-1.10.ebuild:
stable x86, bug 287622
diff --git a/dev-python/gmpy/gmpy-1.04.ebuild b/dev-python/gmpy/gmpy-1.11.ebuild
index ba96987335b1..fc92294225b1 100644
--- a/dev-python/gmpy/gmpy-1.04.ebuild
+++ b/dev-python/gmpy/gmpy-1.11.ebuild
@@ -1,11 +1,14 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/gmpy-1.04.ebuild,v 1.1 2009/02/24 21:05:29 grozin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/gmpy-1.11.ebuild,v 1.1 2010/02/12 16:10:31 grozin Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
inherit distutils
DESCRIPTION="Python bindings for dev-libs/gmp"
-HOMEPAGE="http://www.aleax.it/gmpy.html"
+HOMEPAGE="http://www.aleax.it/gmpy.html http://code.google.com/p/gmpy/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.zip"
LICENSE="LGPL-2.1"
@@ -13,15 +16,11 @@ SLOT="0"
KEYWORDS="~amd64 ~ia64 ~x86"
IUSE=""
-RDEPEND="virtual/python
- dev-libs/gmp"
+RDEPEND="dev-libs/gmp"
DEPEND="${RDEPEND}
app-arch/unzip"
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
+src_prepare() {
# HACK: distutils only support 'setup.py', so
# we symlink what we need to 'setup.py' later
mv setup.py setmp.py
@@ -34,6 +33,19 @@ src_compile() {
done
}
+src_test() {
+ testing() {
+ if [[ "${PYTHON_ABI}" == 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() {
local i
for i in mp es; do
@@ -42,8 +54,3 @@ src_install() {
dohtml doc/index.html
dodoc doc/gmpydoc.txt
}
-
-src_test() {
- cd test
- PYTHONPATH="$(ls -d ../build/lib.*)" "${python}" gmpy_test.py
-}