Permalink
Browse files

add deadbeef-0.5.6.ebuild

  • Loading branch information...
1 parent 5c052e8 commit 7f7fe63872607233133535b002b871a145e16ec0 @miramir committed Jan 18, 2013
Showing with 187 additions and 2 deletions.
  1. +4 −2 media-sound/deadbeef/Manifest
  2. +183 −0 media-sound/deadbeef/deadbeef-0.5.6.ebuild
@@ -1,2 +1,4 @@
-DIST deadbeef-0.5.5.tar.bz2 3219511 RMD160 af9969f10fbcc8c7e1c938a6a5c30445dc50f0a2 SHA1 cf738fdb96be152a14769e4e29aa8e45722ff332 SHA256 d9d01276f07e90155da37fb257c744af4accb4da17da048ce5604cb1174750b7
-EBUILD deadbeef-0.5.5.ebuild 4524 RMD160 43da4f803fe0b3da13c17559f62020d944ed5647 SHA1 2a0ae82942784dc983d0eb8f91cb21ee4d80251a SHA256 afc628f8c15f36587f6750fe7c5944fe6dd04725504b96bae76a750e9c64456f
+DIST deadbeef-0.5.5.tar.bz2 3219511 SHA256 d9d01276f07e90155da37fb257c744af4accb4da17da048ce5604cb1174750b7 SHA512 18ff9d10f3e31bfde5ae193c8d738d973299b5f96ac4137cd805b6aca843fc60ee81c7371faaad0e5dde6a1a8683231afa85dbd1fa9cd4798d261ba5ae7fcc76 WHIRLPOOL 0f1b98b08bbe6c7b9d3086c711760d585dde0330ae8b8bf83c924a24b879c638771c2b75ac5ea86ead561f6dec9aa97913e972835d653773a52ff0f0033cc001
+DIST deadbeef-0.5.6.tar.bz2 3279899 SHA256 17c123eb50e33c89403d8d3035b9132463a227a6905fd42bcbb2a3a5616cea5b SHA512 20d8d58e2df90078af2dd6583c7ae9d7b3b6f7d73cef1d823910614278779614c1544e839a886ab7ab972ad235220829d8e07dc1c959e98c94fc1e47299e5b4a WHIRLPOOL 9b7349c4664be4e98a935fb97393195cc4911d28e011a83c8f3d621b004ccb70f3e5e06129138eb3edf64b17c533b0b214a29e2fb71b96e7b6638b92d2a69947
+EBUILD deadbeef-0.5.5.ebuild 4524 SHA256 afc628f8c15f36587f6750fe7c5944fe6dd04725504b96bae76a750e9c64456f SHA512 2ddeb0499a41fda998f4c95153249b799d1363d518f4548fdedd2b983317424102054360e948450535e88e5bb361593ba82a5f2601a1dcac1b943355305cd677 WHIRLPOOL 4ba9c38166f8f7ed344971644e04e540ab6b8e8fed299dd4fbf4c25bb9f7abf777c5ae9194fc066b4d450593216be093f58ec63c7b4202ab508fcdeebb7727a8
+EBUILD deadbeef-0.5.6.ebuild 4524 SHA256 afc628f8c15f36587f6750fe7c5944fe6dd04725504b96bae76a750e9c64456f SHA512 2ddeb0499a41fda998f4c95153249b799d1363d518f4548fdedd2b983317424102054360e948450535e88e5bb361593ba82a5f2601a1dcac1b943355305cd677 WHIRLPOOL 4ba9c38166f8f7ed344971644e04e540ab6b8e8fed299dd4fbf4c25bb9f7abf777c5ae9194fc066b4d450593216be093f58ec63c7b4202ab508fcdeebb7727a8
@@ -0,0 +1,183 @@
+# 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="foobar2k-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 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 infobar"
+
+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 net-misc/curl )
+ ffmpeg? ( virtual/ffmpeg )
+ flac? ( media-libs/flac )
+ gtk2? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ 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 )
+ curl? ( net-misc/curl )
+ infobar? ( net-misc/curl )"
+
+DEPEND="
+ dev-util/intltool
+ ${RDEPEND}"
+S="${WORKDIR}/${PN}-${MY_PV}"
+pkg_setup() {
+ if use psf || use dumb || use shn && use static ; then
+ die "ao/converter/dumb or shn plugins can't be builded 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 shellexec shellexecui)
+ $(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
+}

0 comments on commit 7f7fe63

Please sign in to comment.