From 57a306006bad6accf5bfd63134385465893027b0 Mon Sep 17 00:00:00 2001 From: Jakov Smolić Date: Tue, 5 Oct 2021 08:39:58 +0200 Subject: media-sound/snapcast: Add missing boost dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/807957 Signed-off-by: Jakov Smolić --- media-sound/snapcast/snapcast-0.25.0-r1.ebuild | 73 ++++++++++++++++++++++++++ media-sound/snapcast/snapcast-0.25.0.ebuild | 72 ------------------------- 2 files changed, 73 insertions(+), 72 deletions(-) create mode 100644 media-sound/snapcast/snapcast-0.25.0-r1.ebuild delete mode 100644 media-sound/snapcast/snapcast-0.25.0.ebuild diff --git a/media-sound/snapcast/snapcast-0.25.0-r1.ebuild b/media-sound/snapcast/snapcast-0.25.0-r1.ebuild new file mode 100644 index 000000000000..093e6dafcf79 --- /dev/null +++ b/media-sound/snapcast/snapcast-0.25.0-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~x86" +IUSE="+client +expat +flac +opus +server tremor +vorbis +zeroconf" +REQUIRED_USE="|| ( server client )" + +RDEPEND=" + dev-libs/boost:= + client? ( + acct-user/snapclient + media-libs/alsa-lib + ) + 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}"/${PN}-0.20.0-gcc-11.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 +} diff --git a/media-sound/snapcast/snapcast-0.25.0.ebuild b/media-sound/snapcast/snapcast-0.25.0.ebuild deleted file mode 100644 index b27a764a85cf..000000000000 --- a/media-sound/snapcast/snapcast-0.25.0.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -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 ~x86" -IUSE="+client +expat +flac +opus +server tremor +vorbis +zeroconf" -REQUIRED_USE="|| ( server client )" - -RDEPEND=" - client? ( - acct-user/snapclient - media-libs/alsa-lib - ) - 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}"/${PN}-0.20.0-gcc-11.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 -} -- cgit v1.2.3-65-gdbad