summaryrefslogtreecommitdiff
path: root/media-libs/taglib-extras
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-28 06:30:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-28 06:30:54 +0000
commit72fd2b48b7154274a1d2009cdaab54e7f49fb3aa (patch)
tree9c6ce981e8f924eb5f24e71e13c91b37aafb8616 /media-libs/taglib-extras
parent721e451ec418e1712f6962404e111f0ebd487389 (diff)
gentoo auto-resync : 28:12:2024 - 06:30:54
Diffstat (limited to 'media-libs/taglib-extras')
-rw-r--r--media-libs/taglib-extras/Manifest2
-rw-r--r--media-libs/taglib-extras/files/taglib-extras-1.0.1-taglib2.patch283
-rw-r--r--media-libs/taglib-extras/taglib-extras-1.0.1-r2.ebuild23
3 files changed, 308 insertions, 0 deletions
diff --git a/media-libs/taglib-extras/Manifest b/media-libs/taglib-extras/Manifest
index 29e3b580941d..9e22e22c377f 100644
--- a/media-libs/taglib-extras/Manifest
+++ b/media-libs/taglib-extras/Manifest
@@ -1,4 +1,6 @@
AUX taglib-extras-1.0.1-taglib110.patch 1221 BLAKE2B 9777a4031c09284fa959ced28e356af87de9c7799dea5f01c7674ef7cff0bd86320db694d27d5327692414fbc85ffb8bc8f898a4d1a1d900f6411e02ac25f2de SHA512 1099cd225ed9b248b71d10d4526272e2cc4df8a3f86f0bf464e21b10ff1166576f7e06763fe19a1b1caedc3711f5832dd0270d27d25d793437dba8c9b6fabbbf
+AUX taglib-extras-1.0.1-taglib2.patch 12515 BLAKE2B db7a75c403a0873e90d8ba6925195d030d78ff1bf4044fe074173ee8af9b49ff1d3454ab142c2819ac67a60f3d4e9deb01ca1e2f0c0d6cb27821957d01ae9a5a SHA512 5c6a37cf281e777bafa63ead4cb73cd7695994cb2dcc791917bd23c93af6d342d102f25c350979a2854851b0b74a39a0d83b3b80c01d430c8bba18faee2b4b2e
DIST taglib-extras-1.0.1.tar.gz 31363 BLAKE2B 19150c26d06fad281f172c7f360155ced709d461b26431adf3a02d34cf029237855b21980b0bd2de026420a3f3a45bb0bc9fde3a5f6091f1219eff51a55f9b56 SHA512 282f9c9cde81a250d8d6f4416658167665044d53cd10d8ecfa490df60a1fb95e1309feb17f69963f8dbfccc83ebb76af7275c25339931117435f34a56c4f1a65
EBUILD taglib-extras-1.0.1-r1.ebuild 500 BLAKE2B 6f35cee36a8b090dd64e6a5f86276cff35940a5b3ff4ce017e267b4c3b8473176c6205bd280b77faf5533b1d26003774a108f7d6cb56b9bfdf7fa442e9992420 SHA512 6e8a23bb57a7a3d5e2d680900b5e55cdbed6c4e81a4aaadfe2847dda32354b9c632f3b12b12462296b4b0f1082d76576ccd59dadeac85d42cc5f96818c84151b
+EBUILD taglib-extras-1.0.1-r2.ebuild 540 BLAKE2B 3a95fadf4c4381c2f9d24b26cbcdc165c8edfde59e221f3871149264df9e5ac0708685d42ae1b1c72b4e2f1d61159979f200b09db3f411a74d83f21b4e9dc403 SHA512 314369cc9692fb0189286902af12da9d891f54fbb0984c152c0464dd57880b4016c2cf81e7139e1a8c9aa432be5cb4dc45180fc54009a1488f71aa0f59c79e0f
MISC metadata.xml 318 BLAKE2B 922a5e32e706b2976c5f359a14194d268d3f499398576c80ce5fad8c0fcea0fbf048de4480a80a6a1889c88b8b6c14147654a3ab4d5ffbcc258c2290da63f6d1 SHA512 614cb8dda7ad2088e5d6ef39b449bb4be0ac72cd0231c320188d76d1816dce6490c5114bb4798112c4b11d99d30a9e82ff8fcf08ffa8c049589682a5e38208f6
diff --git a/media-libs/taglib-extras/files/taglib-extras-1.0.1-taglib2.patch b/media-libs/taglib-extras/files/taglib-extras-1.0.1-taglib2.patch
new file mode 100644
index 000000000000..5a52b84ecca6
--- /dev/null
+++ b/media-libs/taglib-extras/files/taglib-extras-1.0.1-taglib2.patch
@@ -0,0 +1,283 @@
+Source: https://aur.archlinux.org/cgit/aur.git/tree/taglib-2.0.diff?h=taglib-extras
+
+* asturm 2024-12-28:
+ - Upstream repository still SVN: https://invent.kde.org/multimedia/amarok/-/issues/18
+ - Cleaned up patch content already part of taglib-extras-1.0.1-taglib110.patch
+ - Cleaned up the irrelevant taglib min version raising bits
+
+diff -U 3 -r a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2009-09-17 21:31:50.000000000 +0200
++++ b/CMakeLists.txt 2024-03-18 20:05:05.486108470 +0100
+@@ -14,7 +14,7 @@
+ if (CMAKE_COMPILER_IS_GNUCXX)
+ if (CMAKE_SYSTEM_NAME MATCHES Linux)
+ set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
+- set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common")
++ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common -std=c++11")
+ endif (CMAKE_SYSTEM_NAME MATCHES Linux)
+ endif (CMAKE_COMPILER_IS_GNUCXX)
+ if(MSVC)
+diff -U 3 -r a/taglib-extras/audible/audibletag.cpp b/taglib-extras/audible/audibletag.cpp
+--- a/taglib-extras/audible/audibletag.cpp 2009-09-17 17:38:07.000000000 +0200
++++ b/taglib-extras/audible/audibletag.cpp 2024-03-18 19:33:40.553079218 +0100
+@@ -40,11 +40,11 @@
+ using namespace TagLibExtras;
+
+ Audible::Tag::Tag() {
+- m_title = TagLib::String::null;
+- m_artist = TagLib::String::null;
+- m_album = TagLib::String::null;
+- m_comment = TagLib::String::null;
+- m_genre = TagLib::String::null;
++ m_title = TagLib::String();
++ m_artist = TagLib::String();
++ m_album = TagLib::String();
++ m_comment = TagLib::String();
++ m_genre = TagLib::String();
+ m_year = 0;
+ m_track = 0;
+ m_userID = 0;
+@@ -55,11 +55,11 @@
+ }
+
+ bool Audible::Tag::isEmpty() const {
+- return m_title == TagLib::String::null &&
+- m_artist == TagLib::String::null &&
+- m_album == TagLib::String::null &&
+- m_comment == TagLib::String::null &&
+- m_genre == TagLib::String::null &&
++ return m_title == TagLib::String() &&
++ m_artist == TagLib::String() &&
++ m_album == TagLib::String() &&
++ m_comment == TagLib::String() &&
++ m_genre == TagLib::String() &&
+ m_year == 0 &&
+ m_track == 0 &&
+ m_userID == 0;
+@@ -114,7 +114,7 @@
+ }
+ else if(!strcmp(name, "description"))
+ {
+- if( m_comment.isNull() )
++ if( m_comment.isEmpty() )
+ m_comment = TagLib::String(value, TagLib::String::Latin1);
+ }
+ else if(!strcmp(name, "pubdate"))
+diff -U 3 -r a/taglib-extras/audible/audibletag.h b/taglib-extras/audible/audibletag.h
+--- a/taglib-extras/audible/audibletag.h 2009-09-17 17:38:07.000000000 +0200
++++ b/taglib-extras/audible/audibletag.h 2024-03-18 19:31:45.715118382 +0100
+@@ -52,30 +52,30 @@
+
+ /*!
+ * Returns the track name; if no track name is present in the tag
+- * TagLib::String::null will be returned.
++ * TagLib::String() will be returned.
+ */
+ virtual TagLib::String title() const { return m_title; }
+
+ /*!
+ * Returns the artist name; if no artist name is present in the tag
+- * TagLib::String::null will be returned.
++ * TagLib::String() will be returned.
+ */
+ virtual TagLib::String artist() const { return m_artist; }
+
+ /*!
+ * Returns the album name; if no album name is present in the tag
+- * TagLib::String::null will be returned.
++ * TagLib::String() will be returned.
+ */
+ virtual TagLib::String album() const { return m_album; }
+
+ /*!
+ * Returns the track comment; if no comment is present in the tag
+- * TagLib::String::null will be returned.
++ * TagLib::String() will be returned.
+ */
+ virtual TagLib::String comment() const { return m_comment; }
+
+ /*!
+- * Returns the genre name; if no genre is present in the tag TagLib::String::null
++ * Returns the genre name; if no genre is present in the tag TagLib::String()
+ * will be returned.
+ */
+ virtual TagLib::String genre() const { return m_genre; }
+@@ -83,45 +83,45 @@
+ /*!
+ * Returns the year; if there is no year set, this will return 0.
+ */
+- virtual TagLib::uint year() const { return m_year; }
++ virtual unsigned int year() const { return m_year; }
+
+ /*!
+ * Returns the track number; if there is no track number set, this will
+ * return 0.
+ */
+- virtual TagLib::uint track() const { return m_track; }
++ virtual unsigned int track() const { return m_track; }
+
+ /*!
+ * Returns the user id for this file.
+ */
+- virtual TagLib::uint userID() const { return m_userID; }
++ virtual unsigned int userID() const { return m_userID; }
+
+ /*!
+- * Sets the title to \a s. If \a s is TagLib::String::null then this value will be
++ * Sets the title to \a s. If \a s is TagLib::String() then this value will be
+ * cleared.
+ */
+ virtual void setTitle(const TagLib::String &s) { m_title = s; }
+
+ /*!
+- * Sets the artist to \a s. If \a s is TagLib::String::null then this value will be
++ * Sets the artist to \a s. If \a s is TagLib::String() then this value will be
+ * cleared.
+ */
+ virtual void setArtist(const TagLib::String &s) { m_artist = s; }
+
+ /*!
+- * Sets the album to \a s. If \a s is TagLib::String::null then this value will be
++ * Sets the album to \a s. If \a s is TagLib::String() then this value will be
+ * cleared.
+ */
+ virtual void setAlbum(const TagLib::String &s) { m_album = s; }
+
+ /*!
+- * Sets the album to \a s. If \a s is TagLib::String::null then this value will be
++ * Sets the album to \a s. If \a s is TagLib::String() then this value will be
+ * cleared.
+ */
+ virtual void setComment(const TagLib::String &s) { m_comment = s; }
+
+ /*!
+- * Sets the genre to \a s. If \a s is TagLib::String::null then this value will be
++ * Sets the genre to \a s. If \a s is TagLib::String() then this value will be
+ * cleared. For tag formats that use a fixed set of genres, the appropriate
+ * value will be selected based on a string comparison. A list of available
+ * genres for those formats should be available in that type's
+@@ -132,12 +132,12 @@
+ /*!
+ * Sets the year to \a i. If \a s is 0 then this value will be cleared.
+ */
+- virtual void setYear(TagLib::uint i) { m_year = i; }
++ virtual void setYear(unsigned int i) { m_year = i; }
+
+ /*!
+ * Sets the track to \a i. If \a s is 0 then this value will be cleared.
+ */
+- virtual void setTrack(TagLib::uint i) { m_track = i; }
++ virtual void setTrack(unsigned int i) { m_track = i; }
+
+ /*!
+ * Returns true if the tag does not contain any data. This should be
+@@ -159,7 +159,7 @@
+ */
+ static void duplicate(const Tag *source, Tag *target, bool overwrite = true);
+
+- virtual void setUserID(TagLib::uint id) { m_userID = id; }
++ virtual void setUserID(unsigned int id) { m_userID = id; }
+
+ int getTagsEndOffset();
+
+@@ -171,9 +171,9 @@
+ TagLib::String m_album;
+ TagLib::String m_comment;
+ TagLib::String m_genre;
+- TagLib::uint m_year;
+- TagLib::uint m_track;
+- TagLib::uint m_userID;
++ unsigned int m_year;
++ unsigned int m_track;
++ unsigned int m_userID;
+ bool readTag( FILE *fp, char **name, char **value);
+ int m_tagsEndOffset;
+ };
+diff -U 3 -r a/taglib-extras/rmff/realmediafile.cpp b/taglib-extras/rmff/realmediafile.cpp
+--- a/taglib-extras/rmff/realmediafile.cpp 2009-09-17 17:38:07.000000000 +0200
++++ b/taglib-extras/rmff/realmediafile.cpp 2024-03-18 19:25:30.819973309 +0100
+@@ -78,12 +78,12 @@
+ return m_rmff->genre();
+ }
+
+-TagLib::uint RealMedia::Tag::year() const
++unsigned int RealMedia::Tag::year() const
+ {
+ return m_rmff->year();
+ }
+
+-TagLib::uint RealMedia::Tag::track() const
++unsigned int RealMedia::Tag::track() const
+ {
+ return m_rmff->track();
+ }
+@@ -113,12 +113,12 @@
+ // TODO: write support
+ }
+
+-void RealMedia::Tag::setYear( TagLib::uint )
++void RealMedia::Tag::setYear( unsigned int )
+ {
+ // TODO: write support
+ }
+
+-void RealMedia::Tag::setTrack( TagLib::uint )
++void RealMedia::Tag::setTrack( unsigned int )
+ {
+ // TODO: write support
+ }
+diff -U 3 -r a/taglib-extras/rmff/realmediafile.h b/taglib-extras/rmff/realmediafile.h
+--- a/taglib-extras/rmff/realmediafile.h 2009-09-21 16:34:45.000000000 +0200
++++ b/taglib-extras/rmff/realmediafile.h 2024-03-18 19:25:44.642920743 +0100
+@@ -54,15 +54,15 @@
+ virtual TagLib::String album () const;
+ virtual TagLib::String comment () const;
+ virtual TagLib::String genre () const;
+- virtual TagLib::uint year () const;
+- virtual TagLib::uint track () const;
++ virtual unsigned int year () const;
++ virtual unsigned int track () const;
+ virtual void setTitle (const TagLib::String &s);
+ virtual void setArtist (const TagLib::String &s);
+ virtual void setAlbum (const TagLib::String &s);
+ virtual void setComment (const TagLib::String &s);
+ virtual void setGenre (const TagLib::String &s);
+- virtual void setYear (TagLib::uint i);
+- virtual void setTrack (TagLib::uint i);
++ virtual void setYear (unsigned int i);
++ virtual void setTrack (unsigned int i);
+
+ bool isEmpty() const;
+ void duplicate(const Tag *source, Tag *target, bool overwrite);
+diff -U 3 -r a/taglib-extras/rmff/rmff.cpp b/taglib-extras/rmff/rmff.cpp
+--- a/taglib-extras/rmff/rmff.cpp 2009-09-17 17:38:07.000000000 +0200
++++ b/taglib-extras/rmff/rmff.cpp 2024-03-18 19:25:59.039184503 +0100
+@@ -98,12 +98,12 @@
+ return !m_err && m_id3v1tag ? m_id3v1tag->tag()->genre() : "";
+ }
+
+-TagLib::uint RealMedia::RealMediaFF::year() const
++unsigned int RealMedia::RealMediaFF::year() const
+ {
+ return !m_err && m_id3v1tag ? m_id3v1tag->tag()->year() : 0;
+ }
+
+-TagLib::uint RealMedia::RealMediaFF::track() const
++unsigned int RealMedia::RealMediaFF::track() const
+ {
+ return !m_err && m_id3v1tag ? m_id3v1tag->tag()->track() : 0;
+ }
+diff -U 3 -r a/taglib-extras/rmff/rmff.h b/taglib-extras/rmff/rmff.h
+--- a/taglib-extras/rmff/rmff.h 2009-09-17 17:38:07.000000000 +0200
++++ b/taglib-extras/rmff/rmff.h 2024-03-18 19:26:08.022265920 +0100
+@@ -290,8 +290,8 @@
+ TagLib::String album () const;
+ TagLib::String comment () const;
+ TagLib::String genre () const;
+- TagLib::uint year () const;
+- TagLib::uint track () const;
++ unsigned int year () const;
++ unsigned int track () const;
+ // TODO write support
+ //void setTitle (const String &s);
+ //void setArtist (const String &s);
diff --git a/media-libs/taglib-extras/taglib-extras-1.0.1-r2.ebuild b/media-libs/taglib-extras/taglib-extras-1.0.1-r2.ebuild
new file mode 100644
index 000000000000..9dc52b5511f7
--- /dev/null
+++ b/media-libs/taglib-extras/taglib-extras-1.0.1-r2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Unofficial taglib plugins maintained by the Amarok team"
+HOMEPAGE="https://websvn.kde.org/trunk/kdesupport/taglib-extras/"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/taglib:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-taglib110.patch" # bug 571072
+ "${FILESDIR}/${P}-taglib2.patch"
+)