# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="POSIX Ada Bindings" HOMEPAGE="http://www.cs.fsu.edu/~baker/florist.html" SRC_URI="ftp://cs.nyu.edu/pub/gnat/3.15p/florist-3.15p-src.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="virtual/gnat" inherit ada S=${WORKDIR}/${P}p-src src_compile() { local myconf myconf="" ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ ${myconf} || die "./configure failed" make \ GCCFLAGS="${CFLAGS} -fPIC" \ GNATMAKEFLAGS1B="${ADAMAKEFLAGS} -cargs -fPIC -margs" \ || die # In addition we also generate the shared version of the library mkdir ${S}/t pushd ${S}/t ar xv ../floristlib/libflorist.a gcc -shared -o ../floristlib/libflorist.so *.o cd .. rm -rf t popd } src_install() { dodoc README into /usr dolib.a floristlib/libflorist.a dolib.so floristlib/libflorist.so insinto /usr/include/floristlib doins floristlib/*.ali doins floristlib/*.ads doins floristlib/*.adb }