inherit eutils IUSE="" DESCRIPTION="Basic EPWING viewer" HOMEPAGE="http://eb123.sourceforge.jp/" SRC_URI="mirror://sourceforge.jp/${PN}/47137/${PF}.tar.gz" LICENSE="GPL" SLOT="0" KEYWORDS="amd64 x86" IUSE="debug gstreamer" DEP="gstreamer? ( media-libs/gstreamer media-plugins/gst-plugins-alsa media-libs/gst-plugins-base media-libs/gst-plugins-good media-plugins/gst-plugins-alsa media-plugins/gst-plugins-mpeg2dec media-plugins/gst-plugins-x )" RDEPEND="${DEP} >=dev-libs/eb-3.3.4 >=x11-libs/gtk+-2.10 >=dev-libs/libxml2-2.7.0" DEPEND="${RDEPEND} sys-devel/gettext dev-util/pkgconfig" src_unpack() { unpack ${A} } src_compile() { econf \ --with-eb-conf=/etc/eb.conf \ $(use_enable gstreamer) \ $(use_enable debug) || die "econf failed" emake || die "emake failed" } src_install () { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog INSTALL* NEWS README }