# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils DESCRIPTION="nghost media library" HOMEPAGE="https://sourceforge.net/projects/nghost" SRC_URI="http://softlayer.dl.sourceforge.net/project/nghost/nghost-2/nghost-${PV}/${P}.tar.gz" LICENSE="GPL" SLOT="2" KEYWORDS="~amd64 ~x86" IUSE="+core +dao +gui2 -gui3 +log +net +plugins mysql sqlite curl n2ograbber ipc phonon xine gstreamer voicesynth sample hdradio" DEPEND="core? ( x11-libs/libX11 \ media-libs/libsdl \ sys-devel/libtool ) \ dao? ( >=media-libs/taglib-1.4 ) \ gui2? ( media-libs/libsdl \ dev-cpp/glibmm \ dev-cpp/libxmlpp \ media-libs/sdl-gfx \ x11-libs/libX11 \ media-libs/sdl-ttf \ media-libs/sdl-image ) \ gui3? ( >=media-libs/clutter-0.8 ) \ net? ( media-libs/libsdl ) \ plugins? ( sys-devel/libtool ) \ mysql? ( dev-db/mysql ) \ sqlite? ( >=dev-db/sqlite-3 ) \ curl? ( net-misc/curl ) \ n2ograbber? ( dev-cpp/libxmlpp ) \ phonon? ( >=x11-libs/qt-core-4.4 \ >=x11-libs/qt-gui-4.4 \ >=x11-libs/qt-phonon-4.4 ) \ xine? ( media-libs/xine-lib ) \ gstreamer? ( >=media-libs/gstreamer-0.10.12 )" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} || die "unpacking failed" cd "${S}" epatch "${FILESDIR}"/${P}.stdio-kshots.patch || die "patching failed" } src_configure() { econf \ $(use_enable core) \ $(use_enable dao) \ $(use_enable gui2) \ $(use_enable gui3) \ $(use_enable log) \ $(use_enable net) \ $(use_enable plugins) \ $(use_enable mysql) \ $(use_enable sqlite) \ $(use_enable curl) \ $(use_enable n2ograbber) \ $(use_enable ipc) \ $(use_enable phonon) \ $(use_enable xine) \ $(use_enable gstreamer) \ $(use_enable voicesynth) \ $(use_enable sample) \ $(use_enable hdradio) \ || die 'econf' } src_compile() { emake || die 'emake' } src_install() { emake DESTDIR="${D}" install || die 'emake install' }