diff options
author | Peter Volkov <pva@gentoo.org> | 2011-10-01 10:30:08 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2011-10-01 10:30:08 +0000 |
commit | a0980fd7d1269c5f15e2a9eb263fe966b1f1d07d (patch) | |
tree | 91d257b8384877fefbe657c472d976d9119f2d86 /dev-vcs/bzrtools/bzrtools-2.4.1.ebuild | |
parent | link to upstream patch (diff) | |
download | gentoo-2-a0980fd7d1269c5f15e2a9eb263fe966b1f1d07d.tar.gz gentoo-2-a0980fd7d1269c5f15e2a9eb263fe966b1f1d07d.tar.bz2 gentoo-2-a0980fd7d1269c5f15e2a9eb263fe966b1f1d07d.zip |
Version bump.
(Portage version: 2.1.10.19/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs/bzrtools/bzrtools-2.4.1.ebuild')
-rw-r--r-- | dev-vcs/bzrtools/bzrtools-2.4.1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-vcs/bzrtools/bzrtools-2.4.1.ebuild b/dev-vcs/bzrtools/bzrtools-2.4.1.ebuild new file mode 100644 index 000000000000..e5ff547b22d3 --- /dev/null +++ b/dev-vcs/bzrtools/bzrtools-2.4.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/bzrtools/bzrtools-2.4.1.ebuild,v 1.1 2011/10/01 10:30:08 pva Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils eutils versionator + +DESCRIPTION="bzrtools is a useful collection of utilities for bzr." +HOMEPAGE="http://bazaar-vcs.org/BzrTools" +SRC_URI="https://launchpad.net/${PN}/stable/${PV}/+download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos" +IUSE="" +#IUSE="test" + +RDEPEND="|| ( =dev-vcs/bzr-2.4* + =dev-vcs/bzr-2.5* )" +DEPEND="${RDEPEND}" +# test? ( dev-python/testtools )" + +RESTRICT="test" + +S="${WORKDIR}/${PN}" + +DOCS="AUTHORS CREDITS NEWS NEWS.Shelf README README.Shelf TODO TODO.heads TODO.Shelf" +PYTHON_MODNAME="bzrlib/plugins/bzrtools" + +src_test() { + testing() { + local return_status="0" + + # put a linked copy of the bzr core into the build directory to properly + # test the "built" version of bzrtools + find "$(python_get_libdir)/site-packages/bzrlib/" \ + -mindepth 1 -maxdepth 1 \ + \( \( -type d -and -not -name "plugins" \) -or -name "*.py" \) \ + -exec ln -s '{}' "${S}/build-${PYTHON_ABI}/lib/bzrlib/" \; + touch "${S}/build-${PYTHON_ABI}/lib/bzrlib/plugins/__init__.py" + "${S}/test.py" "${S}/build-${PYTHON_ABI}/lib" || return_status="1" + # remove the "shadow" copy so it doesn't get installed + rm "${S}/build-${PYTHON_ABI}/lib/bzrlib/plugins/__init__.py" + find "${S}/build-${PYTHON_ABI}/lib/bzrlib/" -mindepth 1 -maxdepth 1 -type l -exec rm '{}' \; + + return "${return_status}" + } + python_execute_function testing +} |