# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Spell checking widget for GTK2" HOMEPAGE="http://gtkspell.sourceforge.net/" SRC_URI="http://${PN}.sourceforge.net/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~sparc ~ppc ~alpha ~hppa ~amd64 ~ia64 ~mips" IUSE="doc nls" RDEPEND=">=x11-libs/gtk+-2 nls? ( sys-devel/gettext)" DEPEND="${RDEPEND} sys-devel/autoconf doc? ( >=dev-util/gtk-doc-0.6 )" src_unpack() { unpack ${A} # fix the config script's gtkdoc check (bug #16997) cd ${S} sed -i "s:GTKDOC=true::" configure autoconf || die } src_compile() { local myconf use doc \ && myconf="--enable-gtk-doc" \ || myconf="--disable-gtk-doc" use nls || myconf="${myconf} --disable-nls" econf ${myconf} || die emake || die "compile failure" } src_install() { einstall || die dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README }