summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@standard.ai>2019-09-12 12:04:12 +0200
committerDavid Seifert <soap@gentoo.org>2019-09-12 12:04:12 +0200
commitb9597e825853da6086a9127f477a6247e28e7b5c (patch)
treec0cda928f0eabd4e124b727ccb451e528f26fbe3 /dev-python/mediafile
parentdev-python/confuse: new package (1.0.0) (diff)
downloadgentoo-b9597e825853da6086a9127f477a6247e28e7b5c.tar.gz
gentoo-b9597e825853da6086a9127f477a6247e28e7b5c.tar.bz2
gentoo-b9597e825853da6086a9127f477a6247e28e7b5c.zip
dev-python/mediafile: new package (0.2.0)
Read and write audio files' tags in Python. Closes: https://bugs.gentoo.org/693180 Closes: https://github.com/gentoo/gentoo/pull/12827 Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Bernardo Meurer <bernardo@standard.ai> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-python/mediafile')
-rw-r--r--dev-python/mediafile/Manifest1
-rw-r--r--dev-python/mediafile/mediafile-0.2.0.ebuild43
-rw-r--r--dev-python/mediafile/metadata.xml21
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/mediafile/Manifest b/dev-python/mediafile/Manifest
new file mode 100644
index 000000000000..0eb736f7a07b
--- /dev/null
+++ b/dev-python/mediafile/Manifest
@@ -0,0 +1 @@
+DIST mediafile-0.2.0.tar.gz 509689 BLAKE2B f79da210a74d55c4709b6fbf08a0675f445001ec49d042fc4a1101def07068bebccb155e770c5cbe8d051d7f101a213e9fcefbcb9590a650de99cfde837a965c SHA512 0fa79f77e0ac9a021b569e78f0edbe8cc63308ad8c89526d8e15dee455a284cb90d29b51aa476287e306717315c3cff290634fc6e4ac0b1726163dd922ee3b0d
diff --git a/dev-python/mediafile/mediafile-0.2.0.ebuild b/dev-python/mediafile/mediafile-0.2.0.ebuild
new file mode 100644
index 000000000000..3d5e8e1fd598
--- /dev/null
+++ b/dev-python/mediafile/mediafile-0.2.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{5,6,7} )
+inherit distutils-r1
+
+DESCRIPTION="Read and write audio files' tags in Python"
+HOMEPAGE="https://github.com/beetbox/mediafile"
+SRC_URI="https://github.com/beetbox/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx )
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+DEPEND="
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
+ >=media-libs/mutagen-1.33.0[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+python_compile_all() {
+ if use doc; then
+ emake -C docs html
+ rm -r docs/_build/html/_sources || die
+ HTML_DOCS=( docs/_build/html/. )
+ fi
+}
+
+python_test() {
+ nosetests -v || die "Tests failed"
+ if use doc; then
+ sphinx-build -W -q -b html docs __doctest || die "Doc tests failed"
+ fi
+}
diff --git a/dev-python/mediafile/metadata.xml b/dev-python/mediafile/metadata.xml
new file mode 100644
index 000000000000..d8b2350d9c4f
--- /dev/null
+++ b/dev-python/mediafile/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bernardo@standard.ai</email>
+ <name>Bernardo Meurer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ MediaFile is a simple interface to the metadata tags for many audio
+ file formats. It wraps Mutagen, a high-quality library for low-level
+ tag manipulation, with a high-level, format-independent interface for
+ a common set of tags.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">beetbox/mediafile</remote-id>
+ </upstream>
+</pkgmetadata>