summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-ada
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/adadoc/Manifest3
-rw-r--r--dev-ada/adadoc/adadoc-2.1.ebuild59
-rw-r--r--dev-ada/adadoc/metadata.xml9
-rw-r--r--dev-ada/adasockets/Manifest1
-rw-r--r--dev-ada/adasockets/adasockets-1.8.4.7.ebuild59
-rw-r--r--dev-ada/adasockets/metadata.xml6
-rw-r--r--dev-ada/asis-gcc/Manifest7
-rw-r--r--dev-ada/asis-gcc/asis-gcc-3.4.6.ebuild154
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.1.2-r1.ebuild150
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.1.2.ebuild153
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.2.2.ebuild153
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.3.0_pre132166.ebuild156
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.3.1-r1.ebuild143
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.3.1.ebuild135
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.4.ebuild144
-rw-r--r--dev-ada/asis-gcc/metadata.xml15
-rw-r--r--dev-ada/asis-gpl/Manifest3
-rw-r--r--dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild113
-rw-r--r--dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r1.ebuild121
-rw-r--r--dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r2.ebuild123
-rw-r--r--dev-ada/asis-gpl/asis-gpl-4.1.3.2008-r1.ebuild127
-rw-r--r--dev-ada/asis-gpl/asis-gpl-4.1.3.2008.ebuild123
-rw-r--r--dev-ada/asis-gpl/metadata.xml14
-rw-r--r--dev-ada/aunit/Manifest3
-rw-r--r--dev-ada/aunit/aunit-1.05.ebuild50
-rw-r--r--dev-ada/aunit/aunit-2.01.ebuild51
-rw-r--r--dev-ada/aunit/aunit-2.03.ebuild51
-rw-r--r--dev-ada/aunit/metadata.xml6
-rw-r--r--dev-ada/booch_components/Manifest4
-rw-r--r--dev-ada/booch_components/booch_components-20051222-r1.ebuild83
-rw-r--r--dev-ada/booch_components/booch_components-20070420.ebuild67
-rw-r--r--dev-ada/booch_components/metadata.xml9
-rw-r--r--dev-ada/cbind/Manifest1
-rw-r--r--dev-ada/cbind/cbind-6.0.1.ebuild28
-rw-r--r--dev-ada/cbind/metadata.xml6
-rw-r--r--dev-ada/charles/Manifest1
-rw-r--r--dev-ada/charles/charles-20050913.ebuild50
-rw-r--r--dev-ada/charles/metadata.xml6
-rw-r--r--dev-ada/florist/Manifest1
-rw-r--r--dev-ada/florist/florist-2007.0.ebuild52
-rw-r--r--dev-ada/florist/metadata.xml13
-rw-r--r--dev-ada/glade/Manifest1
-rw-r--r--dev-ada/glade/glade-2006.0.ebuild96
-rw-r--r--dev-ada/glade/metadata.xml5
-rw-r--r--dev-ada/gtkada/Manifest1
-rw-r--r--dev-ada/gtkada/files/gtkada-2.4.0.patch11
-rw-r--r--dev-ada/gtkada/gtkada-2.10.0.ebuild112
-rw-r--r--dev-ada/gtkada/metadata.xml6
-rw-r--r--dev-ada/metadata.xml40
-rw-r--r--dev-ada/polyorb/Manifest1
-rw-r--r--dev-ada/polyorb/metadata.xml13
-rw-r--r--dev-ada/polyorb/polyorb-2.1.0.ebuild78
-rw-r--r--dev-ada/xmlada/Manifest2
-rw-r--r--dev-ada/xmlada/metadata.xml6
-rw-r--r--dev-ada/xmlada/xmlada-1.0-r4.ebuild97
-rw-r--r--dev-ada/xmlada/xmlada-2.2.0-r1.ebuild103
-rw-r--r--dev-ada/xmlada/xmlada-2.2.0.ebuild70
57 files changed, 3095 insertions, 0 deletions
diff --git a/dev-ada/adadoc/Manifest b/dev-ada/adadoc/Manifest
new file mode 100644
index 000000000000..dfd990ba9a3e
--- /dev/null
+++ b/dev-ada/adadoc/Manifest
@@ -0,0 +1,3 @@
+DIST HowToWriteModule.pdf 80918 SHA256 5d29471dbcedf6c0e6a54bb1e970b79fb1f93cfab0ecc6dc4caa1d1a510e892a SHA512 a7285e7f434b1615ee07e368827727b98e8d43e9d74da855f6fab65feb4bd8ff08f7af120a4032eab43ed9fb34d72646086f9fbfd65a5c1e4f83fc932c640d62 WHIRLPOOL a2b27f9e31c1b95468983bf6874db2cee0ed569c79d809a1742491cab4bc60dca5d09deebc40c6b5b4670390cebb75dfb5407931a59a60c3334c8355fb4f202f
+DIST UserGuide.pdf 96439 SHA256 28b378b05c2c937c4f2f0d1bf7c42347eef80b03c3febd0d1dfce9a2390b5758 SHA512 c1369d4b61dedfc199fce57b874cacecb82fa37cc4bb2d3dfaf3021e878f66f20913f5642f2b31f80588d1507b4a34e2ab58c4d78ded317d5385e1897b52ece8 WHIRLPOOL 405ec06cbde2cfd11c83ab6fe3a4e270bca9a84b7b11bdfb3c1714276b49ff45d68eba273cb90d555bba29dffdba47cecd3c89ae72a30d946e4f40cc1f15dfb6
+DIST adadoc-v2.1.src.tar.bz2 1063387 SHA256 dc98335baf354c3e6b41ebd62c3baa508ef5cad5674e6a1a36f4af809d73fed7 SHA512 948f53d6c33bad540d75227a3b620badc81fa6c2a8f8e4a57c7bf42809b8adfa198b9b2e5fdbbbbe8ce5a3979f721e371189517135a218005c7fa16dffdf4ecd WHIRLPOOL e79a445b598b653dd3aa2b19750253ba03f0608d63c3390ccccc058fd64a2086b280d45e1aa5dc2bdfc8d4901526df586034c7cad09d81dc818b6266bd962434
diff --git a/dev-ada/adadoc/adadoc-2.1.ebuild b/dev-ada/adadoc/adadoc-2.1.ebuild
new file mode 100644
index 000000000000..9350510fabfd
--- /dev/null
+++ b/dev-ada/adadoc/adadoc-2.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils gnat
+
+DESCRIPTION="A tool for Ada95 to create documentation from specification packages"
+
+HOMEPAGE="http://adadoc.sourceforge.net"
+
+SRC_URI="mirror://sourceforge/adadoc/${PN}-v${PV}.src.tar.bz2
+ mirror://sourceforge/adadoc/UserGuide.pdf
+ mirror://sourceforge/adadoc/HowToWriteModule.pdf"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE=""
+
+DEPEND="virtual/ada
+ >=dev-ada/xmlada-1.0-r2"
+
+RDEPEND=""
+
+S=${WORKDIR}/dev
+
+lib_compile() {
+ ${ADAMAKE} adadoc -Itools -Iparser -Imodules -cargs ${ADACFLAGS} -bargs -shared \
+ `xmlada-config` || die
+}
+
+lib_install() {
+ cp adadoc ${DL}
+}
+
+src_install() {
+ #set up environment
+ echo "PATH=%DL%" > ${LibEnv}
+ echo "LDPATH=%DL%" >> ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ insinto /usr/share/doc/adadoc-${PV}
+ doins "${DISTDIR}"/UserGuide.pdf
+ doins "${DISTDIR}"/HowToWriteModule.pdf
+ insinto /usr/share/adadoc
+ doins adadoc_tags.cfg
+}
+
+pkg_postinst() {
+ eselect gnat update
+ elog "The environment has been set up to make gnat automatically find files for"
+ elog "${PN}. In order to immediately activate these settings please do:"
+ elog "env-update && source /etc/profile"
+ elog "Otherwise the settings will become active next time you login"
+}
diff --git a/dev-ada/adadoc/metadata.xml b/dev-ada/adadoc/metadata.xml
new file mode 100644
index 000000000000..bc732e4a3a2f
--- /dev/null
+++ b/dev-ada/adadoc/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ada</herd>
+ <longdescription>AdaDoc is a tool for developers using the Ada95 programming language. It's goal is to create documentation in different format from a specification package.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">adadoc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ada/adasockets/Manifest b/dev-ada/adasockets/Manifest
new file mode 100644
index 000000000000..e21bd9598d09
--- /dev/null
+++ b/dev-ada/adasockets/Manifest
@@ -0,0 +1 @@
+DIST adasockets-1.8.4.7.tar.gz 621945 SHA256 496591ab6eb97597088554492c91500a464afe774a9c56dffc1ba048016e8a3e SHA512 d8aa68f1296f538fb38c49f99f9ff63d204e94c64c46c39cf2d337095e73fe43394e9087d4163ee29af1061bd46e00f41a847c82fdbb203e35bdb89e5635ce6f WHIRLPOOL bfaa138278ca225a38edebb680538564bcd0f3940164d6605c2442b2798a5d1daa6d640eb9bd90fa87518f75a8dc9ce042faca0610e006a6d04f22db18eba169
diff --git a/dev-ada/adasockets/adasockets-1.8.4.7.ebuild b/dev-ada/adasockets/adasockets-1.8.4.7.ebuild
new file mode 100644
index 000000000000..f9e7fe6f9730
--- /dev/null
+++ b/dev-ada/adasockets/adasockets-1.8.4.7.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+WANT_AUTOCONF="2.1"
+
+inherit gnat
+
+DESCRIPTION="An Interface to BSD sockets from Ada (TCP, UDP and multicast)"
+SRC_URI="http://www.rfc1149.net/download/adasockets/${P}.tar.gz"
+HOMEPAGE="http://www.rfc1149.net/devel/adasockets/"
+LICENSE="GMGPL"
+
+DEPEND="virtual/ada"
+
+SLOT="0"
+IUSE=""
+KEYWORDS="~x86 ~amd64"
+
+# a location to temporarily keep common stuff installed by make install
+CommonInst="${WORKDIR}/common-install"
+
+lib_compile() {
+ econf || die "./configure failed"
+ emake || die
+}
+
+lib_install() {
+ mv ${SL}/src/sockets*.ali ${DL}
+ mv src/.libs/libadasockets.a ${DL}
+ mv src/.libs/libadasockets.so* ${DL}
+
+ # move common stuff out of $DL
+ if [[ ! -d "${CommonInst}" ]] ; then
+ # we need only one copy, its all identical
+ mkdir "${CommonInst}"
+ mv ${SL}/src/*.ad? "${CommonInst}"
+ fi
+}
+
+src_install() {
+ # sources
+ dodir "${AdalibSpecsDir}/${PN}"
+ insinto "${AdalibSpecsDir}/${PN}"
+ doins "${CommonInst}"/sockets*.ad?
+
+ # environment
+ echo "ADA_OBJECTS_PATH=%DL%" > ${LibEnv}
+ echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
+ echo "LDPATH=%DL%" >> ${LibEnv}
+
+ gnat_src_install
+
+ # and docs
+ dodoc AUTHORS INSTALL NEWS README doc/adasockets.ps
+ doinfo doc/adasockets.info
+ insinto /usr/share/doc/${PF}
+ doins doc/adasockets.pdf
+}
diff --git a/dev-ada/adasockets/metadata.xml b/dev-ada/adasockets/metadata.xml
new file mode 100644
index 000000000000..e56a62e823d9
--- /dev/null
+++ b/dev-ada/adasockets/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>AdaSockets is a set of free software Ada packages allowing Ada programmers to use the so-called BSD sockets from their favourite programming language. AdaSockets has been designed and tested with the GNAT free software Ada compiler, but should be portable to other compilers quite easily. AdaSockets philosophy is to help the Ada programmer by providing easy-to-use objects. Special care has been taken to ensure that performances do however remain good.</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/asis-gcc/Manifest b/dev-ada/asis-gcc/Manifest
new file mode 100644
index 000000000000..12338008035f
--- /dev/null
+++ b/dev-ada/asis-gcc/Manifest
@@ -0,0 +1,7 @@
+DIST asis-3.4.4.tar.bz2 2874938 SHA256 2d3546d04839801ef617005e60ee24be9a0004f8481c70e3ea51a17443d094d5 SHA512 9eed1fbc2fb9fbe5180c3884947280eeb2224a0484940506cbefe528f30b144c85a7a57b4698cc0a7aac919718edd2c74fb2b20f083b05d5ce33fcd8cdaa3830 WHIRLPOOL 57b8713e587e00ae044856f1f28ced3b3ab01a7f4d87b4bec13a8abb68d2999cb8e5a66aff81cc422373993864eae1357353bdc4948e195a0929e4e3827d2e6e
+DIST asis-gcc-4.1.1.tar.bz2 2938979 SHA256 712674ad21d21c9aec59e3f4db35cb92b01a6fbc1fc80450f801666f0ac2827e SHA512 5879f8686c4b3dffbf01e1d915f0f8aa63451f230b5206f02b34a3c84c425f8ebb1be9b5fb108deffbbb904341f70547ea56a64165a8818e3bb0dc10441c1cbc WHIRLPOOL 9332e71399711d3f9dcff0fda81d908cf22431afa37ce36a4b859b778d9ce06dcdaf28e9dbc11ce9a9677fdd063ff3801a3ce4cfa7b1f55ebf566db43f398930
+DIST asis-gcc-4.1.2.tar.bz2 2617806 SHA256 37466312b6c43ada02b704893b509af449ab1833bc6e3cddea40344cb8972c5e SHA512 235b2a8e1464d6899155521782ef37b7e579d32035d9108d4292c71fde45aea193ada3b76ef06480508e5f4baa677b3f6b76bc4159533b4ec2be30d9db76cd5e WHIRLPOOL 042dc1c935132f99f41407b9b83061a72dd71212e6d4f9bf40c28626aa0725625f98f320eac3437bcb99c2e5e2bcc1cf1b7876c52bc0eb2738f7c659ffb16320
+DIST asis-gcc-4.2.2.tar.bz2 2474467 SHA256 5da24ed1cb73845facf062d0c277bbb978fcddf3e5ac2706859205cb8ac875bb SHA512 676106a21d830710258dff25e4a5988903208097ddebbcb9cfcb89aa74b47f8d540c9404e49b0f7816ffc332e6454ea7b6d23922d505c7c65097b6a997473e71 WHIRLPOOL 8b3c013f2b4a6d8f20d694ff3fce3d7abe7354d6bd9eed3aa14e6b1bb47ea960be80d6e7316270b2e209293552a95a3fc4e30f7d449a1a1997d35fcd43f39c4b
+DIST asis-gcc-4.3.0_pre132166.tar.bz2 2552217 SHA256 663144c94a3c30ec8d9af16f1b6cb40f271e858d43bdd44a9c170257a5d21263 SHA512 93a201aa11873b12bbb77a04a279aed4d8fc6fd286a5df727f1b90889c43460046ffb2e673caf1581454773edbb25de0250f7083a789859139f4c638bad394ee WHIRLPOOL 0fb4c53a6a3f806587060b3d5e230493c04b0aa6c15946d501d52d401c39bfe034b79122f5b50c94e43a1fbaf42cbebc3f744a8d36dc182c24fad33e1e6dfa6e
+DIST asis-gpl-2009-src.tgz 2445137 SHA256 2bc72317de6d5f5274d04ac4366ec0a700268ae84afe8e3311bc9257a0755700 SHA512 723c519eaceffddf58efc8f55c7ef507895abfa6c7e4e196b6cb3b1bc8b2c8f644b397c5d085711e013764e34fa08dd200e8c305026a89f80c188be6e3f714f3 WHIRLPOOL a6820f99ab4563e15162663ca5662e502a2b95b43ec27007533fb8cf7844ae09fcac2cce397cb117a47154236e459881f44dae60517f896f5a74e3c7bb916303
+DIST asis-gpl-2010-src.tgz 2784774 SHA256 2e8a94827255fa532c07e54b067655fabebcc0adaaca8a243c3068f6ffa69958 SHA512 cdae7eb661127111f4cab5dfcf3c22e0bc6c49f20fce107786ead3213356f87e9057f4f8025e6417e4503299e632ecb97cc25e94aca6f6034f999a86843ccda7 WHIRLPOOL 30c23e2cc96038df0f7028bd5392c3a8ea08bdcb7e2ede85e35dc4459162f72f7a7d2fdc79c040fda82d93d4348b6e2765f0e28285e36703eae088b4c527cce0
diff --git a/dev-ada/asis-gcc/asis-gcc-3.4.6.ebuild b/dev-ada/asis-gcc/asis-gcc-3.4.6.ebuild
new file mode 100644
index 000000000000..abe8c64f55d8
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-3.4.6.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+DESCRIPTION="The Ada Semantic Interface Specification (tools tied to compiler). GnuAda version"
+HOMEPAGE="http://gnuada.sourceforge.net/"
+LICENSE="GMGPL"
+
+KEYWORDS="~amd64 x86"
+
+Gnat_Name="gnat-gcc"
+My_PN="asis"
+My_PV="3.4.4"
+
+SRC_URI="http://dev.gentoo.org/~george/src/${My_PN}-${My_PV}.tar.bz2"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${PV}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html
+ app-text/ghostscript-gpl )"
+
+S="${WORKDIR}/${My_PN}-${My_PV}"
+
+# Execstack is not nearly as dangerous in Ada as in C and would require a lot of
+# work to work around. See bug #141315.
+QA_EXECSTACK="usr/$(get_libdir)/gnat-gcc/*/${SLOT}/adalib/libasis-${SLOT}.so
+ usr/$(get_libdir)/gnat-gcc/*/${SLOT}/adalib/libasis.a
+ usr/*/gnat-gcc-bin/${SLOT}/*"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gcc instead of asis
+My_LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+My_BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+My_DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/asis-${PV} again.."
+ echo
+ die
+ fi
+ if [[ -e ${My_LIBPATH}/adalib/libasis.a ]] ; then
+ echo
+ ewarn "gnatmake of gnat-gcc unfortunately has problems forcind the build"
+ ewarn "if the package is already installed."
+ eerror "Please unmerge asis-gcc first and then resume the merge:"
+ eerror "emerge --unmerge asis-gcc && emerge asis-gcc"
+ echo
+ die
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis -cargs ${CFLAGS} || die "building libasis.a failed"
+ gnatmake -Pasis_dyn -f -cargs ${CFLAGS} || die "building libasis.so failed"
+
+ # build tools
+ # we need version.o generated for all the tools
+ gcc -c -o obj/version.o gnat/version.c
+ for fn in asistant gnatelim gnatstub ; do
+ pushd tools/${fn}
+ gnatmake -o ${fn} ${fn}-driver.adb -I../../asis/ -I../../gnat/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+ done
+
+ pushd tools/adabrowse
+ gcc -c util-nl.c
+ gnatmake -I../../asis -I../../gnat adabrowse -L../../lib -cargs ${CFLAGS} \
+ -largs -lasis ../../obj/version.o || die
+ popd
+ pushd tools/semtools
+ gnatmake -I../../asis -I../../gnat adadep -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ gnatmake -I../../asis -I../../gnat adasubst -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ popd
+
+ # common stuff is just docs in this case
+ if use doc; then
+ pushd documentation
+ make all || die "Failed while compiling documentation"
+ for fn in *.ps; do ps2pdf ${fn}; done
+ popd
+ fi
+}
+
+src_install () {
+ # install the lib
+ dodir ${My_LIBPATH}/adalib
+ chmod 0755 lib_dyn/libasis.so
+ cp lib_dyn/libasis.so "${D}${My_LIBPATH}"/adalib/libasis-${SLOT}.so
+ insinto ${My_LIBPATH}/adalib
+ doins obj/*.ali
+ doins lib/libasis.a
+ # make appropriate symlinks
+ pushd "${D}${My_LIBPATH}"/adalib
+ ln -s libasis-${SLOT}.so libasis.so
+ popd
+ # sources
+ insinto ${My_LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+ # two files are already part of gnat, removing to avoid collision
+ rm "${D}${My_LIBPATH}"/adainclude/g-string.ad?
+
+ # tools
+ mkdir -p "${D}${My_BINPATH}"
+ for fn in tools/{adabrowse,asistant,gnatelim,gnatstub}; do
+ cp ${fn}/${fn:6} "${D}${My_BINPATH}"
+ done
+ cp tools/semtools/ada{dep,subst} "${D}${My_BINPATH}"
+
+ if use doc; then
+ # docs and examples
+ dodoc documentation/*.{txt,ps}
+ dohtml documentation/*.html
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf
+ # info's should go into gnat-gpl dirs
+ insinto ${My_DATAPATH}/info/
+ doins documentation/*.info
+ fi
+
+ insinto /usr/share/doc/${PF}
+ doins -r examples/ tutorial/ templates/
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/asis-gcc-4.1.2-r1.ebuild b/dev-ada/asis-gcc/asis-gcc-4.1.2-r1.ebuild
new file mode 100644
index 000000000000..4b7a568079b1
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.1.2-r1.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+DESCRIPTION="The Ada Semantic Interface Specification (tools tied to compiler). GnuAda version"
+HOMEPAGE="http://gnuada.sourceforge.net/"
+LICENSE="GMGPL"
+
+KEYWORDS="amd64 x86"
+
+Gnat_Name="gnat-gcc"
+My_PN="asis"
+SRC_URI="http://dev.gentoo.org/~george/src/${P}.tar.bz2"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${PV}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+# overwriting gnatboot's S
+S="${WORKDIR}/${My_PN}-${PV}"
+
+# Execstack is not nearly as dangerous in Ada as in C and would require a lot of
+# work to work around. See bug #141315.
+QA_EXECSTACK="usr/lib/gnat-gcc/*/${SLOT}/adalib/libasis-${SLOT}.so
+ usr/lib/gnat-gcc/*/${SLOT}/adalib/libasis.a
+ usr/*/gnat-gcc-bin/${SLOT}/*"
+
+# it may be even better to force plain -O2 -pipe here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gcc instead of asis
+My_LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+My_BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+My_DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+pkg_setup() {
+ local currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/asis-${PV} again.."
+ echo
+ die
+ fi
+ if [[ -e ${My_LIBPATH}/adalib/libasis.a ]] ; then
+ echo
+ ewarn "gnatmake of gnat-gcc unfortunately has problems forcind the build"
+ ewarn "if the package is already installed."
+ eerror "Please unmerge asis-gcc first and then resume the merge:"
+ eerror "emerge --unmerge asis-gcc && emerge asis-gcc"
+ echo
+ die
+ fi
+}
+
+# we need to avoid calling gnatboot_src_unpack
+src_unpack() {
+ unpack ${A}
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -f -Pasis_stat -cargs ${CFLAGS} || die "building libasis.a failed"
+ gnatmake -f -Pasis_dyn -cargs ${CFLAGS} || die "building libasis.so failed"
+ chmod 0444 lib/*.ali
+
+ # build tools
+ # we need version.o generated for all the tools
+ gcc -c -o obj/version.o gnat/version.c
+ for fn in gnatelim gnatstub gnatpp ; do
+ pushd tools/${fn}
+ gnatmake -o ${fn} ${fn}-driver.adb -I../../asis/ -I../../gnat/ \
+ -I../tool_utils/ -I../tool_utils/templates/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+ done
+ pushd tools/gnatmetric
+ gnatmake -o gnatmetric metrics-simple_driver.adb -I../../asis/ -I../../gnat/ \
+ -I../tool_utils/ -I../tool_utils/templates/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+
+ pushd tools/adabrowse
+ gcc -c util-nl.c
+ gnatmake -I../../asis -I../../gnat adabrowse -L../../lib -cargs ${CFLAGS} \
+ -largs -lasis ../../obj/version.o || die
+ popd
+ pushd tools/semtools
+ gnatmake -I../../asis -I../../gnat adadep -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ gnatmake -I../../asis -I../../gnat adasubst -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ popd
+
+ # common stuff is just docs in this case
+ if use doc; then
+ pushd documentation
+ make all || die "Failed while compiling documentation"
+ for fn in *.ps; do ps2pdf ${fn}; done
+ popd
+ fi
+}
+
+src_install () {
+ # install the lib
+ dodir ${My_LIBPATH}/adalib
+ # doins grossly screws permissions
+ cp -dpP lib/* "${D}${My_LIBPATH}"/adalib
+ # sources
+ insinto ${My_LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+
+ # tools
+ mkdir -p "${D}${My_BINPATH}"
+ for fn in tools/{adabrowse,gnatelim,gnatstub,gnatpp,gnatmetric}; do
+ cp ${fn}/${fn:6} "${D}${My_BINPATH}"
+ done
+ cp tools/semtools/ada{dep,subst} "${D}${My_BINPATH}"
+
+ # docs and examples
+ if use doc ; then
+ dodoc documentation/*.{txt,ps}
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${My_DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf examples/ tutorial/ templates/
+ fi
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/asis-gcc-4.1.2.ebuild b/dev-ada/asis-gcc/asis-gcc-4.1.2.ebuild
new file mode 100644
index 000000000000..88df331bfe5b
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.1.2.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+DESCRIPTION="The Ada Semantic Interface Specification (tools tied to compiler). GnuAda version"
+HOMEPAGE="http://gnuada.sourceforge.net/"
+LICENSE="GMGPL"
+
+KEYWORDS="~amd64 ~x86"
+
+Gnat_Name="gnat-gcc"
+My_PN="asis"
+# can reuse the same sources, but we need to force an upgrade
+My_PV="4.1.1"
+SRC_URI="http://dev.gentoo.org/~george/src/${PN}-${My_PV}.tar.bz2"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${PV}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+# overwriting gnatboot's S
+S="${WORKDIR}/${My_PN}-${My_PV}"
+
+# Execstack is not nearly as dangerous in Ada as in C and would require a lot of
+# work to work around. See bug #141315.
+QA_EXECSTACK="usr/lib/gnat-gcc/*/${SLOT}/adalib/libasis-4.1.so
+ usr/lib/gnat-gcc/*/${SLOT}/adalib/libasis.a
+ usr/*/gnat-gcc-bin/${SLOT}/*"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/asis-${PV} again.."
+ echo
+ die
+ fi
+}
+
+# we need to avoid calling gnatboot_src_unpack
+src_unpack() {
+ unpack ${A}
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis -cargs ${CFLAGS} || die "building libasis.a failed"
+ gnatmake -Pasis_dyn -f -cargs ${CFLAGS} || die "building libasis.so failed"
+
+ # build tools
+ # we need version.o generated for all the tools
+ gcc -c -o obj/version.o gnat/version.c
+ for fn in gnatelim gnatstub gnatpp ; do
+ pushd tools/${fn}
+ gnatmake -o ${fn} ${fn}-driver.adb -I../../asis/ -I../../gnat/ \
+ -I../tool_utils/ -I../tool_utils/templates/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+ done
+ pushd tools/gnatmetric
+ gnatmake -o gnatmetric metrics-simple_driver.adb -I../../asis/ -I../../gnat/ \
+ -I../tool_utils/ -I../tool_utils/templates/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+
+ pushd tools/adabrowse
+ gcc -c util-nl.c
+ gnatmake -I../../asis -I../../gnat adabrowse -L../../lib -cargs ${CFLAGS} \
+ -largs -lasis ../../obj/version.o || die
+ popd
+ pushd tools/semtools
+ gnatmake -I../../asis -I../../gnat adadep -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ gnatmake -I../../asis -I../../gnat adasubst -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ popd
+
+ # common stuff is just docs in this case
+ if use doc; then
+ pushd documentation
+ make all || die "Failed while compiling documentation"
+ for fn in *.ps; do ps2pdf ${fn}; done
+ popd
+ fi
+}
+
+src_install () {
+ # we need to adjust some vars defined in gnatbuild.eclass so that they use
+ # gnat-gcc instead of asis
+ LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+ BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+ DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+ # install the lib
+ dodir ${LIBPATH}/adalib
+ chmod 0755 lib_dyn/libasis.so
+ cp lib_dyn/libasis.so "${D}${LIBPATH}"/adalib/libasis-${SLOT}.so
+ insinto ${LIBPATH}/adalib
+ doins obj/*.ali
+ chmod 0444 "${D}${LIBPATH}"/adalib/*.ali
+ doins lib/libasis.a
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${SLOT}.so libasis.so
+ popd
+ # sources
+ insinto ${LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ for fn in tools/{adabrowse,gnatelim,gnatstub,gnatpp,gnatmetric}; do
+ cp ${fn}/${fn:6} "${D}${BINPATH}"
+ done
+ cp tools/semtools/ada{dep,subst} "${D}${BINPATH}"
+
+ # docs and examples
+ if use doc ; then
+ dodoc documentation/*.{txt,ps}
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf examples/ tutorial/ templates/
+
+ # this version also provides wiki contents, may be added at some point,
+ # however it seems to make sense to just use the online wiki..
+ fi
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/asis-gcc-4.2.2.ebuild b/dev-ada/asis-gcc/asis-gcc-4.2.2.ebuild
new file mode 100644
index 000000000000..8d83229afba6
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.2.2.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild multilib
+
+DESCRIPTION="The Ada Semantic Interface Specification (tools tied to compiler). GnuAda version"
+HOMEPAGE="http://gnuada.sourceforge.net/"
+LICENSE="GMGPL"
+
+KEYWORDS="~amd64 ~x86"
+
+Gnat_Name="gnat-gcc"
+My_PN="asis"
+SRC_URI="http://dev.gentoo.org/~george/src/${P}.tar.bz2"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${SLOT}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/ghostscript-gpl
+ app-text/texi2html )"
+
+# overwriting gnatboot's S
+S="${WORKDIR}/${My_PN}-${PV}"
+
+# Execstack is not nearly as dangerous in Ada as in C and would require a lot of
+# work to work around. See bug #141315.
+QA_EXECSTACK="usr/$(get_libdir)/gnat-gcc/*/${SLOT}/adalib/libasis-${SLOT}.so
+ usr/$(get_libdir)/gnat-gcc/*/${SLOT}/adalib/libasis.a
+ usr/*/gnat-gcc-bin/${SLOT}/*"
+
+# it may be even better to force plain -O2 -pipe here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gcc instead of asis
+My_LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+My_BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+My_DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+pkg_setup() {
+ local currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/asis-${PV} again.."
+ echo
+ die
+ fi
+ if [[ -e ${My_LIBPATH}/adalib/libasis.a ]] ; then
+ echo
+ ewarn "gnatmake of gnat-gcc unfortunately has problems forcing the build"
+ ewarn "if the package is already installed."
+ eerror "Please unmerge asis-gcc first and then resume the merge:"
+ eerror "emerge --unmerge asis-gcc && emerge asis-gcc"
+ echo
+ die
+ fi
+}
+
+# we need to avoid calling gnatboot_src_unpack
+src_unpack() {
+ unpack ${A}
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -f -Pasis_stat -cargs ${CFLAGS} || die "building libasis.a failed"
+ gnatmake -f -Pasis_dyn -cargs ${CFLAGS} || die "building libasis.so failed"
+ chmod 0444 lib/*.ali
+
+ # build tools
+ # we need version.o generated for all the tools
+ gcc -c -o obj/version.o gnat/version.c
+ for fn in gnatelim gnatstub gnatpp ; do
+ pushd tools/${fn}
+ gnatmake -o ${fn} ${fn}-driver.adb -I../../asis/ -I../../gnat/ \
+ -I../tool_utils/ -I../tool_utils/templates/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+ done
+ pushd tools/gnatmetric
+ gnatmake -o gnatmetric metrics-simple_driver.adb -I../../asis/ -I../../gnat/ \
+ -I../tool_utils/ -I../tool_utils/templates/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+
+ pushd tools/adabrowse
+ gcc -c util-nl.c
+ gnatmake -I../../asis -I../../gnat adabrowse -L../../lib -cargs ${CFLAGS} \
+ -largs -lasis ../../obj/version.o || die
+ popd
+ pushd tools/semtools
+ gnatmake -I../../asis -I../../gnat adadep -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ gnatmake -I../../asis -I../../gnat adasubst -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ popd
+
+ # common stuff is just docs in this case
+ if use doc; then
+ pushd documentation
+ make all || die "Failed while compiling documentation"
+ for fn in *.ps; do ps2pdf ${fn}; done
+ popd
+ fi
+}
+
+src_install () {
+ # install the lib
+ dodir ${My_LIBPATH}/adalib
+ # doins grossly screws permissions
+ cp -dpP lib/* "${D}${My_LIBPATH}"/adalib
+ # sources
+ insinto ${My_LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+ # two files are already part of gnat, removing to avoid collision
+ rm "${D}${My_LIBPATH}"/adainclude/g-string.ad?
+
+ # tools
+ mkdir -p "${D}${My_BINPATH}"
+ for fn in tools/{adabrowse,gnatelim,gnatstub,gnatpp,gnatmetric}; do
+ cp ${fn}/${fn:6} "${D}${My_BINPATH}"
+ done
+ cp tools/semtools/ada{dep,subst} "${D}${My_BINPATH}"
+
+ # docs and examples
+ if use doc ; then
+ dodoc documentation/*.{txt,ps}
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${My_DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf examples/ tutorial/ templates/
+ fi
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/asis-gcc-4.3.0_pre132166.ebuild b/dev-ada/asis-gcc/asis-gcc-4.3.0_pre132166.ebuild
new file mode 100644
index 000000000000..5939377d1c01
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.3.0_pre132166.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild multilib
+
+DESCRIPTION="The Ada Semantic Interface Specification (tools tied to compiler). GnuAda version"
+HOMEPAGE="http://gnuada.sourceforge.net/"
+LICENSE="GMGPL"
+
+KEYWORDS="~amd64 ~x86"
+
+Gnat_Name="gnat-gcc"
+My_PN="asis"
+SRC_URI="http://dev.gentoo.org/~george/src/${P}.tar.bz2"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${SLOT}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/ghostscript-gpl
+ app-text/texi2html )"
+
+# overwriting gnatboot's S
+S="${WORKDIR}/${My_PN}-${PV}"
+
+# Execstack is not nearly as dangerous in Ada as in C and would require a lot of
+# work to work around. See bug #141315.
+QA_EXECSTACK="usr/$(get_libdir)/gnat-gcc/*/${SLOT}/adalib/libasis-${SLOT}.so
+ usr/$(get_libdir)/gnat-gcc/*/${SLOT}/adalib/libasis.a
+ usr/*/gnat-gcc-bin/${SLOT}/*"
+
+# it may be even better to force plain -O2 -pipe here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gcc instead of asis
+My_LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+My_BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+My_DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+pkg_setup() {
+ local currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/asis-${PV} again.."
+ echo
+ die
+ fi
+ if [[ -e ${My_LIBPATH}/adalib/libasis.a ]] ; then
+ echo
+ ewarn "gnatmake of gnat-gcc unfortunately has problems forcing the build"
+ ewarn "if the package is already installed."
+ eerror "Please unmerge asis-gcc first and then resume the merge:"
+ eerror "emerge --unmerge asis-gcc && emerge asis-gcc"
+ echo
+ die
+ fi
+}
+
+# we need to avoid calling gnatboot_src_unpack
+src_unpack() {
+ unpack ${A}
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -f -Pasis_stat -cargs ${CFLAGS} || die "building libasis.a failed"
+ gnatmake -f -Pasis_dyn -cargs ${CFLAGS} || die "building libasis.so failed"
+ chmod 0444 lib/*.ali
+
+ # build tools
+ # we need version.o generated for all the tools
+ gcc -c -o obj/version.o gnat/version.c
+ for fn in gnatelim gnatstub gnatpp ; do
+ pushd tools/${fn}
+ gnatmake -o ${fn} ${fn}-driver.adb -I../../asis/ -I../../gnat/ \
+ -I../tool_utils/ -I../tool_utils/templates/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+ done
+ pushd tools/gnatmetric
+ gnatmake -o gnatmetric metrics-simple_driver.adb -I../../asis/ -I../../gnat/ \
+ -I../tool_utils/ -I../tool_utils/templates/ \
+ -L../../lib -cargs ${CFLAGS} -largs -lasis ../../obj/version.o \
+ || die "building ${fn} failed"
+ popd
+
+ pushd tools/adabrowse
+ gcc -c util-nl.c
+ gnatmake -I../../asis -I../../gnat adabrowse -L../../lib -cargs ${CFLAGS} \
+ -largs -lasis ../../obj/version.o || die
+ popd
+ pushd tools/semtools
+ gnatmake -I../../asis -I../../gnat adadep -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ gnatmake -I../../asis -I../../gnat adasubst -L../../lib \
+ -cargs ${CFLAGS} -largs -lasis ../../obj/version.o || die
+ popd
+
+ # common stuff is just docs in this case
+ if use doc; then
+ pushd documentation
+ make all || die "Failed while compiling documentation"
+ for fn in *.ps; do ps2pdf ${fn}; done
+ popd
+ fi
+}
+
+src_install () {
+ # install the lib
+ dodir ${My_LIBPATH}/adalib
+ # doins grossly screws permissions
+ cp -dpP lib/* "${D}${My_LIBPATH}"/adalib
+ # make link point to the right location
+ pushd "${D}${My_LIBPATH}"/adalib/
+ rm libasis.so
+ ln -s libasis-${SLOT}.so libasis.so
+ popd
+ # sources
+ insinto ${My_LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+
+ # tools
+ mkdir -p "${D}${My_BINPATH}"
+ for fn in tools/{adabrowse,gnatelim,gnatstub,gnatpp,gnatmetric}; do
+ cp ${fn}/${fn:6} "${D}${My_BINPATH}"
+ done
+ cp tools/semtools/ada{dep,subst} "${D}${My_BINPATH}"
+
+ # docs and examples
+ if use doc ; then
+ dodoc documentation/*.{txt,ps}
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${My_DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf examples/ tutorial/ templates/
+ fi
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/asis-gcc-4.3.1-r1.ebuild b/dev-ada/asis-gcc/asis-gcc-4.3.1-r1.ebuild
new file mode 100644
index 000000000000..03d7596a2782
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.3.1-r1.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver=2009
+Gnat_Name="gnat-gcc"
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
+SRC_URI="http://dev.gentoo.org/~george/src/asis-gpl-${ACT_Ver}-src.tgz"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${SLOT}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-${ACT_Ver}-src"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gcc instead of asis
+LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+#QA_EXECSTACK="${BINPATH:1}/*
+# ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge asis-gcc:${SLOT} again.."
+ echo
+ die
+ fi
+ if [[ -e ${LIBPATH}/adalib/libasis.a ]] ; then
+ echo
+ ewarn "Already installed asis appears to interfer with the build."
+ eerror "Please unmerge matching asis-gcc first and then resume the merge:"
+ eerror "emerge --unmerge asis-gcc:${SLOT} && emerge asis-gcc"
+ ewarn
+ echo
+ die
+ fi
+}
+
+# we need to override the eclass defined src_unpack
+# and change gcc to gnatgcc where appropriate
+src_unpack() {
+ unpack ${A}
+ cd "${S}"/gnat/
+ # newer versions autogen snames.ad?
+ # Looks logical to keep it here, as this is a part of source prep
+ gnatmake xsnamest.adb
+ ./xsnamest
+ mv snames.ns snames.ads
+ mv snames.nb snames.adb
+ # need to change gcc -> gnatgcc
+ cd "${S}"
+ for fn in asis/a4g-gnat_int.adb \
+ asis/a4g-contt.adb \
+ gnat/snames.adb \
+ tools/tool_utils/asis_ul-common.adb \
+ tools/gnatmetric/metrics-compute.adb; do
+ sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
+ done
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
+ || die "building libasis.a failed"
+ gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
+ -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
+ || die "building libasis.so failed"
+
+ # build tools
+ for fn in tools/*; do
+ pushd ${fn}
+ gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
+ popd
+ done
+
+ # common stuff is just docs in this case
+ if use doc; then
+ emake -C documentation all || die "Failed while compiling documentation"
+ fi
+}
+
+src_install () {
+ # README asks to run make install, claiming that some sources are built at
+ # that point
+ make all install prefix="${D}"
+ # now manually move all the stuff to proper places
+ mkdir -p "${D}${LIBPATH}"
+ mv "${D}"lib/asis/ "${D}${LIBPATH}"/adalib
+ # install the shared lib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ mv "${D}"include/asis/ "${D}${LIBPATH}"/adainclude
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ find "${S}"/tools/ -type f -executable -exec cp {} "${D}${BINPATH}" \;
+ rm -f "${D}${BINPATH}"/Makefile*
+
+ # docs and examples
+ cd "${S}"/documentation/
+ dodoc *.txt
+ dohtml *.html
+ cd "${S}"
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf documentation/*.info tutorial/ templates/
+
+ # cleanup empty dirs
+ rm -rf "${D}"/{bin,include,lib,share}
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/asis-gcc-4.3.1.ebuild b/dev-ada/asis-gcc/asis-gcc-4.3.1.ebuild
new file mode 100644
index 000000000000..9f83772f8ddd
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.3.1.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver=2009
+Gnat_Name="gnat-gcc"
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
+SRC_URI="http://dev.gentoo.org/~george/src/asis-gpl-${ACT_Ver}-src.tgz"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${SLOT}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-${ACT_Ver}-src"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gcc instead of asis
+LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+#QA_EXECSTACK="${BINPATH:1}/*
+# ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge asis-gcc:${SLOT} again.."
+ echo
+ die
+ fi
+}
+
+# we need to override the eclass defined src_unpack
+# and change gcc to gnatgcc where appropriate
+src_unpack() {
+ unpack ${A}
+ cd "${S}"/gnat/
+ # newer versions autogen snames.ad?
+ # Looks logical to keep it here, as this is a part of source prep
+ gnatmake xsnamest.adb
+ ./xsnamest
+ mv snames.ns snames.ads
+ mv snames.nb snames.adb
+ # need to change gcc -> gnatgcc
+ cd "${S}"
+ for fn in asis/a4g-gnat_int.adb \
+ asis/a4g-contt.adb \
+ gnat/snames.adb \
+ tools/tool_utils/asis_ul-common.adb \
+ tools/gnatmetric/metrics-compute.adb; do
+ sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
+ done
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
+ || die "building libasis.a failed"
+ gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
+ -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
+ || die "building libasis.so failed"
+
+ # build tools
+ for fn in tools/*; do
+ pushd ${fn}
+ gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
+ popd
+ done
+
+ # common stuff is just docs in this case
+ if use doc; then
+ emake -C documentation all || die "Failed while compiling documentation"
+ fi
+}
+
+src_install () {
+ # README asks to run make install, claiming that some sources are built at
+ # that point
+ make all install prefix="${D}"
+ # now manually move all the stuff to proper places
+ mkdir -p "${D}${LIBPATH}"
+ mv "${D}"lib/asis/ "${D}${LIBPATH}"/adalib
+ # install the shared lib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ mv "${D}"include/asis/ "${D}${LIBPATH}"/adainclude
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ find "${S}"/tools/ -type f -executable -exec cp {} "${D}${BINPATH}" \;
+ rm -f "${D}${BINPATH}"/Makefile*
+
+ # docs and examples
+ cd "${S}"/documentation/
+ dodoc *.txt
+ dohtml *.html
+ doinfo *.info
+ cd "${S}"
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf tutorial/ templates/
+
+ # cleanup empty dirs
+ rm -rf "${D}"/{bin,include,lib,share}
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/asis-gcc-4.4.ebuild b/dev-ada/asis-gcc/asis-gcc-4.4.ebuild
new file mode 100644
index 000000000000..3136cdeaa22a
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.4.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver="2010"
+Gnat_Name="gnat-gcc"
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
+SRC_URI="http://dev.gentoo.org/~george/src/asis-gpl-${ACT_Ver}-src.tgz"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gcc-${SLOT}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-gpl-${ACT_Ver}-src"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gcc instead of asis
+LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+#QA_EXECSTACK="${BINPATH:1}/*
+# ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge asis-gcc:${SLOT} again.."
+ echo
+ die
+ fi
+ if [[ -e ${LIBPATH}/adalib/libasis.a ]] ; then
+ echo
+ ewarn "Already installed asis appears to interfer with the build."
+ eerror "Please unmerge matching asis-gcc first and then resume the merge:"
+ eerror "emerge --unmerge asis-gcc:${SLOT} && emerge asis-gcc"
+ echo
+ die
+ fi
+}
+
+# we need to override the eclass defined src_unpack
+# and change gcc to gnatgcc where appropriate
+src_unpack() {
+ unpack ${A}
+ cd "${S}"/gnat/
+ # newer versions autogen snames.ad?
+ # Looks logical to keep it here, as this is a part of source prep
+ gnatmake xsnamest.adb
+ ./xsnamest
+ mv snames.ns snames.ads
+ mv snames.nb snames.adb
+ # need to change gcc -> gnatgcc
+ cd "${S}"
+ for fn in asis/a4g-gnat_int.adb \
+ asis/a4g-contt.adb \
+ gnat/snames.adb \
+ tools/tool_utils/asis_ul-common.adb \
+ tools/gnatmetric/metrics-compute.adb; do
+ sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
+ done
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
+ || die "building libasis.a failed"
+ gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
+ -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
+ || die "building libasis.so failed"
+
+ # build tools
+ for fn in tools/*; do
+ pushd ${fn}
+ gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
+ popd
+ done
+
+ # no point in rebuilding pregenerated docs
+ #if use doc; then
+ # emake -C documentation all || die "Failed while compiling documentation"
+ #fi
+}
+
+src_install () {
+ # README asks to run make install, claiming that some sources are built at
+ # that point
+ make all install prefix="${D}"
+ # now manually move all the stuff to proper places
+ mkdir -p "${D}${LIBPATH}"
+ mv "${D}"lib/asis/ "${D}${LIBPATH}"/adalib
+ # install the shared lib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ mv "${D}"include/asis/ "${D}${LIBPATH}"/adainclude
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ find "${S}"/tools/ -type f -executable -exec cp {} "${D}${BINPATH}" \;
+ rm -f "${D}${BINPATH}"/Makefile*
+
+ # docs and examples
+ cd "${S}"/documentation/
+ if use doc; then
+ dodoc *.txt
+ dohtml *.html
+ cd "${S}"
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf documentation/*.info tutorial/ templates/
+ fi
+
+ # cleanup empty dirs
+ rm -rf "${D}"/{bin,include,lib,share}
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/metadata.xml b/dev-ada/asis-gcc/metadata.xml
new file mode 100644
index 000000000000..6a5b9ba04eba
--- /dev/null
+++ b/dev-ada/asis-gcc/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>
+ Ada Semantic Interface Specification is a published international ISO
+ standard (ISO/IEC 15291:1999). ASIS represents a compiler independent
+ toolset consisting of a set of standard Ada interfaces which allow extraction
+ of information about user source programs. This information was previously
+ only available inside the Ada compilers themselves or exported in
+ non-standard, and thus non portable mechanisms.
+ This particular package is adjusted for use with the FSF version of gnat
+ compilers.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/asis-gpl/Manifest b/dev-ada/asis-gpl/Manifest
new file mode 100644
index 000000000000..f4f21740f3f1
--- /dev/null
+++ b/dev-ada/asis-gpl/Manifest
@@ -0,0 +1,3 @@
+DIST asis-gpl-2006.tar.bz2 1546623 SHA256 66825814792b1ddce9a6e3cc43c7426f9a563d9dbaa1b254884139b51279ebf4 SHA512 6afba6c335329670977b0aee5275928a039968ef5120978e619959f30981fd5da971c6f72a1848399061fa03490c96ff1ad7bae6c197e667ad4bc798847952af WHIRLPOOL 06d5198dbd38c8c048175ff4464496d585eb4752007d074fda1f3e77cec8e8df49fa6c6b952ac1ef2df8609742773490301a9a4149ad435ec91d09629eea3a39
+DIST asis-gpl-2007-src.tgz 2268673 SHA256 6b8f5d3372bcfa83a49e991550f8e7ecb66d3fc59cac3d1cbc835eee32da189b SHA512 93c45c4cf056038eac70e14b07a9e1cd1de45ca8339b512633f9427622bfe669787b53c66124a46d6bdaaefaf8602b09e2e0345bfc6cdd758e52d32d63fd5fcc WHIRLPOOL f81712992035da6a8097be894c4202ab8159b8514b8828a5bf2b7922b2cd29e38e2cb7bc4bf3758d99889ca127035648946207e8c41592f873abb62020023d48
+DIST asis-gpl-2008-src.tgz 2324780 SHA256 74e306f4c24c79d2bd9395c3ec03edbbdaeb2741e962e7398116b45aa4c4869f SHA512 8513b3211c8021da54d1c79c3d10155c75a29be4780465666cd6e18c4c0e0565e5e5c15eaa1b21c0e18f6cc4342c7dcabcdf55b3f483a5587f227c3c6cf87fa2 WHIRLPOOL 9cf5fb78b79e4551ef10181b2b04d327421b3575223a9684d8d81ccf6e3df8ea2c9d0555ebee457fa059e6d7cb6a398ab7b2ab820ffa6a5f3b54e9ad63eb16b9
diff --git a/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild b/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild
new file mode 100644
index 000000000000..92d4d7c3bfe3
--- /dev/null
+++ b/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver=$(get_version_component_range 4)
+Gnat_Name="gnat-gpl"
+
+DESCRIPTION="The Ada Semantic Interface Specification (tools tied to compiler)"
+SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}.tar.bz2"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gpl-${PV}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-${ACT_Ver}"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/${P} again.."
+ echo
+ die
+ fi
+}
+
+# we need to override the eclass defined src_unpack
+src_unpack() {
+ unpack ${A}
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
+ || die "building libasis.a failed"
+ gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
+ -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
+ || die "building libasis.so failed"
+
+ # build tools
+ for fn in tools/*; do
+ pushd ${fn}
+ gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
+ popd
+ done
+
+ # common stuff is just docs in this case
+ if use doc; then
+ emake -C documentation all || die "Failed while compiling documentation"
+ fi
+}
+
+src_install () {
+ # we need to adjust some vars defined in gnatbuild.eclass so that they use
+ # gnat-gpl instead of asis
+ LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+ BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+ DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+ # install the lib
+ mkdir -p "${D}${LIBPATH}"/adalib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ insinto ${LIBPATH}/adalib
+ doins obj/*.ali lib/libasis.a
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ insinto ${LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ for fn in tools/{asistant,gnat*}; do
+ cp ${fn}/${fn:6} "${D}${BINPATH}"
+ done
+
+ # docs and examples
+ dodoc documentation/*.txt
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf examples/ tutorial/ templates/
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r1.ebuild b/dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r1.ebuild
new file mode 100644
index 000000000000..549d864d115c
--- /dev/null
+++ b/dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver=$(get_version_component_range 4)
+Gnat_Name="gnat-gpl"
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
+SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}-src.tgz"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gpl-${PV}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-${ACT_Ver}-src"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gpl instead of asis
+LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+QA_EXECSTACK="${BINPATH:1}/*
+ ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/${P} again.."
+ echo
+ die
+ fi
+}
+
+# we need to override the eclass defined src_unpack
+# and change gcc to gnatgcc where appropriate
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ for fn in asis/a4g-gnat_int.adb gnat/snames.adb tools/tool_utils/asis_ul-common.adb; do
+ sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
+ done
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
+ || die "building libasis.a failed"
+ gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
+ -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
+ || die "building libasis.so failed"
+
+ # build tools
+ for fn in tools/*; do
+ pushd ${fn}
+ gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
+ popd
+ done
+
+ # common stuff is just docs in this case
+ if use doc; then
+ emake -C documentation all || die "Failed while compiling documentation"
+ fi
+}
+
+src_install () {
+ # install the lib
+ mkdir -p "${D}${LIBPATH}"/adalib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ insinto ${LIBPATH}/adalib
+ doins obj/*.ali lib/libasis.a
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ insinto ${LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ for fn in tools/{asistant,gnat*}; do
+ cp ${fn}/${fn:6} "${D}${BINPATH}"
+ done
+
+ # docs and examples
+ dodoc documentation/*.txt
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf examples/ tutorial/ templates/
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r2.ebuild b/dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r2.ebuild
new file mode 100644
index 000000000000..00cd4390645c
--- /dev/null
+++ b/dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r2.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver=$(get_version_component_range 4)
+Gnat_Name="gnat-gpl"
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
+SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}-src.tgz"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gpl-${PV}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-${ACT_Ver}-src"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gpl instead of asis
+LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+QA_EXECSTACK="${BINPATH:1}/*
+ ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/${P} again.."
+ echo
+ die
+ fi
+}
+
+# we need to override the eclass defined src_unpack
+# and change gcc to gnatgcc where appropriate
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ for fn in asis/a4g-gnat_int.adb gnat/snames.adb \
+ tools/tool_utils/asis_ul-common.adb \
+ tools/gnatmetric/metrics-compute.adb; do
+ sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
+ done
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
+ || die "building libasis.a failed"
+ gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
+ -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
+ || die "building libasis.so failed"
+
+ # build tools
+ for fn in tools/*; do
+ pushd ${fn}
+ gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
+ popd
+ done
+
+ # common stuff is just docs in this case
+ if use doc; then
+ emake -C documentation all || die "Failed while compiling documentation"
+ fi
+}
+
+src_install () {
+ # install the lib
+ mkdir -p "${D}${LIBPATH}"/adalib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ insinto ${LIBPATH}/adalib
+ doins obj/*.ali lib/libasis.a
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ insinto ${LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ for fn in tools/{asistant,gnat*}; do
+ cp ${fn}/${fn:6} "${D}${BINPATH}"
+ done
+
+ # docs and examples
+ dodoc documentation/*.txt
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf examples/ tutorial/ templates/
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gpl/asis-gpl-4.1.3.2008-r1.ebuild b/dev-ada/asis-gpl/asis-gpl-4.1.3.2008-r1.ebuild
new file mode 100644
index 000000000000..04d7ddbd9d2b
--- /dev/null
+++ b/dev-ada/asis-gpl/asis-gpl-4.1.3.2008-r1.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# NOTE: gnat-gpl-2007 and 2008 have "incompatible bugs"
+# so, we separate asis following the separation of gnat
+SLOT="4.1-2008"
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver=$(get_version_component_range 4)
+Gnat_Name="gnat-gpl"
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
+SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}-src.tgz"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gpl-${PV}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-${ACT_Ver}-src"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gpl instead of asis
+LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+QA_EXECSTACK="${BINPATH:1}/*
+ ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/${P} again.."
+ echo
+ die
+ fi
+}
+
+# we need to override the eclass defined src_unpack
+# and change gcc to gnatgcc where appropriate
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ for fn in asis/a4g-gnat_int.adb gnat/snames.adb \
+ tools/tool_utils/asis_ul-common.adb \
+ tools/gnatmetric/metrics-compute.adb; do
+ sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
+ done
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
+ || die "building libasis.a failed"
+ gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
+ -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
+ || die "building libasis.so failed"
+
+ # build tools
+ for fn in tools/*; do
+ pushd ${fn}
+ gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
+ popd
+ done
+
+ # common stuff is just docs in this case
+ if use doc; then
+ emake -C documentation all || die "Failed while compiling documentation"
+ fi
+}
+
+src_install () {
+ # install the lib
+ mkdir -p "${D}${LIBPATH}"/adalib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ insinto ${LIBPATH}/adalib
+ doins obj/*.ali lib/libasis.a
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ insinto ${LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ for fn in tools/{asistant,gnat*}; do
+ cp ${fn}/${fn:6} "${D}${BINPATH}"
+ done
+
+ # docs and examples
+ dodoc documentation/*.txt
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf tutorial/ templates/
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gpl/asis-gpl-4.1.3.2008.ebuild b/dev-ada/asis-gpl/asis-gpl-4.1.3.2008.ebuild
new file mode 100644
index 000000000000..885498f07486
--- /dev/null
+++ b/dev-ada/asis-gpl/asis-gpl-4.1.3.2008.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic gnatbuild
+
+ACT_Ver=$(get_version_component_range 4)
+Gnat_Name="gnat-gpl"
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
+SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}-src.tgz"
+HOMEPAGE="https://libre.adacore.com/"
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc"
+RDEPEND="=dev-lang/gnat-gpl-${PV}*"
+DEPEND="${RDEPEND}
+ doc? ( virtual/latex-base
+ app-text/texi2html )"
+
+S="${WORKDIR}/asis-${ACT_Ver}-src"
+
+# it may be even better to force plain -O2 -pipe -ftracer here
+replace-flags -O3 -O2
+
+# we need to adjust some vars defined in gnatbuild.eclass so that they use
+# gnat-gpl instead of asis
+LIBPATH=${LIBPATH/${PN}/${Gnat_Name}}
+BINPATH=${BINPATH/${PN}/${Gnat_Name}}
+DATAPATH=${DATAPATH/${PN}/${Gnat_Name}}
+
+QA_EXECSTACK="${BINPATH:1}/*
+ ${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
+
+pkg_setup() {
+ currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }')
+ if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then
+ echo
+ eerror "The active gnat profile does not correspond to the selected"
+ eerror "version of asis! Please install the appropriate gnat (if you"
+ eerror "did not so yet) and run:"
+ eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ eerror "env-update && source /etc/profile"
+ eerror "and then emerge =dev-ada/${P} again.."
+ echo
+ die
+ fi
+}
+
+# we need to override the eclass defined src_unpack
+# and change gcc to gnatgcc where appropriate
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ for fn in asis/a4g-gnat_int.adb gnat/snames.adb \
+ tools/tool_utils/asis_ul-common.adb \
+ tools/gnatmetric/metrics-compute.adb; do
+ sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
+ done
+}
+
+src_compile() {
+ # Build the shared library first, we need -fPIC here
+ gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \
+ || die "building libasis.a failed"
+ gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \
+ -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \
+ || die "building libasis.so failed"
+
+ # build tools
+ for fn in tools/*; do
+ pushd ${fn}
+ gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed"
+ popd
+ done
+
+ # common stuff is just docs in this case
+ if use doc; then
+ emake -C documentation all || die "Failed while compiling documentation"
+ fi
+}
+
+src_install () {
+ # install the lib
+ mkdir -p "${D}${LIBPATH}"/adalib
+ chmod 0755 obj/libasis-${ACT_Ver}.so
+ cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib
+ insinto ${LIBPATH}/adalib
+ doins obj/*.ali lib/libasis.a
+ # make appropriate symlinks
+ pushd "${D}${LIBPATH}"/adalib
+ ln -s libasis-${ACT_Ver}.so libasis.so
+ popd
+ # sources
+ insinto ${LIBPATH}/adainclude
+ doins gnat/*.ad[sb]
+ doins asis/*.ad[sb]
+
+ # tools
+ mkdir -p "${D}${BINPATH}"
+ for fn in tools/{asistant,gnat*}; do
+ cp ${fn}/${fn:6} "${D}${BINPATH}"
+ done
+
+ # docs and examples
+ dodoc documentation/*.txt
+ dohtml documentation/*.html
+ # info's should go into gnat-gpl dirs
+ insinto ${DATAPATH}/info/
+ doins documentation/*.info
+
+ insinto /usr/share/doc/${PF}
+ doins -r documentation/*.pdf tutorial/ templates/
+}
+
+pkg_postinst() {
+ echo
+ elog "The ASIS is installed for the active gnat compiler at gnat's location."
+ elog "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gpl/metadata.xml b/dev-ada/asis-gpl/metadata.xml
new file mode 100644
index 000000000000..c352257de3bd
--- /dev/null
+++ b/dev-ada/asis-gpl/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>
+ Ada Semantic Interface Specification is a published international ISO
+ standard (ISO/IEC 15291:1999). ASIS represents a compiler independent
+ toolset consisting of a set of standard Ada interfaces which allow extraction
+ of information about user source programs. This information was previously
+ only available inside the Ada compilers themselves or exported in
+ non-standard, and thus non portable mechanisms.
+ This is the ACT version.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/aunit/Manifest b/dev-ada/aunit/Manifest
new file mode 100644
index 000000000000..6cfe5d69f1e6
--- /dev/null
+++ b/dev-ada/aunit/Manifest
@@ -0,0 +1,3 @@
+DIST aunit-1.05.tar.bz2 109000 SHA256 76a7240203ab708743bc40fe29209e04b3edbe429a4dfb35be580fc80d490b09 SHA512 3a51f3d614061bed124636852b3677f95a739b0ffc748d2f6570cd2bfcf73db36364504b07e4169e268861bdce5a22e2d3a467d809a8776a8e407e83a7364a77 WHIRLPOOL eb403e4e30887ae202302d8b26ba3909190bd05d721688cde685b98539eb37c4db52f9a07e9547be380d735593dfd349a2e4d1f55153d5b2cdb38d3caa0403fe
+DIST aunit-2.01.tar.bz2 186622 SHA256 fca41d07a7e5a7f82e8f53fb8d579c250ae5436adf9f677dfa2d3f657453b8f9 SHA512 6a07745cc6d4027b48064240d9511634725201ed3f59f3adb6907ec3b58409cca472cd0790c364ceb412c14fec7633d62277cdaf94c66458fab5c11c8fe058bf WHIRLPOOL fea15eeece2023f6388e7ad9dafcdd93c1d263b8a356549d85189ab137868b7e7d7641cf72440dfb39c4ebba37bd19dd665e6d434b506b84882955aa04bd46a7
+DIST aunit-2.03.tar.bz2 218201 SHA256 b57862b01094e9db2d564aeb25377cf91a678802f4124e455a432e1ec8fb8367 SHA512 f3afb4ae05e493eb598368f223dc8dc1740ee11b58f00394b6bececba4a2c7409ed2b48bbc7104a4099ac919e51e741ebe2738133410274240ccecd23fb2ad7d WHIRLPOOL 4e3b46b8156fc25fb2f1270cb08273b81ed5e054c196453745a77a1e99302857b7ecd36a6c071981e7e09f1efc7cb5d1dac933053f60dd5828bb0aa62fc7570a
diff --git a/dev-ada/aunit/aunit-1.05.ebuild b/dev-ada/aunit/aunit-1.05.ebuild
new file mode 100644
index 000000000000..cf7eacee4d89
--- /dev/null
+++ b/dev-ada/aunit/aunit-1.05.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat
+
+IUSE=""
+
+DESCRIPTION="Aunit, Ada unit testing framework"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+HOMEPAGE="https://libre.adacore.com/aunit/"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+
+DEPEND="virtual/ada"
+RDEPEND="${DEPEND}"
+
+lib_compile() {
+ gnatmake -Paunit
+ gnatmake -Paunit_dyn
+}
+
+lib_install() {
+ mv aunit/lib/* ${DL}
+ chmod 0444 ${DL}/*.ali
+}
+
+src_install () {
+ dodir ${AdalibSpecsDir}/${PN}
+ insinto ${AdalibSpecsDir}/${PN}
+ doins aunit/*/*.ad?
+
+ dodir ${AdalibDataDir}/${PN}
+ insinto ${AdalibDataDir}/${PN}
+ doins -r support/aunit.xml template/
+
+ #set up environment
+ echo "LDPATH=%DL%" > ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ dodoc README docs/aunit.txt
+ dohtml docs/aunit.{html,css}
+ doinfo docs/aunit.info
+ cp -dPr test/ docs/aunit.pdf "${D}/usr/share/doc/${PF}"
+}
diff --git a/dev-ada/aunit/aunit-2.01.ebuild b/dev-ada/aunit/aunit-2.01.ebuild
new file mode 100644
index 000000000000..14a7c20a5e27
--- /dev/null
+++ b/dev-ada/aunit/aunit-2.01.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat
+
+IUSE=""
+
+DESCRIPTION="Aunit, Ada unit testing framework"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+HOMEPAGE="https://libre.adacore.com/aunit/"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+
+DEPEND="virtual/ada"
+RDEPEND="${DEPEND}"
+
+lib_compile() {
+ cd aunit
+ SUPPORT_EXCEPTION=yes SUPPORT_CALENDAR=yes gnatmake -Paunit_build
+ SUPPORT_EXCEPTION=yes SUPPORT_CALENDAR=yes gnatmake -Paunit_build_dyn
+}
+
+lib_install() {
+ mv aunit/lib/* ${DL}
+ chmod 0444 ${DL}/*.ali
+}
+
+src_install () {
+ dodir ${AdalibSpecsDir}/${PN}
+ insinto ${AdalibSpecsDir}/${PN}
+ doins aunit/*/*.ad? aunit/framework/*/*.ad?
+
+ dodir ${AdalibDataDir}/${PN}
+ insinto ${AdalibDataDir}/${PN}
+ doins -r support/aunit.xml template/
+
+ #set up environment
+ echo "LDPATH=%DL%" > ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ dodoc README docs/aunit.txt
+ dohtml docs/aunit.{html,css}
+ doinfo docs/aunit.info
+ cp -dPr test/ docs/aunit.pdf "${D}/usr/share/doc/${PF}"
+}
diff --git a/dev-ada/aunit/aunit-2.03.ebuild b/dev-ada/aunit/aunit-2.03.ebuild
new file mode 100644
index 000000000000..4fb13fd1787c
--- /dev/null
+++ b/dev-ada/aunit/aunit-2.03.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat
+
+IUSE=""
+
+DESCRIPTION="Aunit, Ada unit testing framework"
+SRC_URI="http://dev.gentoo.org/~george/src/${P}.tar.bz2"
+HOMEPAGE="https://libre.adacore.com/aunit/"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+
+DEPEND="virtual/ada"
+RDEPEND="${DEPEND}"
+
+lib_compile() {
+ cd aunit
+ SUPPORT_EXCEPTION=yes SUPPORT_CALENDAR=yes gnatmake -Paunit_build
+ SUPPORT_EXCEPTION=yes SUPPORT_CALENDAR=yes gnatmake -Paunit_build_dyn
+}
+
+lib_install() {
+ mv aunit/lib/* ${DL}
+ chmod 0444 ${DL}/*.ali
+}
+
+src_install () {
+ dodir ${AdalibSpecsDir}/${PN}
+ insinto ${AdalibSpecsDir}/${PN}
+ doins aunit/*/*.ad? aunit/framework/*/*.ad?
+
+ dodir ${AdalibDataDir}/${PN}
+ insinto ${AdalibDataDir}/${PN}
+ doins -r support/aunit.xml template/
+
+ #set up environment
+ echo "LDPATH=%DL%" > ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ dodoc README docs/aunit.txt
+ dohtml docs/aunit.{html,css}
+ doinfo docs/aunit.info
+ cp -dPr test/ docs/aunit.pdf "${D}/usr/share/doc/${PF}"
+}
diff --git a/dev-ada/aunit/metadata.xml b/dev-ada/aunit/metadata.xml
new file mode 100644
index 000000000000..83f771493132
--- /dev/null
+++ b/dev-ada/aunit/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>AUnit is a set of Ada packages based on the xUnit family of unit test frameworks. It's intended as a developer's tool to facilitate confident writing and evolution of Ada software. It is purposely lightweight, as one of its main goals is to make it easy to develop and run unit tests, rather than to generate artifacts for process management. The framework supports easy composition of sets of unit tests to provide flexibility in determining what tests to run for a given purpose.</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/booch_components/Manifest b/dev-ada/booch_components/Manifest
new file mode 100644
index 000000000000..b26b4c2fbbc9
--- /dev/null
+++ b/dev-ada/booch_components/Manifest
@@ -0,0 +1,4 @@
+DIST bc-20051222.tgz 181962 SHA256 b9ea09a084fcfd3cab04951b6ad3b882b8bec41c05203986004c46ad60d4d27f SHA512 3d7f39255d832d82f8bf3ab9e68343c69d7c20757f84cd12708cde62f1e8a94764b7966bddd0727c7c0c6c25249911d7e17ba5e0024c6f22cecccd6b2229fee0 WHIRLPOOL fe25da0388fb2f683d775dd86de40b2dd342364d93f26b82e7f3a4c07020b252b903ccdb5890b1253c3595447df01711f75bead53dd4b2b281955bcf68ce7b9c
+DIST bc-20070420.tgz 183645 SHA256 09eb43fa318c354ef5dc57c25faaa0d472fedc7b26215e14914e611a483686bb SHA512 7af86db3b7c7543b6fcbe9f7154ece69a1e4219d5da9a9652cc75f76b2968ccb4682792f4f3041addec7d56a0ebed6e532cdac05da6461c6510f256cd4ae34aa WHIRLPOOL e3772fddbebc719b2865686c6890d456eb29f9274df25c1eed2e353aca417efbe757582dac776743fafd19d088329af20cff58719f3e882e1b53fe0ff8d1d1c3
+DIST bc-html-20051222.zip 59373 SHA256 1f92a74fb2427af92c28a4dacc5d02b515a6ae1a783a354efb8b9b2f11b85dd4 SHA512 14667e14f7075311720356931352ad261bf544928a10e60ab414fac45349a5833b94facf939b6ec4c48e7238c8952607de9e8d85cbc291250ed2d4eda23c5310 WHIRLPOOL 3a7ff4fb9bfd55baead14d32ac29240ddfbe29856d070e269f2c49394c61cb1249bff880a39659cd005772a3203e1d0c16f6e680bee241f68dd3f2a7bfe87af6
+DIST bc-html-20070420.zip 60500 SHA256 049c5edbe8c54cb632807488deb5d2782923b934afde16b565dcb7bab79629da SHA512 d5d70d73c2a6850f00912d2f2c92a5ce16f9fb72c1c0c1399095686c7c77250f40d56586c75a6ac14ecd19ed9a35b3852ef8c97f5fd52639c4d949a0c1568219 WHIRLPOOL b6c851cf19b743caea964862487b540430c594b1c416e36ae9e2ac295274f8ee2ddda7232d964d5e96311a8871b06a35ddd79b023c0eaf7b1e9a8507bd2cbe22
diff --git a/dev-ada/booch_components/booch_components-20051222-r1.ebuild b/dev-ada/booch_components/booch_components-20051222-r1.ebuild
new file mode 100644
index 000000000000..31d25b88cc58
--- /dev/null
+++ b/dev-ada/booch_components/booch_components-20051222-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+IUSE="doc"
+
+inherit gnat
+
+My_PN="bc"
+S="${WORKDIR}/${My_PN}-${PV}"
+DESCRIPTION="Booch Components for Ada"
+SRC_URI="mirror://sourceforge/booch95/${My_PN}-${PV}.tgz
+ mirror://sourceforge/booch95/${My_PN}-html-${PV}.zip"
+
+HOMEPAGE="http://booch95.sourceforge.net/"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+
+RDEPEND="virtual/ada
+ >=app-eselect/eselect-gnat-0.7"
+
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+lib_compile() {
+ cd ${SL}/GNAT
+ make
+}
+
+lib_install() {
+ # new style booch components install Debug and Release versions, we only
+ # need the lib subdir of either
+ mkdir -p "${DL}"/Debug
+ # both $SL and $DL are under ${WORKDIR}, so no dodir, doins...
+ # (as lib_install is called from src_compile it is not safe to have $DL
+ # under $D)
+ mv "${SL}"/GNAT/*-Release/lib/* "${DL}"
+ mv "${SL}"/GNAT/*-Debug/lib/* "${DL}"/Debug
+}
+
+src_install () {
+ dodir "${AdalibSpecsDir}/${PN}"
+ cd "${S}"
+ insinto "${AdalibSpecsDir}/${PN}"
+ doins *.ad?
+
+ #set up environment
+ echo "LDPATH=%DL%" > ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ # Install documentation.
+ dodoc README
+ if use doc ; then
+ einfo "installing docs"
+ cd "${WORKDIR}"
+ dohtml *.html *.gif *.jpg
+ cp coldframe-hash.* x.ada "${D}"/usr/share/doc/${PF}/html
+
+ cd "${S}"
+ dodir /usr/share/doc/${PF}/demo
+ insinto /usr/share/doc/${PF}/demo
+ doins demo/*
+
+ dodir /usr/share/doc/${PF}/test
+ insinto /usr/share/doc/${PF}/test
+ doins test/*
+ fi
+}
+
+pkg_postinst(){
+ einfo "Updating gnat configuration to pick up ${PN} library..."
+ eselect gnat update
+ elog "The environment has been set up to make gnat automatically find files in"
+ elog "Booch components. In order to immediately activate these settings please do"
+ elog "env-update"
+ elog "source /etc/profile"
+ elog "Otherwise the settings will become active next time you login"
+}
diff --git a/dev-ada/booch_components/booch_components-20070420.ebuild b/dev-ada/booch_components/booch_components-20070420.ebuild
new file mode 100644
index 000000000000..4d668809228b
--- /dev/null
+++ b/dev-ada/booch_components/booch_components-20070420.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+IUSE="doc"
+
+inherit gnat
+
+My_PN="bc"
+S="${WORKDIR}/${My_PN}-${PV}"
+DESCRIPTION="Booch Components for Ada"
+SRC_URI="mirror://sourceforge/booch95/${My_PN}-${PV}.tgz
+ mirror://sourceforge/booch95/${My_PN}-html-${PV}.zip"
+
+HOMEPAGE="http://booch95.sourceforge.net/"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+
+RDEPEND="virtual/ada"
+
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+lib_compile() {
+ cd "${SL}"/GNAT
+ make
+}
+
+lib_install() {
+ mkdir -p "${DL}"/Debug
+ mv "${SL}"/GNAT/*-Release/lib/* "${DL}"
+ mv "${SL}"/GNAT/*-Debug/lib/* "${DL}"/Debug
+ chmod 0444 "${DL}"/*.ali "${DL}"/Debug/*.ali
+}
+
+src_install () {
+ dodir "${AdalibSpecsDir}/${PN}"
+ insinto "${AdalibSpecsDir}/${PN}"
+ doins *.ad?
+
+ #set up environment
+ echo "LDPATH=%DL%" > ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ # Install documentation.
+ dodoc README
+ if use doc ; then
+ einfo "installing docs"
+ cd "${WORKDIR}"
+ dohtml *.html *.gif *.jpg
+ cp coldframe-hash.* x.ada "${D}"/usr/share/doc/${PF}/html
+
+ cd "${S}"
+ dodir /usr/share/doc/${PF}/demo
+ insinto /usr/share/doc/${PF}/demo
+ doins demo/*
+
+ dodir /usr/share/doc/${PF}/test
+ insinto /usr/share/doc/${PF}/test
+ doins test/*
+ fi
+}
diff --git a/dev-ada/booch_components/metadata.xml b/dev-ada/booch_components/metadata.xml
new file mode 100644
index 000000000000..0e86180028f1
--- /dev/null
+++ b/dev-ada/booch_components/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ada</herd>
+ <longdescription>The booch components provide a set of reusable components used in an efficient and appropriate manner, with the overall goal of balancing usability and extensibility. The BCs cover several issues: Time and Space semantics, Storage Management policies, Exception and Idioms for iteration.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">booch95</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ada/cbind/Manifest b/dev-ada/cbind/Manifest
new file mode 100644
index 000000000000..d5289132ae64
--- /dev/null
+++ b/dev-ada/cbind/Manifest
@@ -0,0 +1 @@
+DIST cbind-6.0.1.tar.bz2 69865 SHA256 dd602e065e1c925995c1b5bdaaef338f94053bfd4391f18527ce96e8ca521689 SHA512 160535ac298ad5e2873cc3de5455a25750dba6df9c7a56a28474a02985b8f7ffdab0039392586e742b0fea1e4e8dcddef2e674205b0b408459b768a0dc1a5b05 WHIRLPOOL 3b8f59643990c8d30f70cfabd83937d28ec0a6f9bdf0274e1cb007cac8433d6534107a658c296f7bb14c07d7a04ebd62f56c0bbe1e421b2815f68a733d382476
diff --git a/dev-ada/cbind/cbind-6.0.1.ebuild b/dev-ada/cbind/cbind-6.0.1.ebuild
new file mode 100644
index 000000000000..bb8ca7af88fb
--- /dev/null
+++ b/dev-ada/cbind/cbind-6.0.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# !NOTE!
+# this is a utility, no libs generated, no reason to do the gnat.eclass dance
+# so, "inherit gnat" should not appear here!
+
+DESCRIPTION="This tool is designed to aid in the creation of Ada bindings to C"
+SRC_URI="http://dev.gentoo.org/~george/src/${P}.tar.bz2"
+HOMEPAGE="http://www.rational.com/"
+LICENSE="GMGPL"
+
+DEPEND="virtual/ada"
+RDEPEND="${DEPEND}"
+
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+src_compile() {
+ MAKEOPTS="${MAKEOPTS} -j1" emake || die
+}
+
+src_install () {
+ make PREFIX="${D}"/usr/ install || die
+ dodoc README DOCS
+}
diff --git a/dev-ada/cbind/metadata.xml b/dev-ada/cbind/metadata.xml
new file mode 100644
index 000000000000..045c2c55d0f4
--- /dev/null
+++ b/dev-ada/cbind/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>This tool is designed to AID in the creation of Ada bindings to C. Bindings generated by this translator will be generally not be complete. This tool MAY/MAY NOT be useful as an AID to generating bindings. Hopefully it can do a lot of the grunt work for you.</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/charles/Manifest b/dev-ada/charles/Manifest
new file mode 100644
index 000000000000..73630fbb3d95
--- /dev/null
+++ b/dev-ada/charles/Manifest
@@ -0,0 +1 @@
+DIST charles-20050913.tar.bz2 4098538 SHA256 a6dc507769aec161391c6608417726d6c17feebcc423442b6c6784c5bfeaa792 SHA512 a2a42c1c14555ce8a3384c5af0fb0a8a017874a0c6a220464fe163ab66428def8878d2f7231f9749064f15e4aaf34d06f87d9433d9b277fbf48202294900bd6b WHIRLPOOL de0287be1fe0cfc07b7e81d8062b3e6acf244f4aaacbea53bee0dfb242442fe04c857269b0cea6df420691a6e36ee1abdd5abe027ea49f8fd5d4dfa0b90fedcf
diff --git a/dev-ada/charles/charles-20050913.ebuild b/dev-ada/charles/charles-20050913.ebuild
new file mode 100644
index 000000000000..5ebbc71525e3
--- /dev/null
+++ b/dev-ada/charles/charles-20050913.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat
+
+IUSE=""
+
+DESCRIPTION="Posix bindings for Ada"
+HOMEPAGE="http://libre2.adacore.com/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="virtual/ada"
+
+S="${WORKDIR}/${PN}"
+
+lib_compile()
+{
+ einfo "nothing to do here"
+}
+
+# NOTE: we are using $1 - the passed gnat profile name
+lib_install()
+{
+ einfo "nothing to do here"
+}
+
+src_install ()
+{
+ # install sources
+ dodir ${AdalibSpecsDir}/${PN}
+ insinto ${AdalibSpecsDir}/${PN}
+ doins src/*.ad?
+
+ #set up environment
+ #echo "PATH=%DL%/bin" > ${LibEnv}
+ #echo "LDPATH=%DL%" >> ${LibEnv}
+ #echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" > ${LibEnv}
+
+ gnat_src_install
+
+ dodoc src/{COPYING.TXT,README.txt}
+ insinto /usr/share/doc/${PF}
+ doins -r src/testdir/ www/charles_tutorial.pdf
+}
diff --git a/dev-ada/charles/metadata.xml b/dev-ada/charles/metadata.xml
new file mode 100644
index 000000000000..c589105f804a
--- /dev/null
+++ b/dev-ada/charles/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>Charles is a data structure library for Ada95, modelled principally on the C++ STL. It features both ordered (lists and arrays) and unordered (sets and maps) collections. In addition to lists and vectors, the Charles library has set, multi-set, map, and multi-map data structure types.</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/florist/Manifest b/dev-ada/florist/Manifest
new file mode 100644
index 000000000000..231bf25ce6cf
--- /dev/null
+++ b/dev-ada/florist/Manifest
@@ -0,0 +1 @@
+DIST florist-2007.0.tar.bz2 167089 SHA256 e6047390bba1fc70feeafd2009a7a00b6bb6126bb64520e0c0f973aa6ced838a SHA512 b04f947e08c48364fd339cf0e6437c2f5d869f2195d9b364ddd95b364b481d525a6784f39d55b9f0d495b3a0e8966b2a4821e086e79901ffcd330da42395beca WHIRLPOOL f2b170f78a982bfeb629b2ceb69b476ff0fa50476ddc8688b9b13dd401205866f9d2c21c9c5d79cce2db3c527a15eca93ed70630f1ab16cad5e59dd2f37774a9
diff --git a/dev-ada/florist/florist-2007.0.ebuild b/dev-ada/florist/florist-2007.0.ebuild
new file mode 100644
index 000000000000..774ca57310d1
--- /dev/null
+++ b/dev-ada/florist/florist-2007.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat libtool
+
+IUSE=""
+
+DESCRIPTION="Posix bindings for Ada"
+HOMEPAGE="http://libre.adacore.com/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND=">=virtual/ada-2005"
+
+lib_compile()
+{
+ elibtoolize
+ econf || die "econf failed"
+ emake || die "make failed"
+ make floristlib || die "building library failed"
+ einfo "lib_compile completed"
+}
+
+# NOTE: we are using $1 - the passed gnat profile name
+lib_install()
+{
+ # install goal is just (access violating) mkdir and 2 cp's
+ # instead move stuff properly here
+ cp -rp "${SL}"/floristlib/{libflorist.a,*.ali} "${DL}"
+ chmod 0444 "${DL}"/*.ali
+}
+
+src_install ()
+{
+ # install sources
+ dodir "${AdalibSpecsDir}/${PN}"
+ insinto "${AdalibSpecsDir}/${PN}"
+ doins -r *.ad{b,s} *.c *.gpb gnatsocks/
+
+ #set up environment
+ echo "LDPATH=%DL%" >> ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ dodoc README
+}
diff --git a/dev-ada/florist/metadata.xml b/dev-ada/florist/metadata.xml
new file mode 100644
index 000000000000..2a8540864847
--- /dev/null
+++ b/dev-ada/florist/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ada</herd>
+ <longdescription>
+ Florist is the (F)lorida (S)tate (U)niversity open-source implementaton
+ of IEEE Standard 1003.5b-1996, the POSIX Ada binding, including real-time
+ extensions. This software provides access to the UNIX operating system services
+ for application programs written in the Ada programming language. It is
+ designed to be self-configuring for a POSIX-compliant system. A suite of
+ test programs is included.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-ada/glade/Manifest b/dev-ada/glade/Manifest
new file mode 100644
index 000000000000..ec9dd6570ade
--- /dev/null
+++ b/dev-ada/glade/Manifest
@@ -0,0 +1 @@
+DIST glade-2006.0.tar.bz2 393969 SHA256 0a0ef4b7aeb426b4b298b38fcdb9d7236b56a9c5aa6d16c24745450587b6ef85 SHA512 eb35f0ea13b415cf5a17d0b175bf395079d90640a69d9d3ace30df5feaa19618f2cb2dfbd70c1da9dd420c34717e015cec632675772a11faeb8aaf14644eab40 WHIRLPOOL ff141503f9f9199d128811aaaf168c6e82b5a1f3bd3c3e44e79d8be7aa65f838de4d942a2a1b57deb9fa438fd24ed02420ea8c03fe5f7881742b4d71881050ff
diff --git a/dev-ada/glade/glade-2006.0.ebuild b/dev-ada/glade/glade-2006.0.ebuild
new file mode 100644
index 000000000000..c59d856c7291
--- /dev/null
+++ b/dev-ada/glade/glade-2006.0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat
+
+IUSE=""
+
+DESCRIPTION="An implementation of the Distributed Systems Annex for the GNAT compiler"
+HOMEPAGE="http://libre2.adacore.com/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="=virtual/ada-1995*"
+RDEPEND="${DEPEND}"
+
+# temporary install pool
+DN="${WORKDIR}/LocalD"
+
+src_unpack() {
+ unpack ${A}
+
+ 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()
+{
+ # This package expands the libs and sources provided by compiler. Therefore
+ # we install in yet another local location, to bypass gnat's automation.
+ # The compiler specific stuf is then moved to ${D} directly. Not ideal, as
+ # this hook is called from within src_compile, but alternatives are more
+ # complex. The next version should probably be done mirroring the asis-xxx.
+ 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"
+
+ # remove files already provided by compiler
+ pushd "${DN}"
+ for fn in "${Gnat_Libdir:1}"/*.ali "${Gnat_Incdir:1}"/*.ad?; do
+ # Gnat_Lib/Incdir are global, need to remove leading /
+ if [[ -e /${fn} ]]; then
+ rm -f ${fn}
+ fi
+ done
+ popd
+}
+
+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 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>
diff --git a/dev-ada/gtkada/Manifest b/dev-ada/gtkada/Manifest
new file mode 100644
index 000000000000..89aa53a3a38c
--- /dev/null
+++ b/dev-ada/gtkada/Manifest
@@ -0,0 +1 @@
+DIST GtkAda-gpl-2.10.0.tgz 5519438 SHA256 f5a1a4efecaf99ce7cdaecfa4df7b6935be03692c9b68d8c746a58cca1137a30 SHA512 5162a5c75d5bf9e6f7f6d5f9b54680d7b4fb1265010630d96e9054b9d1993b8f06c63533f6fdbdc6f7b2137c3d88fb7fec06d0ca1460014e701a2469b280d173 WHIRLPOOL 4454e4824b036f6e5072b5d6b042213bbca5ffd27e4c7a6e903f41e0806bc8b232b439fc7480c533c10bab0ac65c40513364c4f266c8f367eda5cdcd76bcefe8
diff --git a/dev-ada/gtkada/files/gtkada-2.4.0.patch b/dev-ada/gtkada/files/gtkada-2.4.0.patch
new file mode 100644
index 000000000000..063507f4a09b
--- /dev/null
+++ b/dev-ada/gtkada/files/gtkada-2.4.0.patch
@@ -0,0 +1,11 @@
+diff -ru GtkAda-2.4.0-orig/src/gtkada-mdi.adb GtkAda-2.4.0/src/gtkada-mdi.adb
+--- GtkAda-2.4.0-orig/src/gtkada-mdi.adb 2004-11-09 09:35:57.000000000 +0100
++++ GtkAda-2.4.0/src/gtkada-mdi.adb 2006-05-18 23:15:13.917488750 +0200
+@@ -4778,6 +4778,7 @@
+ when Top | Bottom =>
+ Widths (Side) := 0;
+ Heights (Side) := Get_Allocation_Height (MDI.Docks (Side));
++ when None => Null;
+ end case;
+
+ -- If not allocated yet
diff --git a/dev-ada/gtkada/gtkada-2.10.0.ebuild b/dev-ada/gtkada/gtkada-2.10.0.ebuild
new file mode 100644
index 000000000000..3688bf2b66a5
--- /dev/null
+++ b/dev-ada/gtkada/gtkada-2.10.0.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils gnat versionator
+
+Name="GtkAda-gpl"
+MajorPV=$(get_version_component_range 1-2)
+DESCRIPTION="Gtk+ bindings to the Ada language"
+HOMEPAGE="https://libre.adacore.com/GtkAda/"
+SRC_URI="mirror://gentoo/${Name}-${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~x86 ~ppc"
+IUSE="nls opengl"
+
+DEPEND="virtual/ada
+ >=x11-libs/cairo-1.2.6
+ >=dev-libs/glib-2.12.4
+ >=x11-libs/pango-1.14.9
+ >=dev-libs/atk-1.12.1
+ >=x11-libs/gtk+-2.10.9
+ >=sys-apps/sed-4"
+RDEPEND=""
+
+S="${WORKDIR}/${Name}-${PV}"
+
+# only needed for gcc-3.x based gnat profiles, but matching them individually
+# would be insane
+QA_EXECSTACK="${AdalibLibTop:1}/*/gtkada/libgtkada-${MajorPV}.so.0"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ sed -i -e "s:-aI\$prefix/include/gtkada:-aI${AdalibSpecsDir}/gtkada:" \
+ src/tools/gtkada-config.in
+
+ # disable building tests to avoid waisting time while building for every
+ # profile. The tests are nonetheless installed under doc dir.
+ sed -i -e "/testgtk_dir/d" Makefile.in
+
+ # remove lib stripping
+ sed -i -e "s: strip \$(LIBNAME)::" src/Makefile.common.in
+}
+
+lib_compile() {
+ # some profile specific fixes first
+ sed -i -e "s:\$prefix/lib\(/gtkada\)*:${AdalibLibTop}/$1/gtkada:" \
+ src/tools/gtkada-config.in
+
+ local myconf
+ use opengl && myconf="--with-GL=auto" || myconf="--with-GL=no"
+
+ econf ${myconf} $(use_enable nls) || die "./configure failed"
+
+ # bug #279962
+ emake -j1 GNATFLAGS="${ADACFLAGS}" || die
+}
+
+lib_install() {
+ # make install misses all the .so and .a files and otherwise creates more
+ # problems than it's worth. Will do everything manually
+ mkdir -p "${DL}"
+ mv src/lib-obj/* src/*/obj/* src/tools/gtkada-config "${DL}"
+ rm "${DL}"/*.o
+ chmod 0444 "${DL}"/*.ali
+ chmod 0755 "${DL}"/gtkada-config
+}
+
+src_install() {
+ #set up environment
+ echo "PATH=%DL%" > ${LibEnv}
+ echo "LDPATH=%DL%" >> ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ #specs
+ cd "${S}"/src
+ dodir "${AdalibSpecsDir}/${PN}"
+ insinto "${AdalibSpecsDir}/${PN}"
+ doins *.ad? glade/*.ad? gnome/*.ad? opengl/*.{ad?,c,h}
+
+ #docs
+ cd "${S}"
+ dodoc ANNOUNCE AUTHORS README
+ cp -dPr examples/ testgtk/ "${D}/usr/share/doc/${PF}"
+ cd "${S}"/docs
+ doinfo gtkada_ug/gtkada_ug.info
+ ps2pdf gtkada_ug/gtkada_ug.ps
+ ps2pdf gtkada_rm/gtkada_rm.ps
+ cp gtkada_ug.pdf gtkada_rm.pdf "${D}/usr/share/doc/${PF}"
+ dohtml -r gtkada_ug/{gtkada_ug.html,boxes.gif,hierarchy.jpg}
+ cp -dPr gtkada_rm/gtkada_rm/ "${D}/usr/share/doc/${PF}/html"
+
+ # utility stuff
+ cd "${S}"
+ dodir "${AdalibDataDir}/${PN}"
+ insinto "${AdalibDataDir}/${PN}"
+ doins -r xml/gtkada.xml projects/
+}
+
+pkg_postinst() {
+ eselect gnat update
+ einfo "The environment 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 && source /etc/profile"
+ einfo "Otherwise the settings will become active next time you login"
+}
diff --git a/dev-ada/gtkada/metadata.xml b/dev-ada/gtkada/metadata.xml
new file mode 100644
index 000000000000..bc1d9dd433a6
--- /dev/null
+++ b/dev-ada/gtkada/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>GtkAda is the technology that lets you implement the next generation of Ada 95 GUIs in an efficient and platform-independent manner. In addition to providing over 100 widgets and allowing you to use portable low-level drawing primitives, GtkAda has a pluggable look-and-feel and comes with a high-level GUI builder that allows round-trip GUI generation and update.</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/metadata.xml b/dev-ada/metadata.xml
new file mode 100644
index 000000000000..01b80fcd13fe
--- /dev/null
+++ b/dev-ada/metadata.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The dev-ada category contains libraries and utilities relevant to the
+ Ada programming language.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie dev-ada enthält Bibliotheken und Werkzeuge für die
+ Programmiersprache Ada.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría dev-ada contiene librerias y utilidades referentes al
+ lenguaje de programación Ada.
+ </longdescription>
+ <longdescription lang="ja">
+ dev-ada カテゴリーにはAdaプログラミング言語に関連したライブラリーと
+ ユーティリティが含まれます。
+ </longdescription>
+ <longdescription lang="nl">
+ De dev-ada categorie bevat bibliotheken en hulpmiddelen voor het gebruik van
+ de Ada programmeertaal.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm dev-ada chứa các thư viện và tiện ích liên quan
+ đến ngôn ngữ lập trình Ada.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria dev-ada contiene librerie ed utilità per il linguaggio Ada.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria dev-ada contém bibliotecas e utilitários relevantes
+ para a linguagem de programação Ada.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria dev-ada zawiera biblioteki i narzędzia związane z językiem
+ programowania Ada.
+ </longdescription>
+</catmetadata>
+
diff --git a/dev-ada/polyorb/Manifest b/dev-ada/polyorb/Manifest
new file mode 100644
index 000000000000..32d40f5be1f4
--- /dev/null
+++ b/dev-ada/polyorb/Manifest
@@ -0,0 +1 @@
+DIST polyorb-2.1.0.tar.bz2 1852658 SHA256 66c5e33894f96ec1f02da4e43f5805655143c3d51e4d8eedbfa5a903aac40b25 SHA512 8d430ed9ae8dd30a91b120f44b67838cecc06dc585e277be38f76c52838786807098f07f094146f19c4fd6ac669460ef2e17bf55db7482e728331db3ef900821 WHIRLPOOL f8523ba52fd9b3342409e4ddfc4765f6dcb6b8598592ce8ff444eb0080a301bb3e30879635670942290c614bf7668b8dbf5549a2e54417208cba40c629508851
diff --git a/dev-ada/polyorb/metadata.xml b/dev-ada/polyorb/metadata.xml
new file mode 100644
index 000000000000..dc6776b0c9a8
--- /dev/null
+++ b/dev-ada/polyorb/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+
+<longdescription>
+PolyORB aims at providing a uniform solution to build distributed applications;
+relying either on industrial-strength middleware standards such as CORBA,
+the Distributed System Annex of Ada 95, distribution programming paradigms such as
+Web Services, Message Oriented Middleware (MOM), or to implement application-specific
+middleware.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/polyorb/polyorb-2.1.0.ebuild b/dev-ada/polyorb/polyorb-2.1.0.ebuild
new file mode 100644
index 000000000000..6516d10088d4
--- /dev/null
+++ b/dev-ada/polyorb/polyorb-2.1.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat
+
+IUSE="doc ssl"
+
+DESCRIPTION="A CORBA implementation for Ada"
+HOMEPAGE="http://libre.adacore.com/polyorb/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+RDEPEND="ssl? ( dev-libs/openssl )"
+DEPEND="${RDEPEND}
+ virtual/ada"
+
+#lib_compile()
+lib_compile()
+{
+ econf --libdir=/usr/lib \
+ $(use_with ssl openssl) || die "econf failed"
+ #--enable-shared \
+ # NOTE: --libdir is passed here to simplify logic - all the proper files
+ # are anyway moved to the final destination by the eclass
+ emake || die "make failed"
+}
+
+# NOTE: we are using $1 - the passed gnat profile name
+#lib_install() {
+lib_install()
+{
+ make DESTDIR=${DL} install || die "install failed"
+
+ # move installed files to appropriate locations
+ mv ${DL}/usr/* ${DL}
+ find ${DL} -name "*.ali" -exec mv {} ${DL}/lib \;
+ chmod 0444 ${DL}/lib/*.ali
+
+ # remove sources and other common stuff
+ rm -rf "${DL}"/{include,usr}
+ # fix paths in polyorb-config
+ sed -i -e "s:includedir=\"\${prefix}/include\":includedir=/usr/include/ada:" \
+ -e "s:libdir=\"/usr/lib\":libdir=${AdalibLibTop}/$1/${PN}/lib:" \
+ ${DL}/bin/${PN}-config
+}
+
+src_install ()
+{
+ cd "${S}"
+ # install sources
+ dodir ${AdalibSpecsDir}/${PN}
+ insinto ${AdalibSpecsDir}/${PN}
+ doins -r src/*
+
+ #set up environment
+ echo "PATH=%DL%/bin" > ${LibEnv}
+ echo "LDPATH=%DL%/lib" >> ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%/lib" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ dodoc CHANGE_10049 FEATURES MANIFEST NEWS README
+ doinfo docs/*.info
+ if use doc; then
+ dohtml docs/polyorb_ug.html/*.html
+ insinto /usr/share/doc/${PF}
+ doins docs/*.pdf
+
+ dodir /usr/share/doc/${PF}/examples
+ insinto /usr/share/doc/${PF}/examples
+ doins -r examples/*
+ fi
+}
diff --git a/dev-ada/xmlada/Manifest b/dev-ada/xmlada/Manifest
new file mode 100644
index 000000000000..04ee3943bc02
--- /dev/null
+++ b/dev-ada/xmlada/Manifest
@@ -0,0 +1,2 @@
+DIST XmlAda-1.0.tgz 322079 SHA256 e86ccd448574ff1ec2205f9bfbfa5812023dc4ce5d4b1c2e2c8b1ffbd29ce917 SHA512 2b692d5bf1e1c28a303cee42fa43d9f5dc578aa5c93134ae25f3abe04ab3b6c3d5744ea0aa28d1dff0fc82fb190d1e60a1c8d6cd2866989b0cd63c2af438126b WHIRLPOOL 21db8cdb9432848a69b8abe2ebcc152be37876b28387e4922fc56f72190fcc9da791a9b87f1736aaaec9b4962aa28df46614ef3731eec8711d418583ff383a00
+DIST xmlada-2.2.0.tar.bz2 591666 SHA256 3935a1a158a120bb53d5417a518b7283b5d97f478cf3af0f5e02222ae3b5c7b4 SHA512 dc8e1c963f4d40518be1058972697ea629a065e709704b05d501e62be77733f00419d9578fcc1305d3fbc5b90dae1742e7c2ae2ae0e3803c47e767e57770872a WHIRLPOOL c3cd616301b8be9f126f55f3a069a34974a80d3753839b8c8745edfb96b86ef3d77ae009689e881f56c9f938fa1c62f3d86a6d9a4222a661e3f43c9077911af4
diff --git a/dev-ada/xmlada/metadata.xml b/dev-ada/xmlada/metadata.xml
new file mode 100644
index 000000000000..66f2f1fc397f
--- /dev/null
+++ b/dev-ada/xmlada/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ada</herd>
+<longdescription>XML/Ada includes a complete XML parser that fully supports the XML 1.0 specifications, including DTDs, entity resolution, external entities,attribute normalization, and conditional sections. XML/Ada also supports the SAX 2.0 standard. Through an object-oriented Ada interface, the XML/Ada SAX implementation provides an extremely efficient way to convert XML streams to application-specific data representations. XML/Ada includes full support for the core part of DOM 2.0. In addition to this XML support, XML/Ada includes an extensive set of packages to read, manipulate and write Unicode streams, in various encodings like UTF-8, UTF-16 and UTF-32. It provides a conversion mechanism between Unicode and encodings such as Latin-1, Latin-2, etc.</longdescription>
+</pkgmetadata>
diff --git a/dev-ada/xmlada/xmlada-1.0-r4.ebuild b/dev-ada/xmlada/xmlada-1.0-r4.ebuild
new file mode 100644
index 000000000000..592676f940e4
--- /dev/null
+++ b/dev-ada/xmlada/xmlada-1.0-r4.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat versionator
+
+IUSE=""
+
+Name="XmlAda"
+
+DESCRIPTION="XML library for Ada"
+HOMEPAGE="http://libre2.adacore.com/xmlada/"
+SRC_URI="https://libre2.adacore.com/xmlada/${Name}-${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="virtual/gnat
+ >=sys-apps/sed-4"
+RDEPEND=""
+
+src_unpack()
+{
+ unpack ${A}
+
+ cd "${S}"
+ #making .dvi docs is problemmatic. Skip that for now
+ sed -i -e "s/all: obj test docs/all: obj test/" Makefile.in
+ #increase stack size
+ cd sax
+ sed -i -e "s/Stack_Size : constant Natural := 64;/Stack_Size : constant Natural := 128;/" sax-readers.adb
+}
+
+lib_compile()
+{
+ # for some reason shared libs are assigned version numbers from some
+ # pre-release (possibly when upstream stopped to care about them?)
+ local MAJOR=$(get_major_version)
+ local MINOR=$(get_version_component_range 2-)
+ # force building shared libs and fix broken shared lib versioning
+ sed -i -e "s:BUILD_SHARED=FALSE:BUILD_SHARED=TRUE:" \
+ -e "s:libxmlada_\${@\:%_install=%}-\${MAJOR}.\${MINOR}.so:libxmlada_\${@\:%_inst=%}.so.${MAJOR}.${MINOR}:" \
+ -e "s:libxmlada_\${@\:%_inst=%}-\${MAJOR}.\${MINOR}.so:libxmlada_\${@\:%_inst=%}.so.${MAJOR}.${MINOR}:" \
+ -e "s:FPIC=:FPIC=-fPIC:" Makefile.in
+
+ export CFLAGS=$ADACFLAGS
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-shared \
+ --host=${CHOST} \
+ --build=${CHOST} \
+ --target=${CHOST} \
+ --with-system-zlib || die
+
+ export COMPILER=gnatmake
+ make || die "make failed"
+}
+
+# here we need to use the $1 - passed gnat profile name
+lib_install() {
+ make PREFIX="${DL}" install || die "install failed"
+
+ # fix xmlada-config hardsets locations
+ sed -i -e "s:\${prefix}/include/xmlada:${AdalibSpecsDir}/${PN}:" \
+ -e "s:\${prefix}/lib:${AdalibLibTop}/$1/${PN}:g" \
+ "${DL}"/bin/xmlada-config
+
+ # now move stuff to proper location and delete extras
+ mv "${DL}"/bin/xmlada-config "${DL}"/lib/* "${DL}"/include/${PN}/*.ali "${DL}"
+ rm -rf "${DL}"/bin "${DL}"/include "${DL}"/lib
+}
+
+src_install ()
+{
+ cd "${S}"
+ dodir ${AdalibSpecsDir}/${PN}
+ insinto ${AdalibSpecsDir}/${PN}
+ doins dom/*.ad? input_sources/*.ad? sax/*.ad? unicode/*.ad?
+
+ #set up environment
+ echo "PATH=%DL%" > ${LibEnv}
+ echo "LDPATH=%DL%" >> ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ dodoc AUTHORS README docs/xml.ps
+ dohtml docs/*.html
+ doinfo docs/*.info
+ #need to give a proper name to the info file
+ cd "${D}"/usr/share/info
+ mv xml.info.gz ${PN}.info.gz
+
+}
diff --git a/dev-ada/xmlada/xmlada-2.2.0-r1.ebuild b/dev-ada/xmlada/xmlada-2.2.0-r1.ebuild
new file mode 100644
index 000000000000..3ab0747376b4
--- /dev/null
+++ b/dev-ada/xmlada/xmlada-2.2.0-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat versionator
+
+IUSE=""
+
+DESCRIPTION="XML library for Ada"
+HOMEPAGE="http://libre.adacore.com/xmlada/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="virtual/ada
+ virtual/latex-base
+ sys-apps/texinfo
+ >=sys-apps/sed-4"
+RDEPEND=""
+
+src_unpack()
+{
+ unpack ${A}
+ cd "${S}"
+
+ # adjusting profile independent stuff in project files
+# for fn in distrib/*/xmlada*.gpr; do
+# sed -i -e "s:../../include/xmlada:${AdalibSpecsDir}/${PN}:" ${fn}
+# done
+ sed -i -e "s:\.\./\.\./include/xmlada:${AdalibSpecsDir}/${PN}:" \
+ distrib/*/xmlada*.gpr || die "failed to adjust project files"
+
+ # fix profile independent stuff in xmlada-config
+ sed -i -e "s:\${prefix}/include/xmlada:${AdalibSpecsDir}/${PN}:" \
+ xmlada-config.in || die "failed to adjust xmlada-config"
+
+ # doinfo changed from gzipping stuff to bzipping, so we better rename the
+ # file before calling it to guard against other possible changes
+ mv docs/xml.info docs/${PN}.info
+}
+
+lib_compile()
+{
+ econf
+ emake
+}
+
+# NOTE: we are using $1 - the passed gnat profile name
+lib_install() {
+ # bug #283160
+ emake -j1 PREFIX="${DL}" install || die "install failed"
+
+ pushd "${DL}"
+ # fix xmlada-config hardsets locations and move it to proper location
+ sed -i -e "s:\${prefix}/lib/xmlada:${AdalibLibTop}/$1/${PN}:" \
+ -e "s:\${prefix}/lib:${AdalibLibTop}/$1/${PN}:g" \
+ bin/xmlada-config
+ mv bin/xmlada-config "${DLbin}"
+
+ # sed and organize gpr files
+ sed -i -e "s:\.\./xmlada:${AdalibLibTop}/$1/${PN}:" "${DL}"/lib/gnat/*.gpr
+ mv lib/gnat/* "${DLgpr}"
+
+ # the library and *.ali
+ mv lib/${PN}/* .
+ rm -rf bin include share lib
+
+ # fix the .so links
+ rm *.so
+ for fn in *.so.* ; do
+ ln -s ${fn} ${fn%so*}so
+ done
+ popd
+}
+
+src_install ()
+{
+ cd "${S}"
+ dodir ${AdalibSpecsDir}/${PN}
+ insinto ${AdalibSpecsDir}/${PN}
+ doins dom/*.ad? input_sources/*.ad? sax/*.ad? unicode/*.ad? schema/*.ad?
+
+ #set up environment
+ echo "PATH=%DLbin%" > ${LibEnv}
+ echo "LDPATH=%DL%" >> ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
+ echo "ADA_PROJECT_PATH=%DLgpr%" >> ${LibEnv}
+
+ gnat_src_install
+
+ dodoc AUTHORS README TODO features
+ dohtml docs/*.html
+ doinfo docs/*.info
+ insinto /usr/share/doc/${PF}
+ doins docs/*.pdf distrib/xmlada_gps.py
+
+ dodir /usr/share/doc/${PF}/examples
+ insinto /usr/share/doc/${PF}/examples
+ doins -r docs/{dom,sax,schema}
+}
diff --git a/dev-ada/xmlada/xmlada-2.2.0.ebuild b/dev-ada/xmlada/xmlada-2.2.0.ebuild
new file mode 100644
index 000000000000..77705b4f55e9
--- /dev/null
+++ b/dev-ada/xmlada/xmlada-2.2.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit gnat versionator
+
+IUSE=""
+
+DESCRIPTION="XML library for Ada"
+HOMEPAGE="http://libre.adacore.com/xmlada/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+DEPEND="virtual/ada
+ virtual/latex-base
+ sys-apps/texinfo
+ >=sys-apps/sed-4"
+RDEPEND=""
+
+lib_compile()
+{
+ econf || die "econf failed"
+ emake || die "make failed"
+}
+
+# NOTE: we are using $1 - the passed gnat profile name
+lib_install() {
+ make PREFIX="${DL}" install || die "install failed"
+
+ # fix xmlada-config hardsets locations
+ sed -i -e "s:\${prefix}/include/xmlada:${AdalibSpecsDir}/${PN}:" \
+ -e "s:\${prefix}/lib/xmlada:${AdalibLibTop}/$1/${PN}/lib:" \
+ -e "s:\${prefix}/lib:${AdalibLibTop}/$1/${PN}/lib:g" \
+ "${DL}"/bin/xmlada-config
+
+ # now move stuff to proper location and delete extras
+# mv "${DL}"/bin/xmlada-config "${DL}"/lib/* "${DL}"/include/${PN}/*.ali "${DL}"
+ rm -rf "${DL}"/include "${DL}"/share
+}
+
+src_install ()
+{
+ cd "${S}"
+ dodir ${AdalibSpecsDir}/${PN}
+ insinto ${AdalibSpecsDir}/${PN}
+ doins dom/*.ad? input_sources/*.ad? sax/*.ad? unicode/*.ad? schema/*.ad?
+
+ #set up environment
+ echo "PATH=%DL%/bin" > ${LibEnv}
+ echo "LDPATH=%DL%/lib" >> ${LibEnv}
+ echo "ADA_OBJECTS_PATH=%DL%/lib" >> ${LibEnv}
+ echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv}
+
+ gnat_src_install
+
+ dodoc AUTHORS README TODO features
+ dohtml docs/*.html
+ doinfo docs/*.info
+ # give a proper name to the info file
+ mv "${D}"/usr/share/info/xml.info.gz "${D}"/usr/share/info/${PN}.info.gz
+ insinto /usr/share/doc/${PF}
+ doins docs/*.pdf distrib/xmlada_gps.py
+
+ dodir /usr/share/doc/${PF}/examples
+ insinto /usr/share/doc/${PF}/examples
+ doins -r docs/{dom,sax,schema}
+}