Gentoo Archives: gentoo-commits

From: Ian Whyman <thev00d00@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/lastfmlib/files/, media-libs/lastfmlib/
Date: Mon, 28 Dec 2020 11:39:39
Message-Id: 1609155564.0d38fec50a3f30afbf08a433f6778d9a6b69fbcc.thev00d00@gentoo
1 commit: 0d38fec50a3f30afbf08a433f6778d9a6b69fbcc
2 Author: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 11:39:24 2020 +0000
4 Commit: Ian Whyman <thev00d00 <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 11:39:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d38fec5
7
8 media-libs/lastfmlib: Fix build failure
9
10 Thanks to Steven Newbury for the patch.
11
12 Fixes: 664760
13 Package-Manager: Portage-3.0.11, Repoman-3.0.2
14 Signed-off-by: Ian Whyman <thev00d00 <AT> gentoo.org>
15
16 .../files/lastfmlib-0.4.0-string-conv.patch | 20 +++++++++++++
17 media-libs/lastfmlib/lastfmlib-0.4.0-r1.ebuild | 34 ++++++++++++++++++++++
18 2 files changed, 54 insertions(+)
19
20 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
21 new file mode 100644
22 index 00000000000..381e731d9f6
23 --- /dev/null
24 +++ b/media-libs/lastfmlib/files/lastfmlib-0.4.0-string-conv.patch
25 @@ -0,0 +1,20 @@
26 +# Fix string conversions
27 +# Author: Steven Newbury <steve@××××××××××××.uk>
28 +# Gentoo Bug: 664760
29 +--- ./lastfmlib/utils/stringoperations.h~ 2020-02-27 11:50:53.000000000 +0000
30 ++++ ./lastfmlib/utils/stringoperations.h 2020-02-27 11:55:49.228128570 +0000
31 +@@ -53,14 +53,6 @@
32 + ss << numeric;
33 + return ss.str();
34 + }
35 +-
36 +- template<typename T>
37 +- inline std::string toWstring(T& numeric)
38 +- {
39 +- std::wstringstream ss;
40 +- ss << numeric;
41 +- return ss.str();
42 +- }
43 + }
44 +
45 + #endif
46
47 diff --git a/media-libs/lastfmlib/lastfmlib-0.4.0-r1.ebuild b/media-libs/lastfmlib/lastfmlib-0.4.0-r1.ebuild
48 new file mode 100644
49 index 00000000000..f1029063647
50 --- /dev/null
51 +++ b/media-libs/lastfmlib/lastfmlib-0.4.0-r1.ebuild
52 @@ -0,0 +1,34 @@
53 +# Copyright 1999-2020 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +DESCRIPTION="C++ library to scrobble tracks on Last.fm"
59 +HOMEPAGE="https://github.com/dirkvdb/lastfmlib/releases"
60 +SRC_URI="https://github.com/dirkvdb/lastfmlib/archive/lastfmlib-0.4.0.tar.gz"
61 +
62 +LICENSE="GPL-2+"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~ppc ~x86"
65 +IUSE="debug syslog"
66 +
67 +RDEPEND="net-misc/curl"
68 +DEPEND="${RDEPEND}
69 + virtual/pkgconfig"
70 +
71 +PATCHES=(
72 + "${FILESDIR}/${P}-string-conv.patch"
73 +)
74 +
75 +src_configure() {
76 + econf \
77 + --disable-static \
78 + $(use_enable debug) \
79 + $(use_enable syslog logging) \
80 + --disable-unittests
81 +}
82 +
83 +src_install() {
84 + default
85 + find "${D}"/usr -name '*.la' -delete || die "Pruning failed"
86 +}