diff options
author | Tim Harder <radhermit@gentoo.org> | 2014-01-26 12:46:11 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2014-01-26 12:46:11 +0000 |
commit | 5983ff2f1d3f57239ca7c35cc9e68b606cae577e (patch) | |
tree | 39a307627f614631166a6c14de3f9cc0d7793d33 /dev-python/backports-lzma/backports-lzma-0.0.2-r1.ebuild | |
parent | Initial import, ebuild by me. (diff) | |
download | gentoo-2-5983ff2f1d3f57239ca7c35cc9e68b606cae577e.tar.gz gentoo-2-5983ff2f1d3f57239ca7c35cc9e68b606cae577e.tar.bz2 gentoo-2-5983ff2f1d3f57239ca7c35cc9e68b606cae577e.zip |
Use dev-python/backports for main namespace.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-python/backports-lzma/backports-lzma-0.0.2-r1.ebuild')
-rw-r--r-- | dev-python/backports-lzma/backports-lzma-0.0.2-r1.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/backports-lzma/backports-lzma-0.0.2-r1.ebuild b/dev-python/backports-lzma/backports-lzma-0.0.2-r1.ebuild new file mode 100644 index 000000000000..bd2e1fec28d3 --- /dev/null +++ b/dev-python/backports-lzma/backports-lzma-0.0.2-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/backports-lzma/backports-lzma-0.0.2-r1.ebuild,v 1.1 2014/01/26 12:46:11 radhermit Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_2,3_3} ) + +inherit distutils-r1 + +MY_PN=${PN/-/.} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Backport of Python 3.3's lzma module for XZ/LZMA compressed files" +HOMEPAGE="https://github.com/peterjc/backports.lzma/ http://pypi.python.org/pypi/backports.lzma/" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND="app-arch/xz-utils + dev-python/backports[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # main namespace provided by dev-python/backports + rm backports/__init__.py || die +} + +python_test() { + "${PYTHON}" test/test_lzma.py || die "tests failed with ${EPYTHON}" +} |