From 873e7e1e35fb95e6c7bbfc3a4863a869c208e2d4 Mon Sep 17 00:00:00 2001 From: Piotr Karbowski Date: Fri, 12 Mar 2021 13:30:00 +0100 Subject: [PATCH] media-sound/deadbeef: 1.8.7-r1: Force clang; libdispatch dep added. Upstream stated that from 1.8.5 onward the GCC is no longer supported. Because of that, clang will be enforced instead. notify and lastfm plugins now requires libdispatch. Closes: https://bugs.gentoo.org/775551 Signed-off-by: Piotr Karbowski --- ...-1.8.7.ebuild => deadbeef-1.8.7-r1.ebuild} | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) rename media-sound/deadbeef/{deadbeef-1.8.7.ebuild => deadbeef-1.8.7-r1.ebuild} (88%) diff --git a/media-sound/deadbeef/deadbeef-1.8.7.ebuild b/media-sound/deadbeef/deadbeef-1.8.7-r1.ebuild similarity index 88% rename from media-sound/deadbeef/deadbeef-1.8.7.ebuild rename to media-sound/deadbeef/deadbeef-1.8.7-r1.ebuild index d949a648226b0..57149d1c35bf7 100644 --- a/media-sound/deadbeef/deadbeef-1.8.7.ebuild +++ b/media-sound/deadbeef/deadbeef-1.8.7-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 2020 Gentoo Authors +# Copyright 2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit autotools xdg l10n +inherit autotools xdg l10n flag-o-matic DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000" HOMEPAGE="https://deadbeef.sourceforge.io/" @@ -43,17 +43,23 @@ DEPEND=" mp3? ( media-sound/mpg123 ) musepack? ( media-sound/musepack-tools ) nls? ( virtual/libintl ) - notify? ( sys-apps/dbus ) + notify? ( + sys-apps/dbus + dev-libs/libdispatch + ) opus? ( media-libs/opusfile ) pulseaudio? ( media-sound/pulseaudio ) vorbis? ( media-libs/libvorbis ) wavpack? ( media-sound/wavpack ) + lastfm? ( dev-libs/libdispatch ) " RDEPEND="${DEPEND}" BDEPEND=" dev-util/intltool sys-devel/gettext + sys-devel/clang + sys-devel/llvm " PATCHES=( @@ -94,6 +100,20 @@ src_prepare() { } src_configure () { + if ! tc-is-clang; then + AR=llvm-ar + CC=${CHOST}-clang + CXX=${CHOST}-clang++ + NM=llvm-nm + RANLIB=llvm-ranlib + + strip-unsupported-flags + fi + + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG + local myconf=( "--disable-static" "--disable-staticlink"