summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ada/adabroker/adabroker-1.0_pre4.ebuild')
-rw-r--r--dev-ada/adabroker/adabroker-1.0_pre4.ebuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/dev-ada/adabroker/adabroker-1.0_pre4.ebuild b/dev-ada/adabroker/adabroker-1.0_pre4.ebuild
index 449d2f87ff0f..339ac9c13c46 100644
--- a/dev-ada/adabroker/adabroker-1.0_pre4.ebuild
+++ b/dev-ada/adabroker/adabroker-1.0_pre4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ada/adabroker/adabroker-1.0_pre4.ebuild,v 1.4 2003/10/06 06:57:21 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/adabroker/adabroker-1.0_pre4.ebuild,v 1.5 2003/10/28 13:07:44 dholm Exp $
inherit gnat
@@ -10,7 +10,7 @@ SRC_URI="http://adabroker.eu.org/distrib/${PN}-1.0pre4.tar.gz"
HOMEPAGE="http://adabroker.eu.org/"
LICENSE="GMGPL"
-DEPEND="dev-lang/gnat"
+DEPEND="<dev-lang/gnat-5.*"
RDEPEND=""
IUSE=""
SLOT="0"
@@ -62,4 +62,18 @@ src_install () {
dosym /usr/lib/ada/adalib/adabroker/libbroca.so /usr/lib
dosym /usr/lib/ada/adalib/adabroker/libbroca.so.0 /usr/lib
dosym /usr/lib/ada/adalib/adabroker/libbroca.so.0.0.0 /usr/lib
+
+ #set up environment
+ dodir /etc/env.d
+ echo "ADA_OBJECTS_PATH=\${ADA_OBJECTS_PATH}:/usr/lib/ada/adalib/${PN}" > ${D}/etc/env.d/55adabroker
+ echo "ADA_INCLUDE_PATH=\${ADA_INCLUDE_PATH}:/usr/lib/ada/adainclude/${PN}" \
+ >> ${D}/etc/env.d/55adabroker
+}
+
+pkg_postinst() {
+ einfo "The envaironment has been set up to make gnat automatically find files for"
+ einfo "AdaBroker. In order to immediately activate these settings please do:"
+ einfo "env-update"
+ einfo "source /etc/profile"
+ einfo "Otherwise the settings will become active next time you login"
}