# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-editors/katoob/katoob-0.3.8.ebuild,v 1.5 2005/04/24 10:57:59 hansmi Exp $ inherit eutils DESCRIPTION="Small text editor based on the GTKMM library" HOMEPAGE="http://www.foolab.org/projects/katoob" SRC_URI="ftp://foolab.org/pub/software/katoob/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc" IUSE="bzip gzip print dbus bidi debug spell" RDEPEND="spell? ( app-text/aspell ) bzip? ( app-arch/bzip2 ) gzip? ( app-arch/gzip ) bidi? ( dev-libs/fribidi ) dbus? ( sys-apps/dbus ) print? ( >=net-print/cups-1.1.23 >=x11-libs/pango-1.10.0 ) >=dev-cpp/gtkmm-2.6.0" DEPEND="${RDEPEND} >=dev-util/intltool-0.18 dev-util/pkgconfig" src_compile() { local myconf use bzip && myconf="--enable-bzip2" || myconf="--disable-bzip2" use gzip && myconf="${myconf} --enable-gzip" || myconf="${myconf} --disable-gzip" use print && myconf="${myconf} --enable-print" || myconf="${myconf} --disable-print" use dbus && myconf="${myconf} --enable-dbus" || myconf="${myconf} --disable-dbus" use bidi && myconf="${myconf} --enable-fribidi" || myconf="${myconf} --disable-fribidi" use debug && myconf="${myconf} --enable-debug --disable-release" use spell && myconf="${myconf} --enable-spell" || myconf="${myconf} --disable-spell" econf ${myconf} || die "econf failed" emake || die "Compilation failed" } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS ChangeLog NEWS README RELEASE_NOTES THANKS TODO }