1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2025-12-25 16:02:30 +01:00

Added deadbeef again. Modified version from portage.

This commit is contained in:
2020-09-30 08:23:13 +02:00
parent 76949b0064
commit b051c12ccf
4 changed files with 206 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
AUX deadbeef-use-ffmpeg-plugin-for-ape-by-default.patch 492 BLAKE2B d6ed36829d7ed139c43b6aa65c940f07e3f023d0554c258a2557c528d75e85c7dd2ca57eecef56088383a3b7b0b4f12109eb899f2847b86953421e826777c954 SHA512 0cec1ae38cf48b3f2ea53f74a6348d0217b1b3f017b836489d5b520f09ad76b6526cd3add48ed23871bc86feb7f7ed697cf6a62164a202be1ecabfd947e895f6
DIST deadbeef-1.8.4.tar.gz 13049446 BLAKE2B a6c052b3b0aa1f74b49cf29be94e235d3dfd3d3f07ed9e1d05a4fc32036e591633eaff4ab59329cf6895828c9a674eec86b62e4818784db5f8e47eed089c80eb SHA512 18c54ae2c7931419ea06f3eb581cc8e704fa6eb87d330fc09f7295f4a8ef6e88b6f8c314223c34c321cd2a54f14cb6911add41602250c39c1b1c1edbf64d63b7
EBUILD deadbeef-1.8.4-r1.ebuild 3668 BLAKE2B dadb395cb23dc6b1c19a961cd717a50be8927bb8066980566f596c8121d256e277ab358530f545525ee6234f9488701e577d5bba8954bdecb3ea634e11776884 SHA512 48ab816ec9e01d043e68587a7656d7dee1bfde4e9d448bff3281128a10d82dcaade51c7011f533907cf4faf45e821e0d2cb3c236da6efa0b9d133263a2df6801
MISC metadata.xml 763 BLAKE2B 664d21988d78eddf9d8ca3338c56a2a5ee32c9a60be53661d70a3ac1ab112f8c11b4550a7798b25d410c640380eee7b601dc0e35a30ae76420fbf0c572e9610b SHA512 ed293609f50fe137dbb356d18a6e12128f1be514bd02696e4bd7e621963b7d62b917bcc3411284e2d418d84001b2c5bc8f2367a42d72faf53b4a27964c69210d

View File

@@ -0,0 +1,169 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools xdg l10n
DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000"
HOMEPAGE="https://deadbeef.sourceforge.io/"
SRC_URI="https://github.com/DeaDBeeF-Player/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="aac alsa cdda converter cover dts ffmpeg flac gtk3 +hotkeys mp3 musepack nls notify nullout opus oss pulseaudio shellexec sid +supereq threads wavepack wma vorbis"
REQUIRED_USE="
|| ( alsa oss pulseaudio nullout )
"
DEPEND="
x11-libs/gtk+:3
net-misc/curl:0=
dev-libs/jansson
aac? ( media-libs/faad2 )
alsa? ( media-libs/alsa-lib )
cdda? (
dev-libs/libcdio:0=
media-libs/libcddb
dev-libs/libcdio-paranoia:0=
)
cover? ( media-libs/imlib2[jpeg,png] )
dts? ( media-libs/libdca )
ffmpeg? ( media-video/ffmpeg )
flac? (
media-libs/flac
media-libs/libogg
)
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 )
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-util/intltool
sys-devel/gettext
"
PATCHES=(
"${FILESDIR}/deadbeef-use-ffmpeg-plugin-for-ape-by-default.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
}
l10n_for_each_disabled_locale_do 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 lfs mono2stereo psf sc60 shn soundtouch; do
drop_and_stub "${S}/plugins/${i}"
done
rm -rf "${S}/plugins/rg_scanner/ebur128"
}
src_configure () {
local myconf=(
"--disable-static"
"--disable-staticlink"
"--disable-portable"
"--disable-rpath"
"--disable-libmad"
"--disable-adplug"
"--disable-coreaudio"
"--disable-dumb"
"--disable-alac"
"--disable-ffap"
"--disable-gme"
"--disable-lfm"
"--disable-mms"
"--disable-mono2stereo"
"--disable-psf"
"--disable-rgscanner"
"--disable-sc68"
"--disable-shn"
"--disable-sndfile"
"--disable-soundtouch"
"--disable-src"
"--disable-tta"
"--disable-vfs-zip"
"--disable-vtx"
"--disable-wildmidi"
"$(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-imlib2)"
"$(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 shellexec)"
"$(use_enable shellexec shellexecui)"
"$(use_enable sid)"
"$(use_enable wavepack)"
"$(use_enable wma)"
"--enable-vfs-curl"
"--enable-shared"
"--enable-m3u"
"--enable-pltbrowser"
)
if use gtk3; then
myconf+=( --disable-gtk2 --enable-gtk3 )
else
myconf+=( --enable-gtk2 --disable-gtk3 )
fi
econf "${myconf[@]}"
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}

View File

@@ -0,0 +1,13 @@
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c
index da137069a..43cdcb301 100644
--- a/plugins/ffmpeg/ffmpeg.c
+++ b/plugins/ffmpeg/ffmpeg.c
@@ -75,7 +75,7 @@
static DB_decoder_t plugin;
static DB_functions_t *deadbeef;
-#define DEFAULT_EXTS "aa3;oma;ac3;vqf;amr;tak;dsf;dff;wma;3gp;mp4;m4a"
+#define DEFAULT_EXTS "aa3;oma;ac3;vqf;amr;tak;dsf;dff;wma;3gp;mp4;m4a;ape"
#define UNPOPULATED_EXTS_BY_FFMPEG \
"aif,aiff,afc,aifc,amr,asf," \
"wmv,wma,au,caf,webm," \

View File

@@ -0,0 +1,20 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>slashbeast@gentoo.org</email>
<name>Piotr Karbowski</name>
</maintainer>
<upstream>
<remote-id type="github">DeaDBeeF-Player/deadbeef</remote-id>
</upstream>
<use>
<flag name='converter'>File format converter</flag>
<flag name='cover'>Support for cover art</flag>
<flag name='hotkeys'>Keyboard shortcuts support</flag>
<flag name='notify'>Desktop notifications support</flag>
<flag name='nullout'>Dummy output driver</flag>
<flag name='shellexec'>Define custom shell commands that can be called on tracks</flag>
<flag name='supereq'>Enable equalizer</flag>
</use>
</pkgmetadata>