dev-python/mediafile: new package (0.2.0)
authorBernardo Meurer <bernardo@standard.ai>
Thu, 12 Sep 2019 10:04:12 +0000 (12:04 +0200)
committerDavid Seifert <soap@gentoo.org>
Thu, 12 Sep 2019 10:04:12 +0000 (12:04 +0200)
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>
dev-python/mediafile/Manifest [new file with mode: 0644]
dev-python/mediafile/mediafile-0.2.0.ebuild [new file with mode: 0644]
dev-python/mediafile/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/mediafile/Manifest b/dev-python/mediafile/Manifest
new file mode 100644 (file)
index 0000000..0eb736f
--- /dev/null
@@ -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 (file)
index 0000000..3d5e8e1
--- /dev/null
@@ -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 (file)
index 0000000..d8b2350
--- /dev/null
@@ -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>