commit:     b9597e825853da6086a9127f477a6247e28e7b5c
Author:     Bernardo Meurer <bernardo <AT> standard <DOT> ai>
AuthorDate: Thu Sep 12 10:04:12 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Sep 12 10:04:12 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9597e82

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 <AT> standard.ai>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-python/mediafile/Manifest               |  1 +
 dev-python/mediafile/mediafile-0.2.0.ebuild | 43 +++++++++++++++++++++++++++++
 dev-python/mediafile/metadata.xml           | 21 ++++++++++++++
 3 files changed, 65 insertions(+)

diff --git a/dev-python/mediafile/Manifest b/dev-python/mediafile/Manifest
new file mode 100644
index 00000000000..0eb736f7a07
--- /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 00000000000..3d5e8e1fd59
--- /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 00000000000..d8b2350d9c4
--- /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>[email protected]</email>
+               <name>Bernardo Meurer</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</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>

Reply via email to