diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-17 22:46:31 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-17 22:46:31 +0000 |
commit | 265c13ef4b9975372307d30c89330250e4e05cca (patch) | |
tree | 94bcfbfe9f1700fa3cff35f03ec54c68de891223 /dev-python/gmpy | |
parent | Simplify src_test(). (diff) | |
download | gentoo-2-265c13ef4b9975372307d30c89330250e4e05cca.tar.gz gentoo-2-265c13ef4b9975372307d30c89330250e4e05cca.tar.bz2 gentoo-2-265c13ef4b9975372307d30c89330250e4e05cca.zip |
Use -fno-strict-aliasing to avoid breaking strict-aliasing rules. Simplify usage of distutils.eclass.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/gmpy')
-rw-r--r-- | dev-python/gmpy/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/gmpy/gmpy-1.11.ebuild | 27 |
2 files changed, 15 insertions, 19 deletions
diff --git a/dev-python/gmpy/ChangeLog b/dev-python/gmpy/ChangeLog index 08ad138345ef..be29f9948405 100644 --- a/dev-python/gmpy/ChangeLog +++ b/dev-python/gmpy/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/gmpy # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/ChangeLog,v 1.15 2010/06/17 19:50:17 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/ChangeLog,v 1.16 2010/07/17 22:46:31 arfrever Exp $ + + 17 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + gmpy-1.11.ebuild: + Use -fno-strict-aliasing to avoid breaking strict-aliasing rules. Simplify + usage of distutils.eclass. 17 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> gmpy-1.11.ebuild, +files/gmpy-1.11-tests.patch: diff --git a/dev-python/gmpy/gmpy-1.11.ebuild b/dev-python/gmpy/gmpy-1.11.ebuild index f01b4e4069eb..4ce94cb8252e 100644 --- a/dev-python/gmpy/gmpy-1.11.ebuild +++ b/dev-python/gmpy/gmpy-1.11.ebuild @@ -1,14 +1,14 @@ # 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.11.ebuild,v 1.4 2010/06/17 19:50:17 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/gmpy-1.11.ebuild,v 1.5 2010/07/17 22:46:31 arfrever Exp $ -EAPI="2" +EAPI="3" SUPPORT_PYTHON_ABIS="1" inherit distutils eutils DESCRIPTION="Python bindings for dev-libs/gmp" -HOMEPAGE="http://www.aleax.it/gmpy.html http://code.google.com/p/gmpy/" +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" @@ -20,19 +20,13 @@ RDEPEND="dev-libs/gmp" DEPEND="${RDEPEND} app-arch/unzip" -src_prepare() { - epatch "${FILESDIR}/${P}-tests.patch" +PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") - # HACK: distutils only support 'setup.py', so - # we symlink what we need to 'setup.py' later - mv setup.py setmp.py -} +DISTUTILS_SETUP_FILES=("setup.py" "setes.py") -src_compile() { - local i - for i in mp es; do - ln -snf "set${i}.py" "setup.py" && distutils_src_compile - done +src_prepare() { + distutils_src_prepare + epatch "${FILESDIR}/${P}-tests.patch" } src_test() { @@ -49,10 +43,7 @@ src_test() { } src_install() { - local i - for i in mp es; do - ln -snf "set${i}.py" "setup.py" && distutils_src_install - done + distutils_src_install dohtml doc/index.html dodoc doc/gmpydoc.txt } |