# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/xnoise/xnoise-0.2.14.ebuild,v 1.2 2013/02/23 19:02:29 angelos Exp $ EAPI=4 inherit fdo-mime gnome2-utils DESCRIPTION="A media player for Gtk+ with a slick GUI, great speed and lots of features" HOMEPAGE="http://www.xnoise-media-player.com/" SRC_URI="mirror://bitbucket/shuerhaaken/${PN}/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+lastfm +lyrics" RDEPEND="x11-libs/gtk+:3 >=dev-libs/glib-2.30:2 media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 media-plugins/gst-plugins-meta:0.10 dev-db/sqlite:3 media-libs/taglib x11-libs/cairo x11-libs/libX11 lastfm? ( net-libs/libsoup:2.4 ) lyrics? ( net-libs/libsoup:2.4 dev-libs/libxml2:2 )" DEPEND="${RDEPEND} dev-util/intltool virtual/pkgconfig sys-devel/gettext" DOCS=( AUTHORS README ) src_configure() { econf \ $(use_enable lyrics lyricwiki) \ $(use_enable lastfm) \ --enable-mpris \ --enable-soundmenu2 \ --enable-mediakeys \ $(use_enable lyrics chartlyrics) \ $(use_enable lyrics azlyrics) \ --disable-ubuntuone \ --enable-magnatune } src_install() { default find "${ED}" -type f -name "*.la" -delete || die rm -rf "${ED}"/usr/share/${PN}/license || die } pkg_preinst() { gnome2_icon_savelist } pkg_postinst() { fdo-mime_desktop_database_update gnome2_icon_cache_update } pkg_postrm() { fdo-mime_desktop_database_update gnome2_icon_cache_update }