summaryrefslogtreecommitdiff
path: root/dev-python/tagpy
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-08-02 19:14:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-08-02 19:14:55 +0100
commitb24bd25253fe093f722ab576d29fdc41d04cb1ee (patch)
tree0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /dev-python/tagpy
parent121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff)
gentoo resync : 02.08.2019
Diffstat (limited to 'dev-python/tagpy')
-rw-r--r--dev-python/tagpy/Manifest4
-rw-r--r--dev-python/tagpy/files/tagpy-2018.1-readme.rst16
-rw-r--r--dev-python/tagpy/files/tagpy-2018.1-taglib-1.8.patch17
-rw-r--r--dev-python/tagpy/tagpy-2018.1.ebuild56
4 files changed, 93 insertions, 0 deletions
diff --git a/dev-python/tagpy/Manifest b/dev-python/tagpy/Manifest
index c3a7756dd1f2..c46d58157f6c 100644
--- a/dev-python/tagpy/Manifest
+++ b/dev-python/tagpy/Manifest
@@ -1,3 +1,7 @@
+AUX tagpy-2018.1-readme.rst 725 BLAKE2B f40dbe6ab4f03fe0a6141a03ae6f504d202a5c97d605cb22dfa0b9695374260658f8dde0d49e84de0e7d289bff705beed1244215e70cc7f9d8d587d505322a20 SHA512 0d9cd79986a16ad78e76911f9d3c1b36fb706c74c58e9d29dce817bcf4bbd8b29c9596f1228a0524fdf6538f2c685901a159fd9bd0b629d0dd1d60c75c2820b0
+AUX tagpy-2018.1-taglib-1.8.patch 642 BLAKE2B 45c190b621dda7368583c1ab92a01f08fb84d83666953caa5f05c89803db16dc8cd1668e3b891c757c916d27439c4c3143a8a8a2115ad89a8b2f1806dc4a80c9 SHA512 6a3af752fdfd12f6c5f6e52019f3d4f322b9dc3595e810e93ed43e680c1a2f7728efeb8d1180473ca3dfaa7f548d437c32f0a306882ad7f7072388f57ea42caf
DIST tagpy-2013.1.tar.gz 151463 BLAKE2B 07d35dcff3ca01061c3df03ceb36d7e3fab6b993d3b85ccd44baad19a7c4232d348f470af7a7ee0ab72cf0fcdfd2cfcfa6086306cb3ab4491eebfcf662b37dbc SHA512 4068b33fcbee2d5037149fda3ad0b256a31187ee35146392d0e187acb1d8e57c249da5356cb396cb9f027ed47ff44016466a1faaea0912494535c631f8271d58
+DIST tagpy-2018.1.tar.gz 145501 BLAKE2B acdda6789dae000ba2f664e4a5582f6218f312bed20ec81c4ea54f358bec70d41aceed6704f392a7a32c39d263da81f9c832922942fa179e1865e423dcf28bcf SHA512 2010baa919adadc9fc231deeb093953622ec54c8b6011e2d6a3489b086032de0a71cc26f42439435f26bd7a1ff069e3944dafc61217abe6ea5e81b01b9d18c50
EBUILD tagpy-2013.1.ebuild 905 BLAKE2B d0c598ac20460ae56b763da47b214d6dea49c336f2f8c9fd95bd44a257d4e389ace9f5a35a5fb6507951720a3737f226a2ec94dab5e06b81d62560661c55dfad SHA512 ec8c9924d7b9a1809835b1f90bd953ddc53f3ae14dc6a94370e914d867cb9c8c59eb30aa2afe43ab9a83c7e3342101857b10fa4b7e073158a228f4cb93a4006f
+EBUILD tagpy-2018.1.ebuild 1225 BLAKE2B 85cce14508c5d83dc2fceec9ec0d41ce2b18454d0829aa95a1d1b637365e7d804a3dec235616cf889543a69072576642ade86cd3bdf78dfdb3b0615a189ebd7b SHA512 dd723b200c131f55eda99f024df417caf2b6b72cb9161d4c45abb11df085502a9a80fe208164cf9bf5ea8887749fe11b75540a8801ae5b834f0acd2889a34453
MISC metadata.xml 547 BLAKE2B c5c61e36e108060392467ad7bde0c8869b6df0f55367e528e9165d216f4c9674af13ec580c1b2fe6c231843cddd40b621f816c71e1d718126583085780649d66 SHA512 caf162b52bba166e74c1c1c9a6f157ee44d4b7f829c089dee93b6c84a99c847384ff7cd4f03ce191574e58562fdabe29eb4b00281551227f5d274adc3e7ba2d2
diff --git a/dev-python/tagpy/files/tagpy-2018.1-readme.rst b/dev-python/tagpy/files/tagpy-2018.1-readme.rst
new file mode 100644
index 000000000000..83bb4d2671e3
--- /dev/null
+++ b/dev-python/tagpy/files/tagpy-2018.1-readme.rst
@@ -0,0 +1,16 @@
+TagPy is a set of Python bindings for Scott Wheeler's
+`TagLib <http://developer.kde.org/~wheeler/taglib.html>`_.
+It builds upon `Boost.Python <http://www.boost.org/libs/python/doc/>`_,
+a wrapper generation library which is part of the renowned Boost
+set of C++ libraries.
+
+Just like TagLib, TagPy can:
+
+* read and write ID3 tags of version 1 and 2, with many supported frame types
+ for version 2 (in MPEG Layer 2 and MPEG Layer 3, FLAC and MPC),
+* access Xiph Comments in Ogg Vorbis Files and Ogg Flac Files,
+* access APE tags in Musepack and MP3 files.
+
+All these features have their own specific interfaces, but
+TagLib's generic tag reading and writing mechanism is also
+supported. It comes with a bunch of examples. \ No newline at end of file
diff --git a/dev-python/tagpy/files/tagpy-2018.1-taglib-1.8.patch b/dev-python/tagpy/files/tagpy-2018.1-taglib-1.8.patch
new file mode 100644
index 000000000000..90c49a29af74
--- /dev/null
+++ b/dev-python/tagpy/files/tagpy-2018.1-taglib-1.8.patch
@@ -0,0 +1,17 @@
+diff -Naur a/src/wrapper/id3.cpp b/src/wrapper/id3.cpp
+--- a/src/wrapper/id3.cpp 2019-03-23 08:26:04.975722018 -0400
++++ b/src/wrapper/id3.cpp 2019-03-23 08:26:54.438399217 -0400
+@@ -220,12 +220,7 @@
+ .DEF_SIMPLE_METHOD(removeFrame)
+ .DEF_SIMPLE_METHOD(removeFrames)
+
+- #if (TAGPY_TAGLIB_HEX_VERSION >= 0x10800)
+- .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)() const)
+- .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)(int) const)
+- #else
+- .def("render", (ByteVector (cl::*)() const) &cl::render)
+- #endif
++ .def("render", (ByteVector (cl::*)() const) &cl::render)
+ ;
+ }
+
diff --git a/dev-python/tagpy/tagpy-2018.1.ebuild b/dev-python/tagpy/tagpy-2018.1.ebuild
new file mode 100644
index 000000000000..c6309a878ecf
--- /dev/null
+++ b/dev-python/tagpy/tagpy-2018.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+inherit distutils-r1
+
+DESCRIPTION="Python Bindings for TagLib"
+HOMEPAGE="https://mathema.tician.de//software/tagpy
+ https://pypi.org/project/tagpy/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="examples"
+
+RDEPEND="
+ dev-libs/boost:=[python,threads,${PYTHON_USEDEP}]
+ >=media-libs/taglib-1.8
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+DISTUTILS_IN_SOURCE_BUILD=1
+
+PATCHES=( "${FILESDIR}/${P}-taglib-1.8.patch" )
+
+python_prepare_all() {
+ cp "${FILESDIR}"/${P}-readme.rst README.rst || die
+ distutils-r1_python_prepare_all
+}
+
+python_configure() {
+ local boostpy_ver="${EPYTHON#python}"
+ if has_version ">=dev-libs/boost-1.70"; then
+ boostpy_ver="${boostpy_ver/\.}"
+ else
+ boostpy_ver="-${boostpy_ver}"
+ fi
+
+ "${PYTHON}" configure.py \
+ --taglib-inc-dir="${EPREFIX}/usr/include/taglib" \
+ --boost-python-libname="boost_python${boostpy_ver}"
+}
+
+python_install_all() {
+ if use examples; then
+ docinto examples
+ dodoc -r test/*
+ fi
+
+ distutils-r1_python_install_all
+}