Skip to content

Commit

Permalink
deadbeef bump
Browse files Browse the repository at this point in the history
  • Loading branch information
KARBOWSKI Piotr committed Mar 26, 2016
1 parent 1e1ca39 commit 4e8bf7f
Show file tree
Hide file tree
Showing 2 changed files with 248 additions and 0 deletions.
1 change: 1 addition & 0 deletions media-sound/deadbeef/Manifest
Expand Up @@ -3,3 +3,4 @@ DIST deadbeef-0.5.2.tar.bz2 2872396 SHA256 e030dad0ba23876fca214f679f27ceca89941
DIST deadbeef-0.5.5.tar.bz2 3219511 SHA256 d9d01276f07e90155da37fb257c744af4accb4da17da048ce5604cb1174750b7
DIST deadbeef-0.6.0.tar.bz2 3433789 SHA256 78a684bd50f3bae2cb3913a7d9c1b06549d0718b37f923fbb0ea523fd9e7826a SHA512 3f6add4998dd0fc67c94c289905700144153ae2dc8c7e6cfa1bbfab7844c7dfe3985d5ff87909d9d0b1abe4926b5498055389ab74e83cc7db63f254081d7e666 WHIRLPOOL a8fb43cef99b030e2c79e54533516d142ef805e0d3f30639d13eb246dc9a1b8c71500f23d61d400ddd0776857d6cac4daf0d1d7656e21de249cd36d077d97fd4
DIST deadbeef-0.6.1.tar.bz2 3429924 SHA256 362b7d496eca487a09fa919e1b03ffb3c01034f1e2b05f09ea5a47aaa2f0af45 SHA512 0812f2d6b2ebc2ef1e65af9912546fa769e0e6d090f15cf3f2c4170bfa5aab03545cd63f26dcdcde905416801c0b56bd190cd1792f29eabaa318db212db99f90 WHIRLPOOL 2ac6f4abd70625c4f0898cb07e7b5ef645755136aee4b424af5e9d11c00b290dc75a467288e45bf35f2d25fc51fd76c12c58a58c966ea6fdf9ae4e1cea512339
DIST deadbeef-0.7.1.tar.bz2 4733295 SHA256 0389a557914119f8d8cbd8d2f2b7a715ae8f9994b755783e93e1195c5b271b59 SHA512 bd9cdc0c04807a7791418ab984849e65de667bfc30231182e497220ef0d91b2fcf53083fc5575d91609d06e70586e461bb06ccaca6b330cdf68007efb9a20bfc WHIRLPOOL a621390ee160593f7415a5e86646ab723ea5853d546091123a0b55e950c4e314b8d07f9335df6b32b97b765d51c2c013eb14490152c78cd05db23e2b27225acd
247 changes: 247 additions & 0 deletions media-sound/deadbeef/deadbeef-0.7.1.ebuild
@@ -0,0 +1,247 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="5"

PLOCALES="be bg bn ca cs da de el en_GB es et eu fa fi fr gl he hr hu id it ja kk km lg
lt nl pl pt pt_BR ro ru si_LK sk sl sr sr@latin sv te tr ug uk vi zh_CN zh_TW"

PLOCALE_BACKUP="en_GB"

inherit autotools eutils fdo-mime gnome2-utils l10n versionator

SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

KEYWORDS="~amd64 ~x86"

DESCRIPTION="foobar2k-like music player"
HOMEPAGE="http://deadbeef.sourceforge.net"

