# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ada/gps-bin/gps-bin-1.2.2.ebuild,v 1.7 2005/01/01 17:24:52 eradicator Exp $ IUSE="" S="${WORKDIR}/gps-${PV}-academic-x86-linux" DESCRIPTION="GNAT Programming System" SRC_URI="http://libre.act-europe.fr/gps/gps-${PV}-academic-x86-linux.tgz" HOMEPAGE="http://libre.act-europe.fr/gps" KEYWORDS="x86" LICENSE="GPL-2" SLOT="0" DEPEND="virtual/libc" RDEPEND=">=dev-lang/gnat-3.15p >=x11-libs/gtk+-2.2.0 >=dev-ada/gtkada-2.2.0 >=media-libs/libpng-1.2.4" src_compile() { einfo "nothing to be done" } src_install () { #for some reason doins strips exec privs on all binaries here, use mv instead dodir /opt/${PN} mv bin lib share ${D}/opt/${PN}/ # Install documentation. dodoc README doinfo doc/gps/info/* mv doc/gps/{examples,html,ps,txt} ${D}/usr/share/doc/${PF} #gps was compiled against libpng.so.2 which in fact is libpng.so.3 on gentoo systems dosym /usr/lib/libpng.so /opt/${PN}/lib/libpng.so.2 #now some env vars insinto /etc/env.d doins ${FILESDIR}/10gps-bin echo "GPS_DOC_PATH=/usr/share/doc/${PF}/html" >> ${D}/etc/env.d/10gps-bin } pkg_postinst(){ einfo "This is GNAT Programming System, enjoy!" einfo "Please note, if you plan on using gtkada, beware that while compiling your app from within gps, it will link against its own libraries instead of the system-wide gtkada library!" }