# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ada/tash/tash-8.4.1a.ebuild,v 1.6 2008/01/27 00:20:34 george Exp $ inherit versionator gnat DESCRIPTION="Tash provides tcl Ada bindings" HOMEPAGE="http://tcladashell.sourceforge.net/index.htm" SRC_URI="mirror://gentoo/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="virtual/ada =dev-lang/tcl-8.4* =dev-lang/tk-8.4*" lib_compile() { gcc -c -O2 -o obj/tclmacro.o src/tclmacro.c && \ gcc -c -O2 -o obj/tkmacro.o src/tkmacro.c && \ gnatmake -Pbuild_stat || die "building static lib failed" gcc -c -O2 -fPIC -o obj_dyn/tclmacro.o src/tclmacro.c && \ gcc -c -O2 -fPIC -o obj_dyn/tkmacro.o src/tkmacro.c && \ gnatmake -Pbuild_dyn || die "building static lib failed" } lib_install() { mv "${SL}"/lib/*.{ali,a,so*} "${DL}" chmod a-w "${DL}"/*.ali } src_install() { dodir "${AdalibSpecsDir}/${PN}" insinto "${AdalibSpecsDir}/${PN}" doins src/*.ad? #set up environment echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv} echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv} gnat_src_install dohtml -r index.html web/ docs/*.htm images/ insinto /usr/share/doc/${PF} doins -r apps/ demos/ tests/ docs/*.pdf }