# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Cgtkcalc is a simple complex number calculator for GTK+" HOMEPAGE="http://cgtkcalc.sourceforge.net/" SRC_URI="http://cgtkcalc.sourceforge.net/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="gtk gtk2" DEPEND="gtk2? ( =x11-libs/gtk+-2* ) !gtk2? ( =x11-libs/gtk+-1.2* )" src_compile() { econf \ $(use_with gtk2) || die "bad ./configure" emake || die "compile problem" } src_install () { einstall # make DESTDIR="${D}" install gives a sandbox violation doman cgtkcalc.1 dodoc AUTHORS ChangeLog ReadMe }