From 29dbb45eddeee714308074fedf1efe6ebe124c4a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 8 Jan 2018 23:05:17 +0100 Subject: dev-python/backports-lzma: Bump to 0.0.10, now with PyPy support --- dev-python/backports-lzma/Manifest | 1 + .../backports-lzma/backports-lzma-0.0.10.ebuild | 37 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 dev-python/backports-lzma/backports-lzma-0.0.10.ebuild (limited to 'dev-python/backports-lzma') diff --git a/dev-python/backports-lzma/Manifest b/dev-python/backports-lzma/Manifest index f5c438a1b2d3..d3ae362991bf 100644 --- a/dev-python/backports-lzma/Manifest +++ b/dev-python/backports-lzma/Manifest @@ -1,2 +1,3 @@ +DIST backports.lzma-0.0.10.tar.gz 37242 BLAKE2B 42ee440437379aae9a5d4708d8766300143651f932a63b54e3c4153d48e02843cfd45ce2d60baefcda1f10465f8b982b6883a6047a146d14858f32f5ab9c9485 SHA512 72814ea262ec3916e6a44a571ffa2fb3316e7238a84649232849e378f720132157f5747dbbce659e7144e53e62a84bb41e419ae6d9b8f5daf10ced372b1bf9d5 DIST backports.lzma-0.0.6.tar.gz 34475 BLAKE2B 9249684972b2496cfc5652d4dea5d03e0cf14fbef4a6f617111210e0125d0f455db2b80cdad5640ad71d04fe23fa292ea50a2083125daae5023512e577553683 SHA512 6196e64e81c2427d07844dab984113021ae97ba9d0c136cfd20b7213cdb8cda8b9a2643c8df21c799d338031cd49d4cbfd7f9ba9c30efd6cd28e63e8772a032b DIST backports.lzma-0.0.8.tar.gz 36111 BLAKE2B 1acbe9628f740f067068cc07105abe2a161bd2ebc712f1967c54d814abfa432cf5394167cc7adfcde49cc54adecb792a84e91ae810ad150ef38a22b2e79f9440 SHA512 bc5e7672a0ac53b7cf97ea52a566e96d92a3dd334a8321699585225e32ad7c723b4ffd6e4b153bd2ae3ead2a2cd6a48678b915257de4952ddca8389032db48ad diff --git a/dev-python/backports-lzma/backports-lzma-0.0.10.ebuild b/dev-python/backports-lzma/backports-lzma-0.0.10.ebuild new file mode 100644 index 000000000000..2a2ea8b97731 --- /dev/null +++ b/dev-python/backports-lzma/backports-lzma-0.0.10.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 pypy ) + +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/ https://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 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND="app-arch/xz-utils + dev-python/backports[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${MY_P} + +python_test() { + "${EPYTHON}" test/test_lzma.py || die "tests failed with ${EPYTHON}" +} + +python_install() { + # main namespace provided by dev-python/backports + rm "${BUILD_DIR}"/lib/backports/__init__.py || die + rm -f backports/__init__.py || die + + distutils-r1_python_install +} -- cgit v1.2.3-65-gdbad