inherit eutils DESCRIPTION="Small text editor based on the GTK+ library 2.0" HOMEPAGE="http://www.arabeyes.org/project.php?proj=katoob" SRC_URI="mirror://sourceforge/arabeyes/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64 ~x86-obsd ~x86-fbsd" IUSE="debug spell gtkhtml cups nls" DEPEND=">=x11-libs/gtk+-2 gtkhtml? (x11-libs/gtksourceview ) spell? ( app-text/aspell )" RDEPEND="cups? ( net-print/cups )" src_compile() { local myconf="${myconf}" myconf="${myconf} `use_enable spell` `use_enable gtkhtml highlight` `use_enable cups print`" use debug && myconf="${myconf} --enable-debug" || myconf="${myconf} --enable-release" econf ${myconf} || die "econf failed" emake || die "Compilation failed" } src_install() { einstall dodoc AUTHORS ChangeLog NEWS README RELEASE_NOTES THANKS TODO use nls || rm -rf ${D}/usr/share/locale }