diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-10-02 15:10:33 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-10-02 15:10:33 +0000 |
commit | ae8f7f2059e066631791bd7daa9878ca1025ce4c (patch) | |
tree | d9e76e53b4c89797c02863c371a0c3be8ff6d95c /dev-python/pyme | |
parent | Less strict RDEPEND: ~sci-biology/hmmer-2.3.2 instead of =sci-biology/hmmer-2... (diff) | |
download | gentoo-2-ae8f7f2059e066631791bd7daa9878ca1025ce4c.tar.gz gentoo-2-ae8f7f2059e066631791bd7daa9878ca1025ce4c.tar.bz2 gentoo-2-ae8f7f2059e066631791bd7daa9878ca1025ce4c.zip |
Update EAPI. Fix dependencies. Restrict tests (bug #339409). Avoid breaking strict-aliasing rules. Use Python 2. Don't try to install nonexistent documentation.
(Portage version: 2.2_rc88_p65/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pyme')
-rw-r--r-- | dev-python/pyme/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/pyme/pyme-0.8.1.ebuild | 25 |
2 files changed, 20 insertions, 13 deletions
diff --git a/dev-python/pyme/ChangeLog b/dev-python/pyme/ChangeLog index 2e00e51563b4..9b4b05e635bc 100644 --- a/dev-python/pyme/ChangeLog +++ b/dev-python/pyme/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/pyme # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/ChangeLog,v 1.31 2010/10/02 13:31:02 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/ChangeLog,v 1.32 2010/10/02 15:10:33 arfrever Exp $ + + 02 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + pyme-0.8.1.ebuild: + Update EAPI. Fix dependencies. Restrict tests (bug #339409). Avoid breaking + strict-aliasing rules. Use Python 2. Don't try to install nonexistent + documentation. 02 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> -pyme-0.6.0-r1.ebuild, -files/pyme-swig-compatibility.patch: diff --git a/dev-python/pyme/pyme-0.8.1.ebuild b/dev-python/pyme/pyme-0.8.1.ebuild index d92c1eb63097..63d1febed3c8 100644 --- a/dev-python/pyme/pyme-0.8.1.ebuild +++ b/dev-python/pyme/pyme-0.8.1.ebuild @@ -1,9 +1,11 @@ -# 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/pyme/pyme-0.8.1.ebuild,v 1.5 2009/09/27 18:50:59 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/pyme-0.8.1.ebuild,v 1.6 2010/10/02 15:10:33 arfrever Exp $ -EAPI="2" +EAPI="3" +PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" inherit distutils eutils @@ -14,41 +16,40 @@ SRC_URI="mirror://sourceforge/pyme/${P}.tar.gz" LICENSE="|| ( GPL-2 LGPL-2.1 )" SLOT="0" KEYWORDS="~amd64 ~ia64 ppc ~sparc x86" -IUSE="doc examples" +IUSE="examples" RDEPEND=">=app-crypt/gpgme-0.9.0" DEPEND="${RDEPEND} dev-lang/swig" +RESTRICT="test" -RESTRICT_PYTHON_ABIS="3*" +PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") src_prepare() { distutils_src_prepare - sed -i \ + sed \ -e 's:include/:include/gpgme/:' \ -e 's/SWIGOPT :=.*/& -D_FILE_OFFSET_BITS=64/' \ - -e 's:$(PYTHON):/usr/bin/python:' \ - -e '/-rm doc\/\*\.html$/d' \ - Makefile || die "sed Makefile failed" + -e 's/shell python/shell $(PYTHON)/' \ + -i Makefile || die "sed Makefile failed" sed -e 's/^\(define_macros = \).*/\1[("_FILE_OFFSET_BITS=64", None)]/' -i setup.py || die "sed setup.py failed" } src_compile() { - emake -j1 PYTHON="/usr/bin/python" swig || die "emake swig failed" + emake -j1 PYTHON="$(PYTHON -f)" swig || die "emake swig failed" distutils_src_compile } src_test() { testing() { - PYTHONPATH=$(echo build-${PYTHON_ABI}/lib.*) "$(PYTHON)" examples/genkey.py || die "genkey test failed with Python ${PYTHON_ABI}" + PYTHONPATH=$(echo build-${PYTHON_ABI}/lib.*) "$(PYTHON)" examples/genkey.py } python_execute_function testing } src_install() { distutils_src_install - use doc && dohtml -r doc/* if use examples; then insinto /usr/share/doc/${PF}/examples |