# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils versionator gnome2 autotools-utils gnome2-utils DESCRIPTION="Me TV is a GTK desktop application for watching digital television." HOMEPAGE="http://me-tv.sourceforge.net/" SRC_URI="http://launchpad.net/${PN}/$(get_version_component_range 1-2)/$(get_version_component_range 1-3)/+download/${P}.tar.gz" RESTRICT="mirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="debug nls client console server" RDEPEND=">=dev-cpp/libgnomemm-2.12.0 >=dev-cpp/libgnomecanvasmm-2.10.0 >=dev-cpp/libgnomeuimm-2.10.0 >=net-libs/gnet-2.0.0 client? ( >=dev-cpp/gtkmm-2.12.0 >=dev-cpp/gconfmm-2 dev-libs/libunique:1 dev-cpp/libxmlpp:2.6 >=dev-libs/dbus-glib-0.92 media-video/vlc >=media-libs/gstreamer-0.10 ) server? ( =dev-db/sqlite-3* dev-cpp/libxmlpp:2.6 )" DEPEND="${RDEPEND}" src_prepare() { autotools-utils_autoreconf } src_configure() { local myeconfargs=( $(use_enable nls) $(use_enable debug) $(use_enable client) $(use_enable server) $(use_enable console) --disable-schemas-install ) autotools-utils_src_configure || die "econf failed" } src_compile() { autotools-utils_src_compile } src_install() { autotools-utils_src_install dodir /etc/gconf/schemas insinto /etc/gconf/schemas } pkg_postinst() { gnome2_gconf_savelist gnome2_gconf_install }