LICENSE="BSD
UNICODE
ZLIB
aac? ( GPL-1 GPL-2 )
adplug? ( LGPL-2.1 ZLIB )
alac? ( MIT GPL-2 )
alsa? ( GPL-2 )
cdda? ( GPL-2 LGPL-2 GPL-3 )
cdparanoia? ( GPL-2 )
cover? ( ZLIB )
converter? ( GPL-2 )
curl? ( curl ZLIB )
dts? ( GPL-2 )
dumb? ( DUMB-0.9.3 ZLIB )
equalizer? ( GPL-2 )
ffmpeg? ( GPL-2 )
flac? ( BSD )
gme? ( LGPL-2.1 )
gtk2? ( GPL-2 )
gtk3? ( GPL-2 )
hotkeys? ( ZLIB )
lastfm? ( GPL-2 )
libav? ( GPL-2 )
libnotify? ( GPL-2 )
libsamplerate? ( GPL-2 )
m3u? ( ZLIB )
mac? ( GPL-2 )
mad? ( GPL-2 ZLIB )
midi? ( LGPL-2.1 ZLIB )
mms? ( GPL-2 ZLIB )
mono2stereo? ( ZLIB )
mpg123? ( LGPL-2.1 ZLIB )
musepack? ( BSD ZLIB )
nullout? ( ZLIB )
oss? ( GPL-2 )
playlist-browser? ( ZLIB )
psf? ( BSD GPL-1 MAME ZLIB )
pulseaudio? ( GPL-2 )
shell-exec? ( GPL-2 )
shn? ( shorten ZLIB )
sid? ( GPL-2 )
sndfile? ( GPL-2 LGPL-2 )
tta? ( BSD ZLIB )
vorbis? ( BSD ZLIB )
vtx? ( GPL-2 ZLIB )
wavpack? ( BSD )
wma? ( GPL-2 LGPL-2 ZLIB )
zip? ( ZLIB )"

SLOT="0"

IUSE="+alsa +flac +gtk2 +hotkeys +m3u +mad +mp3 +sndfile +vorbis
aac adplug alac cdda cdparanoia converter cover cover-imlib2 cover-network curl dts dumb equalizer
ffmpeg gme gtk3 lastfm libav libnotify libsamplerate mac midi mms mono2stereo mpg123 musepack nls
nullout oss playlist-browser psf pulseaudio sc68 shell-exec shn sid tta unity vtx wavpack wma zip"

REQUIRED_USE="cdparanoia? ( cdda )
converter? ( || ( gtk2 gtk3 ) )
cover-imlib2? ( cover )
cover-network? ( cover curl )
cover? ( || ( gtk2 gtk3 ) )
ffmpeg? ( !libav )
lastfm? ( curl )
mp3? ( || ( mad mpg123 ) )
playlist-browser? ( || ( gtk2 gtk3 ) )
shell-exec? ( || ( gtk2 gtk3 ) )
|| ( alsa oss pulseaudio nullout )"

PDEPEND="media-plugins/deadbeef-plugins-meta:0"

RDEPEND="dev-libs/glib:2
aac? ( media-libs/faad2:0 )
adplug? ( media-libs/adplug:0 )
alsa? ( media-libs/alsa-lib:0 )
alac? ( media-libs/faad2:0 )
cdda? ( dev-libs/libcdio:0=
media-libs/libcddb:0 )
cdparanoia? ( dev-libs/libcdio-paranoia:0 )
cover? ( cover-imlib2? ( media-libs/imlib2:0 )
media-libs/libpng:0=
virtual/jpeg:0
x11-libs/gdk-pixbuf:2[jpeg] )
curl? ( net-misc/curl:0 )
ffmpeg? ( media-video/ffmpeg:0= )
libav? ( media-video/libav:0= )
flac? ( media-libs/flac:0 )
gme? ( sys-libs/zlib:0 )
gtk2? ( dev-libs/atk:0
dev-libs/jansson:0
x11-libs/cairo:0
x11-libs/gtk+:2
x11-libs/pango:0 )
gtk3? ( dev-libs/jansson:0
x11-libs/gtk+:3 )
hotkeys? ( x11-libs/libX11:0 )
libnotify? ( sys-apps/dbus:0 )
libsamplerate? ( media-libs/libsamplerate:0 )
mad? ( media-libs/libmad:0 )
midi? ( media-sound/timidity-freepats:0 )
mpg123? ( media-sound/mpg123:0 )
psf? ( sys-libs/zlib:0 )
pulseaudio? ( media-sound/pulseaudio:0 )
sndfile? ( media-libs/libsndfile:0 )
vorbis? ( media-libs/libogg:0
media-libs/libvorbis:0 )
wavpack? ( media-sound/wavpack:0 )
zip? ( dev-libs/libzip:0 )"

