diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/pycdio | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/pycdio')
| -rw-r--r-- | dev-python/pycdio/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pycdio/metadata.xml | 15 | ||||
| -rw-r--r-- | dev-python/pycdio/pycdio-2.1.0.ebuild | 42 |
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/pycdio/Manifest b/dev-python/pycdio/Manifest new file mode 100644 index 000000000000..2a11f3cf0079 --- /dev/null +++ b/dev-python/pycdio/Manifest @@ -0,0 +1 @@ +DIST pycdio-2.1.0.tar.gz 241434 BLAKE2B eb981fdf52b205e14c6dd353ac4aca9a9e82dba6967a53b9059f8a265ef80832fe7236d68b2af7a6e408665fce0f5ed3541289e0b7d282834c4feb8e6b428fc4 SHA512 dc18fbd212f7040b8b06efaf263b17568e9c2d089cff7dfc4dda50a7225059e44c9c86e2d81ade92cf09c823f7189b5723fb601cb12f0884dc04e9f5418c5927 diff --git a/dev-python/pycdio/metadata.xml b/dev-python/pycdio/metadata.xml new file mode 100644 index 000000000000..5af16e493c54 --- /dev/null +++ b/dev-python/pycdio/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en">The pycdio (and libcdio) libraries encapsulate CD-ROM reading and + control. Python programs wishing to be oblivious of the OS- and + device-dependent properties of a CD-ROM can use this library.</longdescription> + <upstream> + <remote-id type="pypi">pycdio</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/pycdio/pycdio-2.1.0.ebuild b/dev-python/pycdio/pycdio-2.1.0.ebuild new file mode 100644 index 000000000000..31816a47a2df --- /dev/null +++ b/dev-python/pycdio/pycdio-2.1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 + +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" + +BDEPEND="dev-lang/swig" +RDEPEND=">=dev-libs/libcdio-2.0.0" +DEPEND="${RDEPEND}" + +python_prepare_all() { + # 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() { + distutils-r1_python_install_all + if use examples; then + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi +} |
