diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-02-17 00:13:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-02-17 00:13:57 +0000 |
commit | 27b3683509c5229cce540418778a8b64afbc0009 (patch) | |
tree | b7164898142b8b093b91c8254c4387b6eec679ee /dev-python/tagpy | |
parent | f2bdc27fe0f79f8f9a3945eb2b1163ce75c56439 (diff) |
gentoo auto-resync : 17:02:2025 - 00:13:57
Diffstat (limited to 'dev-python/tagpy')
-rw-r--r-- | dev-python/tagpy/Manifest | 6 | ||||
-rw-r--r-- | dev-python/tagpy/files/tagpy-2022.1-fix-build-taglib2.patch | 235 | ||||
-rw-r--r-- | dev-python/tagpy/files/tagpy-2022.1-py3_13.patch | 13 | ||||
-rw-r--r-- | dev-python/tagpy/tagpy-2022.1-r1.ebuild | 39 | ||||
-rw-r--r-- | dev-python/tagpy/tagpy-2025.1-r1.ebuild | 2 |
5 files changed, 2 insertions, 293 deletions
diff --git a/dev-python/tagpy/Manifest b/dev-python/tagpy/Manifest index 49dc70a1a9a2..ebf35901fbfd 100644 --- a/dev-python/tagpy/Manifest +++ b/dev-python/tagpy/Manifest @@ -1,8 +1,4 @@ -AUX tagpy-2022.1-fix-build-taglib2.patch 9817 BLAKE2B 95ba627f3b8cc5d1d65081562731377e1970cf2c934bf090dd18fbc06c78d5bf444fd1d4e849c6c5b0e47b0c361de3f90f32128ff620ef3e809b629690fa67fe SHA512 5af886e0eac8722438d72277928e39b82806ce7071a94e56aaf8c6649b4cf453e5d312f8f4ae9c77fe48da7bdcd52ecc22e63f42902ff582ada4c1d40ff7169c -AUX tagpy-2022.1-py3_13.patch 397 BLAKE2B 3bed0c287516f532f8227d3a0c9676a86fc6ce1a1628e11ad7309559b1ea603c7fa47c1f04be848037cf13b2e05dd7d45789cf0310e92961c6fb29ccf3747f5b SHA512 8b0d0de81244b7a3bb8c9601fa306c31c6ef144eff9d525af593015d18b12f530989a76817c97f806e5a3f8fff6062846329f0ec0df00ec70f09c233b846c416 AUX tagpy-2025.1-fix-check-taglib.patch 925 BLAKE2B c49988ef5577b949dd89eb876e60c2e20f3617da6a36bdd87a5ac870977b9cf33d54a5a5bccca96ec95cdddfaf26c3a9826a977c734f359a3582f87107e68743 SHA512 a45a2f6fddefae2ec888c720dd89132478a9672c53caa7628cb222987c018d0f7b1333e86b8921f1e828e8a50319891a44c35c0e6d732959ccf2a3fe43549697 -DIST tagpy-2022.1.gh.tar.gz 198744 BLAKE2B 1a0722017ae532444cf97171c04964453bdb6c427a49bace4ad9fe3a3be9be7f0903a9ae3fb8dbf0c8450112ed5f83677044c6b2546dddec3550d8251cef4cff SHA512 d740bf17abe6a2a7cd7fe037c024c8361d49d2ec4e8d03dbdc27c9ec273696b0a41d087a7159692e9b849e807af493f68239562da01d5191bee95060b32aabda DIST tagpy-2025.1.gh.tar.gz 256974 BLAKE2B 629dc6b4dd980040e2a248b2ca55a4dc1f90e5dde214602dd80c68fc55a864c34ea3e1c7849185b04a13b66eace7b865054d667f0edb007b9eb479df2b5aae19 SHA512 9842c1bcf2ca9d3ba554d1771e7296280fe9b2749fe834ddc8045fc9587b5acc2705019f0065839690b3f65f9e4e2fab42d14e0f1267367fbf446993517e3531 -EBUILD tagpy-2022.1-r1.ebuild 711 BLAKE2B 0b4013e2cc6a5db451d71b93d7bebfdbd82e468f943f89fddc2e67e8863c959e9a58e82fad7c4e1c7df72153d1059aa45fd309fa609535b0a88aaa0c4aa5c82f SHA512 d35cfaf9cbc456c81fd55f011aed320bdfa1912c0ad4f5999100c597740856ced9a5f6319ba7af59fd95f394c437e225fbb7ec7299d5e53b8a9383ab010c931a -EBUILD tagpy-2025.1-r1.ebuild 730 BLAKE2B 28dc1c3894e4c77bcdc709c8d50b78cd22141517eaa32e2f4b065611fbb27918f6d0cff1d145277d2fdcf7a1161bdcdbb8b0e7f396d806b44c3f0ae8a5d37f27 SHA512 3238e95128acc7e2b9b54b9dc398b3986d0dd941df25a003ca75f24eb6a3b30818bcfeee4d27045e19749b1cabce85c594318f508dc611a792962a02cfb7993c +EBUILD tagpy-2025.1-r1.ebuild 729 BLAKE2B a4d9e7330eaad36090d19a7f67cabb5041d7e3aab34e1de60206c445b39d220205ad6c5cb6d1f289aedc466123bcefb39cb6c3a8d973cf50631c86d752211d3f SHA512 72644a43befcb3cf3796e9e49c04f808303b3975c22a71400d66a9a99b4eab8d9c955da26268550114ffd256a15f340c5e51bd7e6548ebb2f6933920e0d1be3b MISC metadata.xml 601 BLAKE2B b82a1af702b40b3d3ee0cc0168bced0afca8014a34a59f7012571874ab4d1bbe06fa25229cce7ff419d5e3c662cc82d64b91e70f7d02704e8f760c6dc51a72d5 SHA512 0d28f25be7a89d369b1029ccd2050745e79343e7eed2d7b6d3f5577cc2989558f30e495ec1e489f997a66077bb26fc22f2eec5ae9a381e222e1e2f67a2d80c77 diff --git a/dev-python/tagpy/files/tagpy-2022.1-fix-build-taglib2.patch b/dev-python/tagpy/files/tagpy-2022.1-fix-build-taglib2.patch deleted file mode 100644 index 05512cbbc7f2..000000000000 --- a/dev-python/tagpy/files/tagpy-2022.1-fix-build-taglib2.patch +++ /dev/null @@ -1,235 +0,0 @@ -https://github.com/palfrey/tagpy/pull/16.patch -diff --git a/src/wrapper/basics.cpp b/src/wrapper/basics.cpp -index b84f672..d58f7e0 100644 ---- a/src/wrapper/basics.cpp -+++ b/src/wrapper/basics.cpp -@@ -80,15 +80,15 @@ namespace - String album() const { return this->get_override("album")(); } - String comment() const { return this->get_override("comment")(); } - String genre() const { return this->get_override("genre")(); } -- TagLib::uint year() const { return this->get_override("year")(); } -- TagLib::uint track() const { return this->get_override("track")(); } -+ uint year() const { return this->get_override("year")(); } -+ uint track() const { return this->get_override("track")(); } - void setTitle(const String &v) const { this->get_override("setTitle")(v); } - void setArtist(const String &v) const { this->get_override("setArtist")(v); } - void setAlbum(const String &v) const { this->get_override("setAlbum")(v); } - void setComment(const String &v) const { this->get_override("setComment")(v); } - void setGenre(const String &v) const { this->get_override("setGenre")(v); } -- void setYear(TagLib::uint i) const { this->get_override("setYear")(i); } -- void setTrack(TagLib::uint i) const { this->get_override("setTrack")(i); } -+ void setYear(uint i) const { this->get_override("setYear")(i); } -+ void setTrack(uint i) const { this->get_override("setTrack")(i); } - }; - - -@@ -169,7 +169,7 @@ BOOST_PYTHON_MODULE(_tagpy) - { - typedef AudioProperties cl; - class_<AudioPropertiesWrap, boost::noncopyable>("AudioProperties", no_init) -- .add_property("length", &cl::length) -+ .add_property("length", &cl::lengthInSeconds) - .add_property("bitrate", &cl::bitrate) - .add_property("sampleRate", &cl::sampleRate) - .add_property("channels", &cl::channels) -diff --git a/src/wrapper/common.hpp b/src/wrapper/common.hpp -index 2fbdf74..febaa16 100644 ---- a/src/wrapper/common.hpp -+++ b/src/wrapper/common.hpp -@@ -129,7 +129,7 @@ namespace { - // List - // ------------------------------------------------------------- - template<typename Value> -- Value &List_getitem(List<Value> &l, TagLib::uint i) -+ Value &List_getitem(List<Value> &l, uint i) - { - if (i >= l.size()) - { -@@ -140,7 +140,7 @@ namespace { - } - - template<typename Value> -- void List_setitem(List<Value> &l, TagLib::uint i, Value v) -+ void List_setitem(List<Value> &l, uint i, Value v) - { - if (i >= l.size()) - { -@@ -177,7 +177,7 @@ namespace { - // PointerList - // ------------------------------------------------------------- - template<typename Value> -- Value *&PointerList_getitem(List<Value *> &l, TagLib::uint i) -+ Value *&PointerList_getitem(List<Value *> &l, uint i) - { - if (i >= l.size()) - { -@@ -188,7 +188,7 @@ namespace { - } - - template<typename Value> -- void PointerList_setitem(List<Value *> &l, TagLib::uint i, auto_ptr<Value> v) -+ void PointerList_setitem(List<Value *> &l, uint i, auto_ptr<Value> v) - { - if (i >= l.size()) - { -diff --git a/src/wrapper/id3.cpp b/src/wrapper/id3.cpp -index cc0eb53..74d5923 100644 ---- a/src/wrapper/id3.cpp -+++ b/src/wrapper/id3.cpp -@@ -58,7 +58,7 @@ namespace - - void id3v2_Tag_addFrame(ID3v2::Tag &t, ID3v2::Frame *f) - { -- ID3v2::Frame *f_clone = ID3v2::FrameFactory::instance()->createFrame(f->render()); -+ ID3v2::Frame *f_clone = ID3v2::FrameFactory::instance()->createFrame(f->render(), t.header()); - t.addFrame(f_clone); - } - -@@ -71,7 +71,7 @@ namespace - #define MF_OL(MF, MIN, MAX) \ - BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(MF##_overloads, MF, MIN, MAX); - -- MF_OL(createFrame, 1, 2); -+ MF_OL(createFrame, 2, 2); - MF_OL(volumeAdjustmentIndex, 0, 1); - MF_OL(volumeAdjustment, 0, 1); - MF_OL(peakVolume, 0, 1); -@@ -121,15 +121,12 @@ void exposeID3() - { - typedef ID3v2::FrameFactory cl; - -- ID3v2::Frame *(ID3v2::FrameFactory::*cf1)(const ByteVector &, bool) const -- = &cl::createFrame; -- ID3v2::Frame *(ID3v2::FrameFactory::*cf2)(const ByteVector &, TagLib::uint) const -+ ID3v2::Frame *(ID3v2::FrameFactory::*cf)(const ByteVector &, const ID3v2::Header *) const - = &cl::createFrame; - - class_<ID3v2::FrameFactory, boost::noncopyable> - ("id3v2_FrameFactory", no_init) -- .def("createFrame", cf1, return_value_policy<manage_new_object>()) -- .def("createFrame", cf2, createFrame_overloads()[return_value_policy<manage_new_object>()]) -+ .def("createFrame", cf, createFrame_overloads()[return_value_policy<manage_new_object>()]) - .def("instance", &cl::instance, - return_value_policy<reference_existing_object>()) - .staticmethod("instance") -@@ -150,10 +147,10 @@ void exposeID3() - .DEF_SIMPLE_METHOD(render) - - .def("headerSize", -- (TagLib::uint (*)()) -+ (uint (*)()) - &ID3v2::Frame::headerSize) - .def("headerSize", -- (TagLib::uint (*)(TagLib::uint)) -+ (uint (*)(uint)) - &ID3v2::Frame::headerSize) - // MISSING: textDelimiter - ; -@@ -210,7 +207,6 @@ void exposeID3() - class_<cl, boost::noncopyable, bases<Tag> >("id3v2_Tag") - .def("header", &ID3v2::Tag::header, return_internal_reference<>()) - .def("extendedHeader", &ID3v2::Tag::extendedHeader, return_internal_reference<>()) -- .def("footer", &ID3v2::Tag::footer, return_internal_reference<>()) - - .def("frameListMap", &ID3v2::Tag::frameListMap, return_internal_reference<>()) - .def("frameList", fl1, return_internal_reference<>()) -@@ -224,7 +220,7 @@ void exposeID3() - // Commented out following comment at: - // https://github.com/inducer/tagpy/commit/fb6d9a95f8ed1b0f347a82569a13e60a75c7e6d6 - // .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)() const) -- .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)(int) const) -+ .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)(ID3v2::Version) const) - #else - .def("render", (ByteVector (cl::*)() const) &cl::render) - #endif -@@ -323,7 +319,6 @@ void exposeID3() - ("id3v2_RelativeVolumeFrame", init<const ByteVector &>()) - // MISSING: Empty constructor, gives symbol errors - .def("channels", id3v2_rvf_channels) -- .DEF_SIMPLE_METHOD(setChannelType) - .DEF_OVERLOADED_METHOD(volumeAdjustmentIndex, short (cl::*)(cl::ChannelType) const) - .DEF_OVERLOADED_METHOD(setVolumeAdjustmentIndex, void (cl::*)(short, cl::ChannelType)) - .DEF_OVERLOADED_METHOD(volumeAdjustment, float (cl::*)(cl::ChannelType) const) -@@ -424,7 +419,7 @@ void exposeID3() - .def(init<const char *, ID3v2::FrameFactory *, optional<bool, AudioProperties::ReadStyle> >()) - .def("save", - #if (TAGPY_TAGLIB_HEX_VERSION >= 0x10800) -- (bool (MPEG::File::*)(int, bool, int)) -+ (bool (MPEG::File::*)(int, TagLib::File::StripTags, TagLib::ID3v2::Version, TagLib::File::DuplicateTags)) - #else - (bool (MPEG::File::*)(int, bool)) - #endif -@@ -444,7 +439,6 @@ void exposeID3() - .def("strip", - (bool (cl::*)(int)) &cl::strip, - strip_overloads()) -- .DEF_SIMPLE_METHOD(setID3v2FrameFactory) - .DEF_SIMPLE_METHOD(firstFrameOffset) - .DEF_SIMPLE_METHOD(nextFrameOffset) - .DEF_SIMPLE_METHOD(previousFrameOffset) -diff --git a/src/wrapper/rest.cpp b/src/wrapper/rest.cpp -index 0a94bc8..dd843bf 100644 ---- a/src/wrapper/rest.cpp -+++ b/src/wrapper/rest.cpp -@@ -51,7 +51,7 @@ namespace - // Ogg - // ------------------------------------------------------------- - MF_OL(addField, 2, 3); -- MF_OL(removeField, 1, 2); -+ MF_OL(removeFields, 1, 2); - MF_OL(render, 0, 1); - - // ------------------------------------------------------------- -@@ -62,7 +62,6 @@ namespace - // ------------------------------------------------------------- - // MPC - // ------------------------------------------------------------- -- MF_OL(remove, 0, 1); - //MF_OL(ID3v1Tag, 0, 1); - MF_OL(APETag, 0, 1); - -@@ -90,8 +89,8 @@ void exposeRest() - return_internal_reference<>()) - .DEF_SIMPLE_METHOD(vendorID) - .DEF_OVERLOADED_METHOD(addField, void (cl::*)(const String &, const String &, bool)) -- .DEF_OVERLOADED_METHOD(removeField, void (cl::*)(const String &, const String &)) -- .DEF_OVERLOADED_METHOD(removeField, void (cl::*)(const String &, const String &)) -+ .DEF_OVERLOADED_METHOD(removeFields, void (cl::*)(const String &, const String &)) -+ .DEF_OVERLOADED_METHOD(removeFields, void (cl::*)(const String &, const String &)) - .DEF_OVERLOADED_METHOD(render, ByteVector (cl::*)(bool) const) - ; - } -@@ -159,10 +158,10 @@ void exposeRest() - .def(init<const String &, const StringList &>()) - .def(init<const cl &>()) - .DEF_SIMPLE_METHOD(key) -- .DEF_SIMPLE_METHOD(value) -+ .DEF_SIMPLE_METHOD(binaryData) - .DEF_SIMPLE_METHOD(size) - .DEF_SIMPLE_METHOD(toString) -- .DEF_SIMPLE_METHOD(toStringList) -+ .DEF_SIMPLE_METHOD(values) - .DEF_SIMPLE_METHOD(render) - .DEF_SIMPLE_METHOD(parse) - .DEF_SIMPLE_METHOD(setReadOnly) -@@ -207,9 +206,6 @@ void exposeRest() - (Ogg::XiphComment *(FLAC::File::*)(bool)) - &FLAC::File::xiphComment, - xiphComment_overloads()[return_internal_reference<>()]) -- .DEF_SIMPLE_METHOD(setID3v2FrameFactory) -- .DEF_SIMPLE_METHOD(streamInfoData) -- .DEF_SIMPLE_METHOD(streamLength) - ; - } - -@@ -238,8 +234,8 @@ void exposeRest() - APETag_overloads()[return_internal_reference<>()]) - .def("remove", - (void (cl::*)(int)) -- &cl::remove, -- remove_overloads()) -+ &cl::strip, -+ strip_overloads()) - ; - } - diff --git a/dev-python/tagpy/files/tagpy-2022.1-py3_13.patch b/dev-python/tagpy/files/tagpy-2022.1-py3_13.patch deleted file mode 100644 index f415260daac5..000000000000 --- a/dev-python/tagpy/files/tagpy-2022.1-py3_13.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/wrapper/basics.cpp b/src/wrapper/basics.cpp -index b84f672..ba037dc 100644 ---- a/src/wrapper/basics.cpp -+++ b/src/wrapper/basics.cpp -@@ -51,7 +51,7 @@ namespace - { - static PyObject *convert(ByteVector const& s) - { -- return PyUnicode_FromStringAndSize(s.data(), s.size()); -+ return PyBytes_FromStringAndSize(s.data(), s.size()); - } - }; - diff --git a/dev-python/tagpy/tagpy-2022.1-r1.ebuild b/dev-python/tagpy/tagpy-2022.1-r1.ebuild deleted file mode 100644 index 619d870002d8..000000000000 --- a/dev-python/tagpy/tagpy-2022.1-r1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} ) - -inherit distutils-r1 - -DESCRIPTION="Python Bindings for TagLib" -HOMEPAGE=" - https://github.com/palfrey/tagpy/ - https://pypi.org/project/tagpy/ -" -SRC_URI=" - https://github.com/palfrey/tagpy/archive/v${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 ~sparc x86" - -DEPEND=" - dev-libs/boost:=[python,${PYTHON_USEDEP}] - media-libs/taglib:= -" -RDEPEND=" - ${DEPEND} -" - -PATCHES=( - "${FILESDIR}"/${P}-py3_13.patch - "${FILESDIR}"/${P}-fix-build-taglib2.patch -) - -distutils_enable_tests pytest diff --git a/dev-python/tagpy/tagpy-2025.1-r1.ebuild b/dev-python/tagpy/tagpy-2025.1-r1.ebuild index 75a31f6c7346..2c839c124ec5 100644 --- a/dev-python/tagpy/tagpy-2025.1-r1.ebuild +++ b/dev-python/tagpy/tagpy-2025.1-r1.ebuild @@ -21,7 +21,7 @@ SRC_URI=" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 ~ppc ppc64 ~sparc x86" +KEYWORDS="amd64 ppc ppc64 ~sparc x86" DEPEND=" dev-libs/boost:=[python,${PYTHON_USEDEP}] |