summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Karbowski <slashbeast@gentoo.org>2021-03-12 13:30:00 +0100
committerPiotr Karbowski <slashbeast@gentoo.org>2021-03-12 13:31:00 +0100
commit873e7e1e35fb95e6c7bbfc3a4863a869c208e2d4 (patch)
treee173de9adee910aaac2419941e0f6489bbd7c2ca /media-sound/deadbeef
parentdev-libs/libdispatch: new package. (diff)
downloadgentoo-873e7e1e35fb95e6c7bbfc3a4863a869c208e2d4.tar.gz
gentoo-873e7e1e35fb95e6c7bbfc3a4863a869c208e2d4.tar.bz2
gentoo-873e7e1e35fb95e6c7bbfc3a4863a869c208e2d4.zip
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 <slashbeast@gentoo.org>
Diffstat (limited to 'media-sound/deadbeef')
-rw-r--r--media-sound/deadbeef/deadbeef-1.8.7-r1.ebuild (renamed from media-sound/deadbeef/deadbeef-1.8.7.ebuild)26
1 files changed, 23 insertions, 3 deletions
diff --git a/media-sound/deadbeef/deadbeef-1.8.7.ebuild b/media-sound/deadbeef/deadbeef-1.8.7-r1.ebuild
index d949a648226b..57149d1c35bf 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"