DEPEND="${RDEPEND}
virtual/pkgconfig:0
nls? ( dev-util/intltool:0
virtual/libintl:0 )
mac? ( x86? ( dev-lang/yasm:0 )
amd64? ( dev-lang/yasm:0 ) )"

S="${WORKDIR}/${P}"

src_prepare() {
if ! use_if_iuse linguas_pt_BR && use_if_iuse linguas_ru ; then
epatch "${FILESDIR}/${PN}-remove-pt_br-help-translation.patch"
rm -v "${S}/translation/help.pt_BR.txt" || die
fi

if ! use_if_iuse linguas_ru && use_if_iuse linguas_pt_BR ; then
epatch "${FILESDIR}/${PN}-remove-ru-help-translation.patch"
rm -v "${S}/translation/help.ru.txt" || die
fi

if ! use_if_iuse linguas_pt_BR && ! use_if_iuse linguas_ru ; then
epatch "${FILESDIR}/${PN}-remove-pt_br-and-ru-help-translation.patch"
rm -v "${S}/translation/help.pt_BR.txt" "${S}/translation/help.ru.txt" || die
fi

if use midi ; then
# set default gentoo path
sed -e 's;/etc/timidity++/timidity-freepats.cfg;/usr/share/timidity/freepats/timidity.cfg;g' \
-i "${S}/plugins/wildmidi/wildmidiplug.c" || die
fi

if ! use unity ; then
# remove unity trash
epatch "${FILESDIR}/${PN}-0.7.0-remove-unity-trash.patch"
fi

config_rpath_update "${S}/config.rpath"
eautoreconf
}

src_configure() {
econf --disable-coreaudio \
--disable-portable \
--disable-static \
--docdir=/usr/share/${PN} \
$(use_enable aac) \
$(use_enable adplug) \
$(use_enable alac) \
$(use_enable alsa) \
$(use_enable cdda) \
$(use_enable cdparanoia cdda-paranoia) \
$(use_enable converter) \
$(use_enable cover artwork) \
$(use_enable cover-imlib2 artwork-imlib2) \
$(use_enable cover-network artwork-network) \
$(use_enable curl vfs-curl) \
$(use_enable dts dca) \
$(use_enable dumb) \
$(use_enable equalizer supereq) \
$(use_enable ffmpeg) \
$(use_enable flac) \
$(use_enable gme) \
$(use_enable gtk2) \
$(use_enable gtk3) \
$(use_enable hotkeys) \
$(use_enable lastfm lfm) \
$(use_enable libav ffmpeg) \
$(use_enable libnotify notify) \
$(use_enable libsamplerate src) \
$(use_enable m3u) \
$(use_enable mac ffap) \
$(use_enable mad libmad) \
$(use_enable midi wildmidi) \
$(use_enable mms) \
$(use_enable mono2stereo) \
$(use_enable mpg123 libmpg123) \
$(use_enable musepack) \
$(use_enable nls) \
$(use_enable nullout) \
$(use_enable oss) \
$(use_enable playlist-browser pltbrowser) \
$(use_enable psf) \
$(use_enable pulseaudio pulse) \
$(use_enable sc68) \
$(use_enable shell-exec shellexecui) \
$(use_enable shn) \
$(use_enable sid) \
$(use_enable sndfile) \
$(use_enable tta) \
$(use_enable vorbis) \
$(use_enable vtx) \
$(use_enable wavpack) \
$(use_enable wma) \
$(use_enable zip vfs-zip)
}

pkg_preinst() {
if use gtk2 || use gtk3 ; then
gnome2_icon_savelist
fi
}

pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update

if use gtk2 || use gtk3 ; then
gnome2_icon_cache_update
fi
}

pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update

if use gtk2 || use gtk3 ; then
gnome2_icon_cache_update
fi
}

0 comments on commit 4e8bf7f

Please sign in to comment.