diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-14 20:06:15 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-07-14 20:06:15 +0000 |
commit | 3f2a1ad92cfbad78733989208f85797e6fea5553 (patch) | |
tree | b8931a6d9d9a1f36db14b31c8e2b5021971ed298 /dev-vcs/bzr | |
parent | You should not use EPREFIX with helpers (diff) | |
download | gentoo-2-3f2a1ad92cfbad78733989208f85797e6fea5553.tar.gz gentoo-2-3f2a1ad92cfbad78733989208f85797e6fea5553.tar.bz2 gentoo-2-3f2a1ad92cfbad78733989208f85797e6fea5553.zip |
Set SUPPORT_PYTHON_ABIS.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs/bzr')
-rw-r--r-- | dev-vcs/bzr/ChangeLog | 6 | ||||
-rw-r--r-- | dev-vcs/bzr/bzr-2.1.2.ebuild | 67 |
2 files changed, 42 insertions, 31 deletions
diff --git a/dev-vcs/bzr/ChangeLog b/dev-vcs/bzr/ChangeLog index c0c42c4ba7de..4fde50b1ddd8 100644 --- a/dev-vcs/bzr/ChangeLog +++ b/dev-vcs/bzr/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-vcs/bzr # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/bzr/ChangeLog,v 1.6 2010/07/10 18:54:19 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/bzr/ChangeLog,v 1.7 2010/07/14 20:06:15 arfrever Exp $ + + 14 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + bzr-2.1.2.ebuild: + Set SUPPORT_PYTHON_ABIS. 10 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> bzr-2.0.1.ebuild: diff --git a/dev-vcs/bzr/bzr-2.1.2.ebuild b/dev-vcs/bzr/bzr-2.1.2.ebuild index e45ac29dbcfb..aa7837803e71 100644 --- a/dev-vcs/bzr/bzr-2.1.2.ebuild +++ b/dev-vcs/bzr/bzr-2.1.2.ebuild @@ -1,10 +1,11 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/bzr/bzr-2.1.2.ebuild,v 1.1 2010/06/23 09:43:19 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/bzr/bzr-2.1.2.ebuild,v 1.2 2010/07/14 20:06:15 arfrever Exp $ -EAPI=3 - -PYTHON_DEPEND=2 +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" inherit bash-completion distutils elisp-common eutils versionator @@ -22,9 +23,9 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86- IUSE="curl doc emacs +sftp test" # Disable until https://bugs.launchpad.net/bzr/+bug/392127 is fixed -RESTRICT=test +RESTRICT="test" -RDEPEND="|| ( >=dev-lang/python-2.5 dev-python/celementtree ) +RDEPEND="|| ( dev-lang/python:2.7[xml] dev-lang/python:2.6[xml] dev-lang/python:2.5[xml] dev-python/celementtree ) curl? ( dev-python/pycurl ) sftp? ( dev-python/paramiko )" @@ -37,9 +38,12 @@ DEPEND="emacs? ( virtual/emacs ) )" S="${WORKDIR}/${MY_P}" -PYTHON_MODNAME="bzrlib" -SITEFILE=71bzr-gentoo.el + +PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") + DOCS="doc/*.txt" +PYTHON_MODNAME="bzrlib" +SITEFILE="71bzr-gentoo.el" src_prepare() { distutils_src_prepare @@ -60,8 +64,32 @@ src_compile() { fi } +src_test() { + # Some tests expect the usual pyc compiling behaviour. + python_enable_pyc + + # Define tests which are known to fail below. + local skip_tests="(" + # https://bugs.launchpad.net/bzr/+bug/456471 + skip_tests+="bzrlib.tests.blackbox.test_version.*|" + # https://bugs.launchpad.net/bzr/+bug/392127 + skip_tests+="test_http.*" + skip_tests+=")" + if [[ -n ${skip_tests} ]]; then + einfo "Skipping tests known to fail: ${skip_tests}" + fi + + testing() { + LC_ALL="C" "$(PYTHON -A)" bzr --no-plugins selftest ${skip_tests:+-x} ${skip_tests} + } + python_execute_function testing + + # Just to make sure we don't hit any errors on later stages. + python_disable_pyc +} + src_install() { - distutils_src_install --install-data "${EPREFIX}"/usr/share + distutils_src_install --install-data "${EPREFIX}/usr/share" if use doc; then docinto developers @@ -104,24 +132,3 @@ pkg_postrm() { distutils_pkg_postrm use emacs && elisp-site-regen } - -src_test() { - export LC_ALL=C - # Define tests which are known to fail below. - local skip_tests="(" - #https://bugs.launchpad.net/bzr/+bug/456471 - skip_tests+="bzrlib.tests.blackbox.test_version.*|" - # https://bugs.launchpad.net/bzr/+bug/392127 - skip_tests+="test_http.*" - skip_tests+=")" - # Some tests expect the usual pyc compiling behaviour. - python_enable_pyc - if [[ -n ${skip_tests} ]]; then - einfo "Skipping tests known to fail: ${skip_tests}" - "$(PYTHON -A)" bzr --no-plugins selftest -x ${skip_tests} || die - else - "$(PYTHON -A)" bzr --no-plugins selftest || die - fi - # Just to make sure we don't hit any errors on later stages. - python_disable_pyc -} |