commit:     a027a727af52f0f14622e47eb209bff8fa4684aa
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  7 18:25:35 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jun  7 18:25:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a027a727

media-libs/lastfmlib: treeclean

Closes: https://bugs.gentoo.org/928115
Bug: https://bugs.gentoo.org/891297
Bug: https://bugs.gentoo.org/896240
Bug: https://bugs.gentoo.org/896242
Bug: https://bugs.gentoo.org/919820
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 media-libs/lastfmlib/Manifest                      |  1 -
 .../files/lastfmlib-0.4.0-autotools-tests.patch    | 31 --------------
 .../files/lastfmlib-0.4.0-out-of-bounds-trim.patch | 24 -----------
 .../files/lastfmlib-0.4.0-string-conv.patch        | 20 ---------
 media-libs/lastfmlib/lastfmlib-0.4.0-r1.ebuild     | 34 ---------------
 media-libs/lastfmlib/lastfmlib-0.4.0-r2.ebuild     | 50 ----------------------
 media-libs/lastfmlib/metadata.xml                  | 11 -----
 profiles/package.mask                              |  5 ---
 8 files changed, 176 deletions(-)

diff --git a/media-libs/lastfmlib/Manifest b/media-libs/lastfmlib/Manifest
deleted file mode 100644
index 5d38c67bd5ab..000000000000
--- a/media-libs/lastfmlib/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST lastfmlib-0.4.0.tar.gz 333224 BLAKE2B 
2e38adb90a468eccf959950d89e2e0b903e7e96c871b4d20216ee233933392fda7cd3bd86d90472e0f305922dc11e1dc998206c669a13be76eab7fdd07e6b45b
 SHA512 
88e26bab04eda06f77f4684a5fe14aa9761acfcb5d7d8726c4d3ae5e1a4acd73e6b0c9bedff5d51bce07afd7b883085f1adba98714e8ebfc5bbd20b8aca66748

diff --git a/media-libs/lastfmlib/files/lastfmlib-0.4.0-autotools-tests.patch 
b/media-libs/lastfmlib/files/lastfmlib-0.4.0-autotools-tests.patch
deleted file mode 100644
index 506d5a37693b..000000000000
--- a/media-libs/lastfmlib/files/lastfmlib-0.4.0-autotools-tests.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-* Run the tests as part of 'make check' (not just building testrunner).
-* Use pkg-config to find gtest, not the now-removed gtest-config.
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -59,6 +59,7 @@ pkgconfig_DATA = liblastfmlib.pc
- 
- if ENABLE_UNITTEST
- check_PROGRAMS = testrunner
-+TESTS = $(check_PROGRAMS)
- endif
- 
- testrunner_SOURCES =    lastfmlib/unittest/testrunner.cpp \
---- a/configure.ac
-+++ b/configure.ac
-@@ -51,13 +51,10 @@ AC_ARG_ENABLE(unittests,
-    [  --enable-unittests Enables build of unittests ],
-    ENABLE_UNITTEST=$enableval)
- 
--if test "$ENABLE_UNITTEST" = "yes"; then
--    AC_CHECK_HEADERS(
--    [gtest/gtest.h],,
--    [AC_MSG_ERROR([Missing gtest library, install the google unittest 
framework])])
--    UNITTEST_LIBS="$(gtest-config --libs)"
-+AS_IF([test "$ENABLE_UNITTEST" = "yes"], [
-+    PKG_CHECK_MODULES([UNITTEST], [gtest], [], [AC_MSG_ERROR([Missing gtest 
library, install the google unittest framework])])
-     AC_SUBST(UNITTEST_LIBS)
--fi
-+])
- AM_CONDITIONAL(ENABLE_UNITTEST, test "$enable_unittests" = "yes")
- 
- AC_SUBST([pkgconfigdir])

