You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/christine/christine-0.7.0.ebuild

51 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
PYTHON_DEPEND="2:2.7"
PYTHON_USE_WITH="sqlite"
inherit autotools eutils python
DESCRIPTION="A simple gstreamer based media player"
HOMEPAGE="http://christine-project.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="libnotify nls readline"
COMMON_DEPEND="=dev-python/gst-python-0.10*
dev-python/pycairo
dev-python/pygobject:2
=dev-python/pygtk-2*
media-libs/mutagen
libnotify? ( dev-python/notify-python )
readline? ( sys-libs/readline )"
RDEPEND="${COMMON_DEPEND}
=media-plugins/gst-plugins-meta-0.10*"
DEPEND="${COMMON_DEPEND}
virtual/pkgconfig
nls? ( dev-util/intltool )"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}"/${P}-validate.patch
find . -name 'Makefile.*' -exec sed -i -e 's:mkdir_p:MKDIR_P:g' {} + #423113
eautoreconf
}
src_configure() {
econf $(use_enable nls) $(use_with readline)
}
pkg_postinst() { python_mod_optimize libchristine; }
pkg_postrm() { python_mod_cleanup libchristine; }