diff options
author | Piotr Karbowski <slashbeast@gentoo.org> | 2022-11-14 22:23:52 +0100 |
---|---|---|
committer | Piotr Karbowski <slashbeast@gentoo.org> | 2022-11-14 22:32:48 +0100 |
commit | 61aab73c618b1391695bda870e8e1581b0c7abff (patch) | |
tree | 5e4d061877b3d330162817db02c57e3c4b03c228 /media-sound | |
parent | media-sound/deadbeef: drop old. (diff) | |
download | gentoo-61aab73c618b1391695bda870e8e1581b0c7abff.tar.gz gentoo-61aab73c618b1391695bda870e8e1581b0c7abff.tar.bz2 gentoo-61aab73c618b1391695bda870e8e1581b0c7abff.zip |
media-sound/deadbeef: 1.9.3 version bump.
Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/deadbeef/Manifest | 1 | ||||
-rw-r--r-- | media-sound/deadbeef/deadbeef-1.9.3.ebuild | 191 |
2 files changed, 192 insertions, 0 deletions
diff --git a/media-sound/deadbeef/Manifest b/media-sound/deadbeef/Manifest index 85d1d702d27b..4abfa0a074e2 100644 --- a/media-sound/deadbeef/Manifest +++ b/media-sound/deadbeef/Manifest @@ -1,2 +1,3 @@ DIST deadbeef-1.8.8.tar.bz2 5083407 BLAKE2B 69fd2cbaf131b3e44b426163ce6a83479bb1aff0e088c4beea09d747750f6f20b1e297eab1dd1ae0446d2af0aaf28fe0cc7c9f9e3e73fe031d369ba2f5d809ca SHA512 399f0e70eca5e102a9e73ff03199c89c6f28f3e0da96e793316d1af83f00e71f09f6cc81a3fd0b0f0d52fe9e0195a3b9ffb0cf7e7708c3ea7085f33a5ec08b47 DIST deadbeef-1.9.2.tar.bz2 5105029 BLAKE2B fbf63f9df22fecacb2fadfe722856aeaa756bb75796a381822de4c033509f88680bb4ca458f4a270608396b3125911f974c283769da184401c4a152da49e2c27 SHA512 fa4298fb3a89b3891c2f0403b2c66e20f64206101ad44f53be5208a69b33d3de3e0ced329cf090c17a1a3c4f7b28920baf5f8c964df2b6bdea6095465d0a02d9 +DIST deadbeef-1.9.3.tar.bz2 5138392 BLAKE2B 3368c38246aae0ac125326b87c2f18523274564ad273c977620bc6e7af3ca50f111a03c3057ff62c068d8cc1942fb1f8b28639043bf9032e08f7ceb1dbb4b03a SHA512 54ef09b723df062bf35d435c959792247121ce0b0f0eebc568347ef8725bf3cdd7eee7b9c69f6443b0a2731354d96c33e18a9a9e7d4068d4de7733d1f77d4376 diff --git a/media-sound/deadbeef/deadbeef-1.9.3.ebuild b/media-sound/deadbeef/deadbeef-1.9.3.ebuild new file mode 100644 index 000000000000..504808ef7c02 --- /dev/null +++ b/media-sound/deadbeef/deadbeef-1.9.3.ebuild @@ -0,0 +1,191 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools xdg flag-o-matic toolchain-funcs plocale + +DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000" +HOMEPAGE="https://deadbeef.sourceforge.io/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE=" + GPL-2 + LGPL-2.1 + wavpack? ( BSD ) +" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" +IUSE="aac alsa cdda converter cover dts ffmpeg flac +hotkeys lastfm libsamplerate mp3 musepack nls notify +nullout opus oss pulseaudio sc68 shellexec +supereq threads vorbis wavpack" + +REQUIRED_USE=" + || ( alsa oss pulseaudio nullout ) +" + +DEPEND=" + x11-libs/gtk+:3 + net-misc/curl:= + dev-libs/jansson:= + aac? ( media-libs/faad2 ) + alsa? ( media-libs/alsa-lib ) + cdda? ( + dev-libs/libcdio:= + media-libs/libcddb + dev-libs/libcdio-paranoia:= + ) + cover? ( + media-libs/imlib2[jpeg,png] + ) + dts? ( media-libs/libdca ) + ffmpeg? ( media-video/ffmpeg ) + flac? ( + media-libs/flac:= + media-libs/libogg + ) + libsamplerate? ( media-libs/libsamplerate ) + mp3? ( media-sound/mpg123 ) + musepack? ( media-sound/musepack-tools ) + nls? ( virtual/libintl ) + notify? ( + sys-apps/dbus + ) + opus? ( media-libs/opusfile ) + pulseaudio? ( media-sound/pulseaudio ) + vorbis? ( media-libs/libvorbis ) + wavpack? ( media-sound/wavpack ) + dev-libs/libdispatch:= +" + +RDEPEND="${DEPEND}" +BDEPEND=" + dev-util/intltool + sys-devel/gettext + sys-devel/clang + sys-devel/llvm + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}/deadbeef-1.9.2-drop-Werror.patch" +) + +src_prepare() { + default + + drop_from_linguas() { + sed "/${1}/d" -i "${S}/po/LINGUAS" || die + } + + drop_and_stub() { + rm -rf "${1}" + mkdir "${1}" + cat > "${1}/Makefile.in" <<-EOF + all: nothing + install: nothing + nothing: + EOF + } + + plocale_for_each_disabled_locale drop_from_linguas || die + + eautopoint --force + eautoreconf + + # Get rid of bundled gettext. + drop_and_stub "${S}/intl" + + # Plugins that are undesired for whatever reason, candidates for unbundling and such. + for i in adplug alac dumb ffap mms gme mono2stereo psf shn sid soundtouch wma; do + drop_and_stub "${S}/plugins/${i}" + done + + rm -rf "${S}/plugins/rg_scanner/ebur128" +} + +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-staticlink" + "--disable-portable" + "--disable-rpath" + + "--disable-libmad" + "--disable-gtk2" + "--disable-adplug" + "--disable-coreaudio" + "--disable-dumb" + "--disable-alac" + "--disable-ffap" + "--disable-gme" + "--disable-mms" + "--disable-mono2stereo" + "--disable-psf" + "--disable-rgscanner" + "--disable-shn" + "--disable-sid" + "--disable-sndfile" + "--disable-soundtouch" + "--disable-tta" + "--disable-vfs-zip" + "--disable-vtx" + "--disable-wildmidi" + "--disable-wma" + + "$(use_enable alsa)" + "$(use_enable oss)" + "$(use_enable pulseaudio pulse)" + "$(use_enable mp3)" + "$(use_enable mp3 libmpg123)" + "$(use_enable nls)" + "$(use_enable vorbis)" + "$(use_enable threads)" + "$(use_enable flac)" + "$(use_enable supereq)" + "$(use_enable cdda)" + "$(use_enable cdda cdda-paranoia)" + "$(use_enable aac)" + "$(use_enable cover artwork)" + "$(use_enable cover artwork-network)" + "$(use_enable dts dca)" + "$(use_enable ffmpeg)" + "$(use_enable converter)" + "$(use_enable musepack)" + "$(use_enable notify)" + "$(use_enable nullout)" + "$(use_enable opus)" + "$(use_enable pulseaudio pulse)" + "$(use_enable sc68)" + "$(use_enable shellexec)" + "$(use_enable shellexec shellexecui)" + "$(use_enable lastfm lfm)" + "$(use_enable libsamplerate src)" + "$(use_enable wavpack)" + + "--enable-gtk3" + "--enable-vfs-curl" + "--enable-shared" + "--enable-m3u" + "--enable-pltbrowser" + ) + + econf "${myconf[@]}" +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} |