# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="" S="${WORKDIR}/gps-${PV}w-academic-x86-linux" DESCRIPTION="GNAT Programming System" SRC_URI="https://libre.adacore.com/gps/gps-snapshot-x86-linux.tgz" HOMEPAGE="https://libre.adacore.com/gps/" KEYWORDS="~x86" LICENSE="GPL-2" SLOT="0" RESTRICT="mirror" DEPEND="virtual/libc" RDEPEND="virtual/gnat x11-libs/gtk+ dev-libs/expat media-libs/libpng media-libs/jpeg" 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 mv share/doc/gps/{html,pdf,txt} ${D}/usr/share/doc/${PF} mv share/examples ${D}/usr/share/doc/${PF} #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!" }