diff --git 
a/media-libs/lastfmlib/files/lastfmlib-0.4.0-out-of-bounds-trim.patch 
b/media-libs/lastfmlib/files/lastfmlib-0.4.0-out-of-bounds-trim.patch
deleted file mode 100644
index 6c01a59269d4..000000000000
--- a/media-libs/lastfmlib/files/lastfmlib-0.4.0-out-of-bounds-trim.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Fix out of bounds assertion with -D_GLIBCXX_ASSERTIONS on empty string in 
testsuite.
---- a/lastfmlib/utils/stringoperations.cpp
-+++ b/lastfmlib/utils/stringoperations.cpp
-@@ -40,7 +40,7 @@ void trim(std::string& aString)
- {
-     size_t begin    = 0;
-     size_t end      = aString.size() - 1;
--    
-+
-     while ( aString[begin] == ' '  || aString[begin] == '\t'
-          || aString[begin] == '\r' || aString[begin] == '\n')
-     {
-@@ -50,8 +50,10 @@ void trim(std::string& aString)
-             break;
-     }
- 
--    if (begin == aString.size())
-+    if (begin == aString.size()) {
-         aString = "";
-+        return;
-+    }
- 
-     while ( aString[end] == ' '  || aString[end] == '\t'
-          || aString[end] == '\r' || aString[end] == '\n')

diff --git a/media-libs/lastfmlib/files/lastfmlib-0.4.0-string-conv.patch 
b/media-libs/lastfmlib/files/lastfmlib-0.4.0-string-conv.patch
deleted file mode 100644
index 381e731d9f62..000000000000
--- a/media-libs/lastfmlib/files/lastfmlib-0.4.0-string-conv.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-# Fix string conversions
-# Author:  Steven Newbury <[email protected]>
-# Gentoo Bug: 664760
---- ./lastfmlib/utils/stringoperations.h~      2020-02-27 11:50:53.000000000 
+0000
-+++ ./lastfmlib/utils/stringoperations.h       2020-02-27 11:55:49.228128570 
+0000
-@@ -53,14 +53,6 @@
-         ss << numeric;
-         return ss.str();
-     }
--
--    template<typename T>
--    inline std::string toWstring(T& numeric)
--    {
--        std::wstringstream ss;
--        ss << numeric;
--        return ss.str();
--    }
- }
- 
- #endif

diff --git a/media-libs/lastfmlib/lastfmlib-0.4.0-r1.ebuild 
b/media-libs/lastfmlib/lastfmlib-0.4.0-r1.ebuild
deleted file mode 100644
index 4b5293e5a3bf..000000000000
--- a/media-libs/lastfmlib/lastfmlib-0.4.0-r1.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="C++ library to scrobble tracks on Last.fm"
-HOMEPAGE="https://github.com/dirkvdb/lastfmlib/releases";
-SRC_URI="https://github.com/dirkvdb/lastfmlib/archive/${P}.tar.gz";
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
-IUSE="debug syslog"
-
-BDEPEND="virtual/pkgconfig"
-RDEPEND="net-misc/curl"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
-       "${FILESDIR}/${P}-string-conv.patch"
-)
-
-src_configure() {
-       econf \
-               --disable-static \
-               $(use_enable debug) \
-               $(use_enable syslog logging) \
-               --disable-unittests
-}
-
-src_install() {
-       default
-       find "${D}"/usr -name '*.la' -delete || die "Pruning failed"
-}

diff --git a/media-libs/lastfmlib/lastfmlib-0.4.0-r2.ebuild 
b/media-libs/lastfmlib/lastfmlib-0.4.0-r2.ebuild
deleted file mode 100644
index 590503f295ec..000000000000
--- a/media-libs/lastfmlib/lastfmlib-0.4.0-r2.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools
-
-DESCRIPTION="C++ library to scrobble tracks on Last.fm"
-HOMEPAGE="https://github.com/dirkvdb/lastfmlib/releases";
-SRC_URI="https://github.com/dirkvdb/lastfmlib/archive/${P}.tar.gz";
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug syslog test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="net-misc/curl"
-DEPEND="
-       ${RDEPEND}
-       test? ( dev-cpp/gtest )
-"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
-       "${FILESDIR}/${P}-string-conv.patch"
-       "${FILESDIR}/${PN}-0.4.0-autotools-tests.patch"
-       "${FILESDIR}/${PN}-0.4.0-out-of-bounds-trim.patch"
-)
-
-src_prepare() {
-       default
-       eautoreconf
-}
-
-src_configure() {
-       CONFIG_SHELL="${BROOT}"/bin/bash econf \
-               $(use_enable debug) \
-               $(use_enable syslog logging) \
-               $(use_enable test unittests)
-}
-
-src_test() {
-       emake check VERBOSE=1
-}
-
-src_install() {
-       default
-       find "${D}"/usr -name '*.la' -delete || die "Pruning failed"
-}

diff --git a/media-libs/lastfmlib/metadata.xml 
b/media-libs/lastfmlib/metadata.xml
deleted file mode 100644
index a0f8a0146152..000000000000
--- a/media-libs/lastfmlib/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-       <maintainer type="project">
-               <email>[email protected]</email>
-               <name>Gentoo Sound project</name>
-       </maintainer>
-       <upstream>
-               <remote-id type="github">dirkvdb/lastfmlib</remote-id>
-       </upstream>
-</pkgmetadata>

diff --git a/profiles/package.mask b/profiles/package.mask
index 8182b59c1a82..ddb589347655 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -275,11 +275,6 @@ dev-go/sanitized-anchor-name
 # Removal on 2024-06-08.
 net-irc/ninja
 
-# Sam James <[email protected]> (2024-05-06)
-# Incompatible with latest last.fm APIs, hence useless.
-# Removal on 2024-06-05.  Bug #928115.
-media-libs/lastfmlib
-
 # Michał Górny <[email protected]> (2024-05-04)
 # A really bad quality package with a never-ending stream of unclear
 # test failures, and blocked keywording and stabilization bugs.

Reply via email to