Files
@ dc53e5004f02
Branch filter:
Location: portage-overlay.git/media-sound/deadbeef/deadbeef-0.6.1.ebuild
dc53e5004f02
4.4 KiB
application/vnd.gentoo.ebuild
update net-misc/pyload to 0.4.9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | # Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit fdo-mime gnome2-utils versionator
MY_PV="$(replace_version_separator 3 '-')"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.bz2
http://sourceforge.net/projects/${PN}/files/${PN}-${MY_PV}.tar.bz2/download -> ${PN}-${MY_PV}.tar.bz2"
KEYWORDS="~x86 ~amd64"
DESCRIPTION="foobar2000-like music player"
HOMEPAGE="http://deadbeef.sourceforge.net/"
LICENSE="GPL-2
LGPL-2.1
ZLIB
psf? ( BSD XMAME )
dumb? ( DUMB-0.9.2 )
shn? ( shorten )"
SLOT="0"
IUSE="adplug aac alsa psf ape cdda cover cover-imlib2 dts dumb converter curl ffmpeg flac gme
hotkeys infobar lastfm m3u midi mms mp3 musepack nls notify nullout oss pulseaudio rpath mono2stereo
shellexec shn sid sndfile src static supereq threads tta vorbis vtx wavpack zip gtk3 +gtk2"
LANGS="be bg bn ca cs da de el en_GB es fa fi fr gl he hr hu id it ja kk km lg nb nl pl pt_BR pt ru si sk sl sr@latin sr sv te tr uk vi zh_CN zh_TW"
for lang in ${LANGS}; do
IUSE+=" linguas_${lang}"
done
RDEPEND="aac? ( media-libs/faad2 )
alsa? ( media-libs/alsa-lib )
cdda? ( dev-libs/libcdio media-libs/libcddb )
cover? ( media-libs/imlib2 )
ffmpeg? ( virtual/ffmpeg )
flac? ( media-libs/flac )
gtk2? ( x11-libs/gtk+:2
x11-libs/libICE
x11-libs/libSM )
gtk3? ( x11-libs/gtk+:3
x11-libs/libICE
x11-libs/libSM )
lastfm? ( net-misc/curl )
notify? ( sys-apps/dbus )
midi? ( media-sound/timidity-freepats )
mms? ( media-libs/libmms )
mp3? ( media-libs/libmad )
musepack? ( media-sound/musepack-tools )
pulseaudio? ( media-sound/pulseaudio )
sndfile? ( media-libs/libsndfile )
src? ( media-libs/libsamplerate )
vorbis? ( media-libs/libvorbis )
wavpack? ( media-sound/wavpack )
zip? ( dev-libs/libzip
sys-libs/zlib )"
DEPEND="
ape? ( dev-lang/yasm )
dev-util/intltool
${RDEPEND}"
S="${WORKDIR}/${PN}-${MY_PV}"
pkg_setup() {
# fixme, is it fine?
if { use psf || use dumb || use shn; } && use static ; then
die "ao/converter/dumb or shn plugins can't be built statically"
fi
}
src_prepare() {
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"
fi
for lang in ${LANGS};do
for x in ${lang};do
if ! use linguas_${x}; then
rm -f "po/${x}.po"
fi
done
done
}
src_configure() {
my_config="--disable-portable
--docdir=/usr/share/${PN}
$(use_enable aac)
$(use_enable adplug)
$(use_enable alsa)
$(use_enable ape ffap)
$(use_enable cdda)
$(use_enable converter)
$(use_enable dts dca)
$(use_enable dumb)
$(use_enable ffmpeg)
$(use_enable flac)
$(use_enable gme)
$(use_enable hotkeys)
$(use_enable m3u)
$(use_enable midi wildmidi)
$(use_enable mms)
$(use_enable mono2stereo)
$(use_enable mp3 mad)
$(use_enable musepack)
$(use_enable nls)
$(use_enable notify)
$(use_enable nullout)
$(use_enable oss)
$(use_enable psf)
$(use_enable pulseaudio pulse)
$(use_enable rpath)
$(use_enable shellexec)
$(use_enable shn)
$(use_enable sid)
$(use_enable sndfile)
$(use_enable src)
$(use_enable static)
$(use_enable static staticlink)
$(use_enable supereq)
$(use_enable threads)
$(use_enable tta)
$(use_enable vorbis)
$(use_enable vtx)
$(use_enable wavpack)
$(use_enable zip vfs-zip)"
if use cover || use lastfm ; then
my_config="${my_config}
--enable-vfs-curl
$(use_enable cover artwork)
$(use_enable cover-imlib2 artwork-imlib2)
$(use_enable lastfm lfm)"
else
my_config="${my_config}
$(use_enable cover artwork)
$(use_enable cover-imlib2 artwork-imlib2)
$(use_enable curl vfs-curl)
$(use_enable lastfm lfm)"
fi
if use infobar; then
my_config="${my_config}
--enable-vfs-curl"
fi
if use gtk3;then
my_config="${my_config}
--enable-gtk3
--enable-gtkui"
fi
if use gtk2;then
my_config="${my_config}
--enable-gtkui"
else
my_config="${my_config}
--disable-gtk2"
fi
econf ${my_config}
}
pkg_preinst() {
gnome2_icon_savelist
gnome2_schemas_savelist
}
pkg_postinst() {
if use midi ; then
einfo "enable manually freepats support for timidity via"
einfo "eselect timidity set --global freepats"
fi
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
gnome2_schemas_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
gnome2_schemas_update
}
|