blob: 9c095d1723b9f085829629b451f740ba834ead22 (
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-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-2.1.0.ebuild,v 1.1 2005/05/27 14:44:42 dholm 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(){
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!"
}
|