# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Gtk+ bindings to the Ada language" HOMEPAGE="http://libre.act-europe.fr/GtkAda" SRC_URI="http://libre.act-europe.fr/GtkAda/GtkAda-2.0.0.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="nls opengl" DEPEND="virtual/gnat >=x11-libs/gtk+-2.0.0" #RDEPEND="" S=${WORKDIR}/${P} src_compile() { local myconf local myprefix myconf="" myprefix="${D}/usr" use nls || myconf="${myconf} --disable-nls" use opengl && myconf="${myconf} --with-GL=auto" ./configure \ --host=${CHOST} \ --prefix=${myprefix} \ --infodir=${myprefix}/share/info \ --mandir=${myprefix}/share/man \ ${myconf} || die "./configure failed" make GNATFLAGS="-cargs ${CFLAGS} -margs" || die } src_install() { make install || die }