diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2023-10-21 11:16:04 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2023-10-21 11:17:05 +0300 |
commit | 2f41323db188741f7bd5f97bb20d7ce1c1f7ff2b (patch) | |
tree | 4fcf8d12fb3d84cd57ad6bb685912caf1f6a1a86 /media-sound | |
parent | games-engines/odamex: Bump to 10.4.0, drop old 10.3.0-r1 (diff) | |
download | gentoo-2f41323db188741f7bd5f97bb20d7ce1c1f7ff2b.tar.gz gentoo-2f41323db188741f7bd5f97bb20d7ce1c1f7ff2b.tar.bz2 gentoo-2f41323db188741f7bd5f97bb20d7ce1c1f7ff2b.zip |
media-sound/deadbeef: add 1.9.6_beta2
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/deadbeef/Manifest | 1 | ||||
-rw-r--r-- | media-sound/deadbeef/deadbeef-1.9.6_beta2.ebuild | 205 |
2 files changed, 206 insertions, 0 deletions
diff --git a/media-sound/deadbeef/Manifest b/media-sound/deadbeef/Manifest index f5c033632241..91349b32c142 100644 --- a/media-sound/deadbeef/Manifest +++ b/media-sound/deadbeef/Manifest @@ -1,2 +1,3 @@ DIST deadbeef-1.9.5.tar.bz2 5204015 BLAKE2B 45b9023807a5652c38f6cafd5ea0fca87e2872db264538f5c9d9ee4815281fe3f4e08eee5d43a083a67b3a9f646de24a90147d76f15622710d8f4adbdabe0c8d SHA512 c7a15f47fd8081a363e5cba732aa4ff4b1c311408728fbc5f7f47cf349bc112274a1d9fe0df8a58f09abf8f7656d914fb1baafa38fdf4dcb38fae7e1f70f682c DIST deadbeef-1.9.6_beta1.tar.bz2 5171353 BLAKE2B 71dcecb1c4e0621532c1d36c4e0f82538e36bfce27bacf746866b851accc6edead5adccbeecc2ba43171c8e56437c5703e43eb6c9d85edaf0e76206909326041 SHA512 2c324ae14513705cd50d0f8a44cea31abb98f8814e8c826e0da881e5fc508c8ac2c22fe2837d9fadcd943d7b5b0a4f6b80873db10903516cdacf958896a9070e +DIST deadbeef-1.9.6_beta2.tar.bz2 5194057 BLAKE2B 1b1904176fa0ad0ac32cf87d0558eaa865707ccad8c75b8520bbab5c70aefeaeeb8f65c894f2516a10832caa5729db50fc0405b09aed89709d749294b065de7a SHA512 c62f21f23c71ad83e8f073979c57e68b2814252833cf051ff899d07f4ac41b3d52a83327b8efa97fb2c5a0be1856d2513b22c8b209135c7f6d793a219a7461b9 diff --git a/media-sound/deadbeef/deadbeef-1.9.6_beta2.ebuild b/media-sound/deadbeef/deadbeef-1.9.6_beta2.ebuild new file mode 100644 index 000000000000..1386b82f85f1 --- /dev/null +++ b/media-sound/deadbeef/deadbeef-1.9.6_beta2.ebuild @@ -0,0 +1,205 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools xdg flag-o-matic toolchain-funcs plocale + +MY_PV=${PV/_/-} +DL_PV=$(ver_cut 1-2) + +DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000" +HOMEPAGE="https://deadbeef.sourceforge.io/" +SRC_URI="https://sourceforge.net/projects/${PN}/files/travis/linux/${DL_PV}/deadbeef-${MY_PV}.tar.bz2/download + -> ${P}.tar.bz2" +S="${WORKDIR}"/${PN}-${MY_PV} + +LICENSE=" + GPL-2 + LGPL-2.1 + wavpack? ( BSD ) +" +SLOT="0" +IUSE="aac alsa cdda converter cover dts ffmpeg flac +hotkeys lastfm libretro libsamplerate mp3 musepack nls notify +nullout opus oss pulseaudio pipewire sc68 shellexec +supereq vorbis wavpack" + +REQUIRED_USE=" + || ( alsa oss pulseaudio pipewire nullout ) +" + +DEPEND=" + >=app-accessibility/at-spi2-core-2.46.0 + dev-libs/glib:2 + dev-libs/jansson:= + dev-libs/libdispatch + net-misc/curl + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/pango + aac? ( media-libs/faad2 ) + alsa? ( media-libs/alsa-lib ) + cdda? ( + dev-libs/libcdio:= + media-libs/libcddb + media-sound/cdparanoia + ) + 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-libs/libpulse ) + pipewire? ( media-video/pipewire:= ) + vorbis? ( media-libs/libvorbis ) + wavpack? ( media-sound/wavpack ) +" + +RDEPEND="${DEPEND}" +BDEPEND=" + dev-util/intltool + sys-devel/clang + >=sys-devel/gettext-0.21 + sys-devel/llvm + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.9.6-drop-Werror.patch + "${FILESDIR}"/${PN}-1.9.6-update-gettext.patch + "${FILESDIR}"/${PN}-1.9.6-fix-desktop-launcher.patch +) + +src_prepare() { + default + + drop_from_linguas() { + sed "/${1}/d" -i "${S}/po/LINGUAS" || die + } + + drop_and_stub() { + einfo drop_and_stub "${1}" + rm -r "${1}" || die + mkdir "${1}" || die + cat > "${1}/Makefile.in" <<-EOF || die + all: nothing + install: nothing + nothing: + EOF + } + + plocale_for_each_disabled_locale drop_from_linguas || die + + eautopoint --force + eautoreconf + + # Get rid of bundled gettext. (Avoid build failures with musl) + 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 -r "${S}/plugins/rg_scanner/ebur128" || die +} + +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 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 pipewire)" + "$(use_enable sc68)" + "$(use_enable shellexec)" + "$(use_enable shellexec shellexecui)" + "$(use_enable lastfm lfm)" + "$(use_enable libretro)" + "$(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 + + # if compressed, help doesn't work + docompress -x /usr/share/doc/${PF} +} |