blob: ed7e74500e9509cfc383c5d4d9abf052c6a1d21c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/gps-bin/gps-bin-2.1.0.ebuild,v 1.2 2007/01/25 23:51:01 genone 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.4.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(){
elog "This is GNAT Programming System, enjoy!"
elog "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!"
}
|