summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2007-02-05 10:35:15 +0000
committerGeorge Shapovalov <george@gentoo.org>2007-02-05 10:35:15 +0000
commit365a182ab6e3b4b651156bddbffb20615c36c306 (patch)
tree6274b7379c84bd561288a4d9e870ab1985f88843 /dev-ada
parentUpdate admin directory rather than patching configure to remove aRTs checks. (diff)
downloadgentoo-2-365a182ab6e3b4b651156bddbffb20615c36c306.tar.gz
gentoo-2-365a182ab6e3b4b651156bddbffb20615c36c306.tar.bz2
gentoo-2-365a182ab6e3b4b651156bddbffb20615c36c306.zip
initial commit of Ada Distributed Annex realisation
(Portage version: 2.1.2-r5)
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/glade/ChangeLog9
-rw-r--r--dev-ada/glade/Manifest16
-rw-r--r--dev-ada/glade/files/digest-glade-2006.03
-rw-r--r--dev-ada/glade/glade-2006.0.ebuild86
-rw-r--r--dev-ada/glade/metadata.xml5
5 files changed, 119 insertions, 0 deletions
diff --git a/dev-ada/glade/ChangeLog b/dev-ada/glade/ChangeLog
new file mode 100644
index 000000000000..6c6af47ae0d4
--- /dev/null
+++ b/dev-ada/glade/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-ada/glade
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/glade/ChangeLog,v 1.1 2007/02/05 10:35:15 george Exp $
+
+*glade-2006.0 (05 Feb 2007)
+
+ 05 Feb 2007; George Shapovalov <george@gentoo.org> +glade-2006.0.ebuild,+metadata.xml :
+ initial addition
+
diff --git a/dev-ada/glade/Manifest b/dev-ada/glade/Manifest
new file mode 100644
index 000000000000..9c1dc6b4f399
--- /dev/null
+++ b/dev-ada/glade/Manifest
@@ -0,0 +1,16 @@
+DIST glade-2006.0.tar.bz2 393969 RMD160 478e8082febce36d0997e76c793d534b3789ee65 SHA1 378c97b2db45de633b0bc462f48ae73fad4b89c7 SHA256 0a0ef4b7aeb426b4b298b38fcdb9d7236b56a9c5aa6d16c24745450587b6ef85
+EBUILD glade-2006.0.ebuild 2226 RMD160 651d18a7db8fe02ddf954b0d08fd12f0a52d29d4 SHA1 d73338b06c3119ec1b48634acedd6348f537fd1d SHA256 203f531ff9d70dfe8449aebebb287c3494a06d5c7f4d0dac9839ab1a94d31b7f
+MD5 8c3f1c6de5f6f5c25cf8409977d4e2d8 glade-2006.0.ebuild 2226
+RMD160 651d18a7db8fe02ddf954b0d08fd12f0a52d29d4 glade-2006.0.ebuild 2226
+SHA256 203f531ff9d70dfe8449aebebb287c3494a06d5c7f4d0dac9839ab1a94d31b7f glade-2006.0.ebuild 2226
+MISC ChangeLog 253 RMD160 58899249b454671a20e52d76a78f99309676fbb3 SHA1 4884cfae92600703fc22d6cf7b071c480dccd6cb SHA256 73cd7928ec6d41929a3dea0c0b90f491805c93f67b9d789281b792ea81a1d56f
+MD5 d3c2708078d7c2c62b609f8d916740e5 ChangeLog 253
+RMD160 58899249b454671a20e52d76a78f99309676fbb3 ChangeLog 253
+SHA256 73cd7928ec6d41929a3dea0c0b90f491805c93f67b9d789281b792ea81a1d56f ChangeLog 253
+MISC metadata.xml 156 RMD160 176ce2ddfa15a21eb2b752633f3514cc3640749e SHA1 de9b70211ac77fb8e22706d4e968b04a634f65f2 SHA256 34f8bec858b5da24b0fc4d703932bf225d4ee545f13cc253e42d8bc84956dbec
+MD5 e8e274a5057d2f205a38206204250c79 metadata.xml 156
+RMD160 176ce2ddfa15a21eb2b752633f3514cc3640749e metadata.xml 156
+SHA256 34f8bec858b5da24b0fc4d703932bf225d4ee545f13cc253e42d8bc84956dbec metadata.xml 156
+MD5 31cbbf15a283687879583c7655eabc2d files/digest-glade-2006.0 241
+RMD160 37eb80553932cac0704a1803624eaa5c54f5b99d files/digest-glade-2006.0 241
+SHA256 a32782d32c5ab88bd043f64e4db4168e62ee05c3459a0f343f97693603f7b9e4 files/digest-glade-2006.0 241
diff --git a/dev-ada/glade/files/digest-glade-2006.0 b/dev-ada/glade/files/digest-glade-2006.0
new file mode 100644
index 000000000000..2bb3c0778a61
--- /dev/null
+++ b/dev-ada/glade/files/digest-glade-2006.0
@@ -0,0 +1,3 @@
+MD5 5cc8bf50850daa86e3ce858a1f0848bc glade-2006.0.tar.bz2 393969
+RMD160 478e8082febce36d0997e76c793d534b3789ee65 glade-2006.0.tar.bz2 393969
+SHA256 0a0ef4b7aeb426b4b298b38fcdb9d7236b56a9c5aa6d16c24745450587b6ef85 glade-2006.0.tar.bz2 393969
diff --git a/dev-ada/glade/glade-2006.0.ebuild b/dev-ada/glade/glade-2006.0.ebuild
new file mode 100644
index 000000000000..5c070f6940b1
--- /dev/null
+++ b/dev-ada/glade/glade-2006.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/glade/glade-2006.0.ebuild,v 1.1 2007/02/05 10:35:15 george Exp $
+
+inherit gnat
+
+IUSE=""
+
+DESCRIPTION="An implementation of the Distributed Systems Annex for the GNAT compiler"
+HOMEPAGE="http://libre2.adacore.com/"
+SRC_URI="http://dev.gentoo.org/~george/src/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="virtual/gnat"
+
+# temporary install pool
+DN="${WORKDIR}/LocalD"
+
+src_unpack() {
+ gnat_src_unpack
+
+ cd ${S}
+ # configure performs some stupid check and in a wrong way, we will surely
+ # have a modern enough gnat
+ sed -i -e "s:-le \"\$am_gnatls_date\":-le \"20040909\":" configure
+}
+
+lib_compile()
+{
+ econf --with-optimization="${CFLAGS}" || die "econf failed"
+ emake || die "make failed"
+ einfo "lib_compile completed"
+}
+
+# NOTE: we are using $1 - the passed gnat profile name
+lib_install()
+{
+ # ATTN!
+ # get_gnat_value relies on having a value specific for gnat in the first
+ # position of a requested env var. Above works for PATH because gnat.eclass
+ # prepends values from the freshly activated gnat profile!
+ #
+ # Also, we install directly to ${D} here, as this is really a part of gnat
+ make prefix=${DN} \
+ bindir=${DN}/$(get_gnat_value PATH) \
+ install || die "make install failed"
+ #
+ # Makefile does not seem to accept much more than bindir, so the rest we
+ # will move manually
+ local Gnat_Libdir=$(get_gnat_value ADA_OBJECTS_PATH)
+ local Gnat_Incdir=$(get_gnat_value ADA_INCLUDE_PATH)
+ mkdir -p "${DN}/${Gnat_Libdir}"
+ mv "${DN}/lib/garlic"/*.ali "${DN}/lib/garlic"/libgarlic.a "${DN}/${Gnat_Libdir}"
+
+ mkdir -p "${DN}/${Gnat_Incdir}"
+ mv "${DN}/lib/garlic"/*.ad? "${DN}/${Gnat_Incdir}"
+ rm -rf "${DN}/lib"
+}
+
+src_install ()
+{
+ # library is installed into the corresponding gnat, no extra env setting
+ # necessary
+ echo "" > ${LibEnv}
+
+ gnat_src_install
+
+ # clean empty dirs
+ rm -rf ${D}/usr/share/gnat/ ${D}/usr/lib/ada/
+
+ # move prepared stuff over
+ cp -rp "${DN}"/* ${D}
+ dodoc COPYING README NEWS
+ insinto /usr/share/doc/${PF}
+ doins -r Examples/
+}
+
+pkg_postinst() {
+ echo
+ elog "GLADE has been installed at the gnat compiler location, expanding System Library."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/glade/metadata.xml b/dev-ada/glade/metadata.xml
new file mode 100644
index 000000000000..aec150231c3f
--- /dev/null
+++ b/dev-ada/glade/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+</pkgmetadata>