# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/clementine/clementine-0.3.ebuild,v 1.1 2010/05/14 11:10:23 ssuominen Exp $ EAPI=2 inherit cmake-utils gnome2-utils DESCRIPTION="A modern music player and library organizer based on Amarok 1.4 and Qt4" HOMEPAGE="http://code.google.com/p/clementine-player/" SRC_URI="http://clementine-player.googlecode.com/files/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gstreamer vlc +xine" COMMON_DEPEND="x11-libs/qt-gui:4 x11-libs/qt-opengl:4 x11-libs/qt-sql:4[sqlite] >=media-libs/taglib-1.6 media-libs/liblastfm dev-libs/glib:2 gstreamer? ( >=media-libs/gstreamer-0.10 >=media-libs/gst-plugins-base-0.10 ) vlc? ( media-video/vlc ) xine? ( media-libs/xine-lib ) !gstreamer? ( !vlc? ( media-libs/xine-lib ) )" RDEPEND="${COMMON_DEPEND} gstreamer? ( >=media-plugins/gst-plugins-meta-0.10 )" DEPEND="${COMMON_DEPEND} >=dev-libs/boost-1.39 dev-util/pkgconfig" DOCS="Changelog TODO" src_configure() { # -DENGINE_QT_PHONON_ENABLED=ON doesn't compile mycmakeargs=( $(cmake-utils_use gstreamer ENGINE_GSTREAMER_ENABLED) $(cmake-utils_use vlc ENGINE_LIBVLC_ENABLED) $(cmake-utils_use xine ENGINE_LIBXINE_ENABLED) "-DENGINE_QT_PHONON_ENABLED=OFF" ) if ! use gstreamer && ! use vlc; then mycmakeargs+=( "-DENGINE_LIBXINE_ENABLED=ON" ) fi cmake-utils_src_configure } pkg_preinst() { gnome2_icon_savelist; } pkg_postinst() { gnome2_icon_cache_update; } pkg_postrm() { gnome2_icon_cache_update; }