[gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/

2023-04-03 Thread Jakov Smolić
commit: 646dce408a86412bc43f60aab1f1c6bed2253a04
Author: Jakov Smolić  gentoo  org>
AuthorDate: Mon Apr  3 07:30:40 2023 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Mon Apr  3 07:30:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=646dce40

media-sound/snapcast: drop 0.26.0-r2

Signed-off-by: Jakov Smolić  gentoo.org>

 media-sound/snapcast/Manifest  |  1 -
 .../files/snapcast-0.26.0-boost-1.81.patch | 51 ---
 media-sound/snapcast/snapcast-0.26.0-r2.ebuild | 73 --
 3 files changed, 125 deletions(-)

diff --git a/media-sound/snapcast/Manifest b/media-sound/snapcast/Manifest
index 4a3bb3e7997b..d45a494a4445 100644
--- a/media-sound/snapcast/Manifest
+++ b/media-sound/snapcast/Manifest
@@ -1,2 +1 @@
-DIST snapcast-0.26.0.tar.gz 1537036 BLAKE2B 
f6ef4393f3601c749140a9505f57515582147aacf25072d9114491aafb108c202c3631142171858d2b8f914be8105bbd9c66054c6d36d0b4a443e5b9a642cf51
 SHA512 
fc7885e42a11794e33314544083251ffbb91a0cf160c6d4b854c56f57ffe9f38f75c7594478c9edabfe9076959938cd8de891dd456e66202692de664a75cde71
 DIST snapcast-0.27.0.tar.gz 1566337 BLAKE2B 
77183cd2496beaf6808f8c1ff030cdb1e483c86ebafd57d0c75daa2dfe31030f0dd9704db40e2c0780b85c2b346e121ccd16c1cb75dea1f80e9834d3ae100fb8
 SHA512 
fd86f5b0d38bf308eb9cc1f3024676471176355a8cc91ee8c8d2dfe1aa0cde99fc7636133071b50304fe66ea42dee996e0088e013be7fa703f21c5bc2a35cfdd

diff --git a/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch 
b/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch
deleted file mode 100644
index d9d691060b42..
--- a/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-https://bugs.gentoo.org/886585
-https://github.com/badaix/snapcast/commit/853c3f622ff2262b56681ee04dd20b4266c72493
-https://github.com/badaix/snapcast/issues/1082
-
-From 853c3f622ff2262b56681ee04dd20b4266c72493 Mon Sep 17 00:00:00 2001
-From: Rudi Heitbaum 
-Date: Wed, 21 Dec 2022 11:31:29 +
-Subject: [PATCH] server/control_session_http: update for boost 1.81.0
-
-Signed-off-by: Rudi Heitbaum 
 a/server/control_session_http.cpp
-+++ b/server/control_session_http.cpp
-@@ -127,8 +127,8 @@ boost::beast::string_view 
mime_type(boost::beast::string_view path)
- std::string path_cat(boost::beast::string_view base, 
boost::beast::string_view path)
- {
- if (base.empty())
--return path.to_string();
--std::string result = base.to_string();
-+return static_cast(path);
-+std::string result = static_cast(base);
- char constexpr path_separator = '/';
- if (result.back() == path_separator)
- result.resize(result.size() - 1);
-@@ -171,7 +171,7 @@ void 
ControlSessionHttp::handle_request(http::request(why);
- res.prepare_payload();
- return res;
- };
-@@ -182,7 +182,7 @@ void 
ControlSessionHttp::handle_request(http::request(target) + "' 
was not found.";
- res.prepare_payload();
- return res;
- };
-@@ -204,7 +204,7 @@ void 
ControlSessionHttp::handle_request(http::request(what) 
+ "'";
- res.prepare_payload();
- return res;
- };
-

diff --git a/media-sound/snapcast/snapcast-0.26.0-r2.ebuild 
b/media-sound/snapcast/snapcast-0.26.0-r2.ebuild
deleted file mode 100644
index ff1b0b44e885..
--- a/media-sound/snapcast/snapcast-0.26.0-r2.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Synchronous multi-room audio player"
-HOMEPAGE="https://github.com/badaix/snapcast;
-SRC_URI="https://github.com/badaix/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64 ~arm ppc ppc64 ~riscv x86"
-IUSE="+client +expat +flac +opus +server tremor +vorbis +zeroconf"
-REQUIRED_USE="|| ( server client )"
-
-RDEPEND="
-   dev-libs/boost:=
-   media-libs/alsa-lib
-   client? ( acct-user/snapclient )
-   expat? ( dev-libs/expat )
-   flac? ( media-libs/flac:= )
-   opus? ( media-libs/opus )
-   server? (
-   acct-group/snapserver
-   acct-user/snapserver
-   )
-   tremor? ( media-libs/tremor )
-   vorbis? ( media-libs/libvorbis )
-   zeroconf? ( net-dns/avahi[dbus] )
-"
-DEPEND="
-   ${RDEPEND}
-   >=dev-cpp/aixlog-1.2.1
-   >=dev-cpp/asio-1.12.1
-   >=dev-cpp/popl-1.2.0
-"
-
-PATCHES=(
-   "${FILESDIR}"/${P}-boost-1.81.patch
-)
-
-src_configure() {
-   local mycmakeargs=(
-   -DBUILD_CLIENT=$(usex client)
-   -DBUILD_WITH_EXPAT=$(usex expat)
-   -DBUILD_WITH_FLAC=$(usex flac)
-   -DBUILD_WITH_OPUS=$(usex opus)
-   -DBUILD_SERVER=$(usex server)
-   -DBUILD_STATIC_LIBS=no
-   -DBUILD_TESTS=no
-   -DBUILD_WITH_TREMOR=$(usex tremor)
-   

[gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/

2022-12-29 Thread Sam James
commit: 08c2a7b554707f11b129914ff64c78256a782ffd
Author: Sam James  gentoo  org>
AuthorDate: Thu Dec 29 23:23:18 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Dec 29 23:23:18 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08c2a7b5

media-sound/snapcast: fix build w/ boost-1.81

Closes: https://bugs.gentoo.org/886585
Signed-off-by: Sam James  gentoo.org>

 .../files/snapcast-0.26.0-boost-1.81.patch | 51 +++
 media-sound/snapcast/snapcast-0.26.0-r2.ebuild | 73 ++
 2 files changed, 124 insertions(+)

diff --git a/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch 
b/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch
new file mode 100644
index ..d9d691060b42
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.26.0-boost-1.81.patch
@@ -0,0 +1,51 @@
+https://bugs.gentoo.org/886585
+https://github.com/badaix/snapcast/commit/853c3f622ff2262b56681ee04dd20b4266c72493
+https://github.com/badaix/snapcast/issues/1082
+
+From 853c3f622ff2262b56681ee04dd20b4266c72493 Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum 
+Date: Wed, 21 Dec 2022 11:31:29 +
+Subject: [PATCH] server/control_session_http: update for boost 1.81.0
+
+Signed-off-by: Rudi Heitbaum 
+--- a/server/control_session_http.cpp
 b/server/control_session_http.cpp
+@@ -127,8 +127,8 @@ boost::beast::string_view 
mime_type(boost::beast::string_view path)
+ std::string path_cat(boost::beast::string_view base, 
boost::beast::string_view path)
+ {
+ if (base.empty())
+-return path.to_string();
+-std::string result = base.to_string();
++return static_cast(path);
++std::string result = static_cast(base);
+ char constexpr path_separator = '/';
+ if (result.back() == path_separator)
+ result.resize(result.size() - 1);
+@@ -171,7 +171,7 @@ void 
ControlSessionHttp::handle_request(http::request(why);
+ res.prepare_payload();
+ return res;
+ };
+@@ -182,7 +182,7 @@ void 
ControlSessionHttp::handle_request(http::request(target) + "' 
was not found.";
+ res.prepare_payload();
+ return res;
+ };
+@@ -204,7 +204,7 @@ void 
ControlSessionHttp::handle_request(http::request(what) 
+ "'";
+ res.prepare_payload();
+ return res;
+ };
+

diff --git a/media-sound/snapcast/snapcast-0.26.0-r2.ebuild 
b/media-sound/snapcast/snapcast-0.26.0-r2.ebuild
new file mode 100644
index ..cd5cede0e1b4
--- /dev/null
+++ b/media-sound/snapcast/snapcast-0.26.0-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Synchronous multi-room audio player"
+HOMEPAGE="https://github.com/badaix/snapcast;
+SRC_URI="https://github.com/badaix/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~x86"
+IUSE="+client +expat +flac +opus +server tremor +vorbis +zeroconf"
+REQUIRED_USE="|| ( server client )"
+
+RDEPEND="
+   dev-libs/boost:=
+   media-libs/alsa-lib
+   client? ( acct-user/snapclient )
+   expat? ( dev-libs/expat )
+   flac? ( media-libs/flac:= )
+   opus? ( media-libs/opus )
+   server? (
+   acct-group/snapserver
+   acct-user/snapserver
+   )
+   tremor? ( media-libs/tremor )
+   vorbis? ( media-libs/libvorbis )
+   zeroconf? ( net-dns/avahi[dbus] )
+"
+DEPEND="
+   ${RDEPEND}
+   >=dev-cpp/aixlog-1.2.1
+   >=dev-cpp/asio-1.12.1
+   >=dev-cpp/popl-1.2.0
+"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-boost-1.81.patch
+)
+
+src_configure() {
+   local mycmakeargs=(
+   -DBUILD_CLIENT=$(usex client)
+   -DBUILD_WITH_EXPAT=$(usex expat)
+   -DBUILD_WITH_FLAC=$(usex flac)
+   -DBUILD_WITH_OPUS=$(usex opus)
+   -DBUILD_SERVER=$(usex server)
+   -DBUILD_STATIC_LIBS=no
+   -DBUILD_TESTS=no
+   -DBUILD_WITH_TREMOR=$(usex tremor)
+   -DBUILD_WITH_VORBIS=$(usex vorbis)
+   -DBUILD_WITH_AVAHI=$(usex zeroconf)
+   -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+   )
+
+   cmake_src_configure
+}
+
+src_install() {
+   cmake_src_install
+
+   for bin in server client ; do
+   if use ${bin} ; then
+   doman "${bin}/snap${bin}.1"
+
+   newconfd "${FILESDIR}/snap${bin}.confd" "snap${bin}"
+   newinitd "${FILESDIR}/snap${bin}.initd" "snap${bin}"
+   fi
+   done
+}



[gentoo-commits] repo/gentoo:master commit in: media-sound/snapcast/files/, media-sound/snapcast/

2021-04-29 Thread Michał Górny
commit: 87e3400916e51d3bcf26103ec35ad49d4cd867c3
Author: Jakov Smolic  sartura  hr>
AuthorDate: Thu Apr 29 11:01:13 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Apr 29 11:46:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87e34009

media-sound/snapcast: Fix compilation with gcc-11

Closes: https://bugs.gentoo.org/786303
Signed-off-by: Jakov Smolic  sartura.hr>
Signed-off-by: Michał Górny  gentoo.org>

 media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch | 11 +++
 media-sound/snapcast/snapcast-0.20.0.ebuild |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch 
b/media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch
new file mode 100644
index 000..7ae562aaef0
--- /dev/null
+++ b/media-sound/snapcast/files/snapcast-0.20.0-gcc-11.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/786303
+--- a/common/message/message.hpp
 b/common/message/message.hpp
+@@ -29,6 +29,7 @@
+ #include 
+ #endif
+ #include 
++#include 
+ 
+ /*
+ template >

diff --git a/media-sound/snapcast/snapcast-0.20.0.ebuild 
b/media-sound/snapcast/snapcast-0.20.0.ebuild
index 6228cd7ec66..8a3f6d75f94 100644
--- a/media-sound/snapcast/snapcast-0.20.0.ebuild
+++ b/media-sound/snapcast/snapcast-0.20.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -41,6 +41,8 @@ DEPEND="${RDEPEND}
>=dev-cpp/asio-1.12.1
>=dev-cpp/popl-1.2.0"
 
+PATCHES=( "${FILESDIR}"/${P}-gcc-11.patch )
+
 src_configure() {
local mycmakeargs=(
-DBUILD_CLIENT=$(usex client)