dev-python/pycdio: version bump.

Closes: https://bugs.gentoo.org/651292
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Patrice Clement
2018-06-15 20:34:28 +02:00
parent b230470817
commit 4a0099d2e2
2 changed files with 46 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pycdio-0.20.tar.gz 197736 BLAKE2B 98ca603dba80a13dc3d1805869e190b9defa1a5c50b398ac4c7122629101df92ca8ad0071101bd8d53cbf48f41211017350a89944944028052899911b32d54e8 SHA512 b53a535440008dc637b31fd2cda22845c91b98e78c30f90c866af3b9bf7cb3faad39f0784b5063a39bd97bb18fc58c75ad0833d53421182d408c2889c491846b
DIST pycdio-2.0.0.tar.gz 242131 BLAKE2B cbe014ea42ecf2b84f736d4b714f0fa76c94b10e0b16da148334521ac4a141db606793be541ee532b7542e58256377bbc6139945232942ef2ef0beeda4b66ef5 SHA512 b73d49e143e4b5ebf5e8514d526a57f71d004b9ce4298743bb109902ee9551fa586384a236b26da9cd86284b2aa8c31fb02a324a1cebc03f2071d06fbd3e3285

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 flag-o-matic
DESCRIPTION="Python OO interface to libcdio (CD Input and Control library)"
HOMEPAGE="https://savannah.gnu.org/projects/libcdio/ https://pypi.org/project/pycdio/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
RDEPEND=">=dev-libs/libcdio-0.90"
DEPEND="
${RDEPEND}
dev-lang/swig
dev-python/setuptools[${PYTHON_USEDEP}]"
RESTRICT="test" # currently tests fail
python_prepare_all() {
append-cflags -fno-strict-aliasing
# Remove obsolete sys.path and adjust 'data' paths in examples.
sed -i \
-e "s:^sys.path.insert.*::" \
-e "s:\.\./data:./data:g" \
example/*.py || die
# Disable failing tests.
sed -i -e "s/test_get_set/_&/" test/test-cdtext.py || die
sed -i -e "s/test_fs/_&/" test/test-isocopy.py || die
distutils-r1_python_prepare_all
}
python_install_all(){
use examples && local EXAMPLES=( example/. )
distutils-r1_python_install_all
}