summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2006-10-24 11:06:06 +0000
committerGeorge Shapovalov <george@gentoo.org>2006-10-24 11:06:06 +0000
commit88bbe5b4ace5267864d0b9f7733291bf33ff0cab (patch)
treebac2dde4b4b4957f9fcf32d79a83339320765bfc /dev-ada/asis-gcc
parentpreparing eclass for split asis implementations (diff)
downloadgentoo-2-88bbe5b4ace5267864d0b9f7733291bf33ff0cab.tar.gz
gentoo-2-88bbe5b4ace5267864d0b9f7733291bf33ff0cab.tar.bz2
gentoo-2-88bbe5b4ace5267864d0b9f7733291bf33ff0cab.zip
added version of asis for gnat-gcc-4.1.1
(Portage version: 2.1.2_pre2-r9)
Diffstat (limited to 'dev-ada/asis-gcc')
-rw-r--r--dev-ada/asis-gcc/ChangeLog9
-rw-r--r--dev-ada/asis-gcc/Manifest16
-rw-r--r--dev-ada/asis-gcc/asis-gcc-4.1.1.ebuild154
-rw-r--r--dev-ada/asis-gcc/files/digest-asis-gcc-4.1.13
-rw-r--r--dev-ada/asis-gcc/metadata.xml15
5 files changed, 197 insertions, 0 deletions
diff --git a/dev-ada/asis-gcc/ChangeLog b/dev-ada/asis-gcc/ChangeLog
new file mode 100644
index 000000000000..2f97be9be492
--- /dev/null
+++ b/dev-ada/asis-gcc/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-ada/asis
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/ChangeLog,v 1.1 2006/10/24 11:06:06 george Exp $
+
+*asis-gcc-4.1.1 (24 Oct 2006)
+
+ 24 Oct 2006; George Shapovalov <george@gentoo.org> +metadata.xml,
+ +asis-gcc-4.1.1.ebuild:
+ added asis for gnat-gcc-4.1.1
diff --git a/dev-ada/asis-gcc/Manifest b/dev-ada/asis-gcc/Manifest
new file mode 100644
index 000000000000..708dbe307e72
--- /dev/null
+++ b/dev-ada/asis-gcc/Manifest
@@ -0,0 +1,16 @@
+DIST asis-gcc-4.1.1.tar.bz2 2938979 RMD160 08112f7c283543f1350d894ca363da1e7c1d1c7f SHA1 b3ec85d7da9be03d788def2a9c7060e350e06429 SHA256 712674ad21d21c9aec59e3f4db35cb92b01a6fbc1fc80450f801666f0ac2827e
+EBUILD asis-gcc-4.1.1.ebuild 4522 RMD160 72f101808377dbbd77fe01fc34d2d0e5b1845fca SHA1 9ad72575fc564fba92dfab2d9de0d8749d6369bc SHA256 ce32987764bdfe8b9de967229560fc5d07e19794b9234b0e1faa917c3ce59ca3
+MD5 fed8b0528b296f38f6992acc6a799004 asis-gcc-4.1.1.ebuild 4522
+RMD160 72f101808377dbbd77fe01fc34d2d0e5b1845fca asis-gcc-4.1.1.ebuild 4522
+SHA256 ce32987764bdfe8b9de967229560fc5d07e19794b9234b0e1faa917c3ce59ca3 asis-gcc-4.1.1.ebuild 4522
+MISC ChangeLog 270 RMD160 eeb16cf4fe47bd34c93a3531acd5de95530377ac SHA1 5c3e01f15eb670ad77f1eeba0b310440d7510630 SHA256 9d5532d573af960ab86da3dde1c8c6300474c7d97b23db7002b871bab32b9878
+MD5 b97d7c7b1f8ecaed8ba514a4b6cb852c ChangeLog 270
+RMD160 eeb16cf4fe47bd34c93a3531acd5de95530377ac ChangeLog 270
+SHA256 9d5532d573af960ab86da3dde1c8c6300474c7d97b23db7002b871bab32b9878 ChangeLog 270
+MISC metadata.xml 697 RMD160 bb7db4aaaa1ac14f321b0f2d9958835b29d03cde SHA1 2a40deb3b8729e82013db46498802e6c49708c6f SHA256 d32f466670f99fd6e28bb2c1e1257adac3f78db0d8d325f9507a81f9b9a5f975
+MD5 a971e1c05db3ed5d35a404fa7f1cf67b metadata.xml 697
+RMD160 bb7db4aaaa1ac14f321b0f2d9958835b29d03cde metadata.xml 697
+SHA256 d32f466670f99fd6e28bb2c1e1257adac3f78db0d8d325f9507a81f9b9a5f975 metadata.xml 697
+MD5 c054158f91eabd49bd8f09bf17dc998c files/digest-asis-gcc-4.1.1 250
+RMD160 3b90efdfd59dbcc9c30ca5d121cf208d20e835a7 files/digest-asis-gcc-4.1.1 250
+SHA256 fc781f068a24f19ebd68aa7068c61bfcf7492c74dd0b2ea200310ee8079cc3e5 files/digest-asis-gcc-4.1.1 250
diff --git a/dev-ada/asis-gcc/asis-gcc-4.1.1.ebuild b/dev-ada/asis-gcc/asis-gcc-4.1.1.ebuild
new file mode 100644
index 000000000000..2fd264761d4c
--- /dev/null
+++ b/dev-ada/asis-gcc/asis-gcc-4.1.1.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/asis-gcc-4.1.1.ebuild,v 1.1 2006/10/24 11:06:06 george Exp $
+
+inherit eutils flag-o-matic gnatbuild
+
+DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and 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/tetex
+ 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-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 --no-color 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:"
+ einfo "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}"
+ einfo "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
+ 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
+ einfo "The ASIS is installed for the active gnat compiler at gnat's location."
+ einfo "No further configuration is necessary. Enjoy."
+ echo
+}
diff --git a/dev-ada/asis-gcc/files/digest-asis-gcc-4.1.1 b/dev-ada/asis-gcc/files/digest-asis-gcc-4.1.1
new file mode 100644
index 000000000000..247136ffec6c
--- /dev/null
+++ b/dev-ada/asis-gcc/files/digest-asis-gcc-4.1.1
@@ -0,0 +1,3 @@
+MD5 f8c45b5b7359fadb3d28ff88e10180b8 asis-gcc-4.1.1.tar.bz2 2938979
+RMD160 08112f7c283543f1350d894ca363da1e7c1d1c7f asis-gcc-4.1.1.tar.bz2 2938979
+SHA256 712674ad21d21c9aec59e3f4db35cb92b01a6fbc1fc80450f801666f0ac2827e asis-gcc-4.1.1.tar.bz2 2938979
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>