summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Holm <dholm@gentoo.org>2003-11-21 20:12:54 +0000
committerDavid Holm <dholm@gentoo.org>2003-11-21 20:12:54 +0000
commitbf282befa68b2d9ec6b9288c9460a0a80f714a0c (patch)
tree22b521a3c05407654c1d9891aae9e6dcf6082054 /dev-ada
parentVersion bump (diff)
downloadhistorical-bf282befa68b2d9ec6b9288c9460a0a80f714a0c.tar.gz
historical-bf282befa68b2d9ec6b9288c9460a0a80f714a0c.tar.bz2
historical-bf282befa68b2d9ec6b9288c9460a0a80f714a0c.zip
Version bump
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/gtkada/Manifest4
-rw-r--r--dev-ada/gtkada/files/digest-gtkada-2.2.11
-rw-r--r--dev-ada/gtkada/gtkada-2.2.1.ebuild79
3 files changed, 82 insertions, 2 deletions
diff --git a/dev-ada/gtkada/Manifest b/dev-ada/gtkada/Manifest
index ec8508046719..2e07d9def448 100644
--- a/dev-ada/gtkada/Manifest
+++ b/dev-ada/gtkada/Manifest
@@ -1,6 +1,6 @@
-MD5 73366feeb71cdd2b711dd0b72c91627e ChangeLog 1545
+MD5 47e1800592062e0ce98615ec9f0f6832 ChangeLog 1545
MD5 d2ec7ee30281bbf995da4c21f80ef2da gtkada-2.2.0-r1.ebuild 2413
-MD5 dbddfc7c076b44056962f355df4ddc0a gtkada-2.2.1.ebuild 2413
+MD5 b15f342509d25544b5dcb705d1559a1d gtkada-2.2.1.ebuild 2410
MD5 406df42dba8304e0bfa98dd1a79452b7 metadata.xml 556
MD5 7eb9516c33bb93d187fe5c5786cbf7b4 gtkada-2.2.1_pre20031005.ebuild 2312
MD5 f6dd28048026dfc33cdadfa70e75217e files/digest-gtkada-2.2.1_pre20031005 78
diff --git a/dev-ada/gtkada/files/digest-gtkada-2.2.1 b/dev-ada/gtkada/files/digest-gtkada-2.2.1
new file mode 100644
index 000000000000..092d5b7107f4
--- /dev/null
+++ b/dev-ada/gtkada/files/digest-gtkada-2.2.1
@@ -0,0 +1 @@
+MD5 2c22a6de79bfc948a1e2c4a6f73ab5c0 GtkAda-2.2.1.tgz 3183988
diff --git a/dev-ada/gtkada/gtkada-2.2.1.ebuild b/dev-ada/gtkada/gtkada-2.2.1.ebuild
new file mode 100644
index 000000000000..a76e700f7403
--- /dev/null
+++ b/dev-ada/gtkada/gtkada-2.2.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/gtkada/gtkada-2.2.1.ebuild,v 1.1 2003/11/21 20:12:49 dholm Exp $
+
+inherit gnat
+
+Name="GtkAda"
+DESCRIPTION="Gtk+ bindings to the Ada language"
+HOMEPAGE="http://libre.act-europe.fr/GtkAda"
+SRC_URI="http://libre.act-europe.fr/${Name}/${Name}-${PV}.tgz"
+
+LICENSE="GMGPL"
+SLOT="1"
+KEYWORDS="x86 ~ppc"
+IUSE="nls opengl"
+
+DEPEND=">=dev-lang/gnat-3.14p
+ >=x11-libs/gtk+-2.2.0"
+RDEPEND=""
+
+S="${WORKDIR}/${Name}-${PV}"
+
+src_compile() {
+ local myconf
+ myconf=""
+
+ use nls || myconf="${myconf} --disable-nls"
+ use opengl && myconf="${myconf} --with-GL=auto"
+
+ patch -p1 < ${FILESDIR}/${P}-gentoo.patch
+ sed -i -e "s|-I\$prefix/include|-I/usr/lib/ada/adainclude|" \
+ src/gtkada-config.in
+ sed -i -e "s|-L\$prefix/include|-L/usr/lib/ada/adalib|" \
+ src/gtkada-config.in
+
+ econf ${myconf} || die "./configure failed"
+
+ make GNATFLAGS="${ADACFLAGS}" || die
+}
+
+src_install() {
+ make prefix=${D}/usr \
+ incdir=${D}/usr/lib/ada/adainclude/gtkada \
+ libdir=${D}/usr/lib/ada/adalib/gtkada \
+ alidir=${D}/usr/lib/ada/adalib/gtkada install \
+ || die
+
+ dosym /usr/lib/ada/adalib/gtkada/libgtkada_glade-2.2.so.1 /usr/lib
+ dosym /usr/lib/ada/adalib/gtkada/libgtkada_gl-2.2.so.1 /usr/lib
+ dosym /usr/lib/ada/adalib/gtkada/libgnomeada-2.2.so.1 /usr/lib
+ dosym /usr/lib/ada/adalib/gtkada/libgtkada-2.2.so.1 /usr/lib
+ dosym /usr/lib/ada/adalib/gtkada/libgtkada_glade.so /usr/lib
+ dosym /usr/lib/ada/adalib/gtkada/libgtkada_gl.so /usr/lib
+ dosym /usr/lib/ada/adalib/gtkada/libgnomeada.so /usr/lib
+ dosym /usr/lib/ada/adalib/gtkada/libgtkada.so /usr/lib
+
+ #arrange docs properly
+ dodoc ANNOUNCE AUTHORS COPYING README
+ cd ${D}/usr
+ mv doc/${Name}/* share/${PN}/examples/ share/doc/${PF}
+ rm -rf doc/ share/${PN}/
+ cd ${S} #in case need to add anything afterwards
+
+ #set up environment
+ dodir /etc/env.d
+ echo "ADA_OBJECTS_PATH=/usr/lib/ada/adalib/${PN}" \
+ > ${D}/etc/env.d/55gtkada
+ echo "ADA_INCLUDE_PATH=/usr/lib/ada/adainclude/${PN}" \
+ >> ${D}/etc/env.d/55gtkada
+}
+
+pkg_postinst() {
+ einfo "The envaironment has been set up to make gnat automatically find files for"
+ einfo "GtkAda. 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"
+}
+