added asis for gnat-gcc-3.4.6
authorGeorge Shapovalov <george@gentoo.org>
Tue, 24 Oct 2006 14:57:22 +0000 (14:57 +0000)
committerGeorge Shapovalov <george@gentoo.org>
Tue, 24 Oct 2006 14:57:22 +0000 (14:57 +0000)
Package-Manager: portage-2.1.2_pre2-r9

dev-ada/asis-gcc/ChangeLog
dev-ada/asis-gcc/Manifest
dev-ada/asis-gcc/asis-gcc-3.4.6.ebuild [new file with mode: 0644]
dev-ada/asis-gcc/files/digest-asis-gcc-3.4.6 [new file with mode: 0644]

index 2f97be9be492dbe10d6b52c693ef86ba2e6aa6b4..702c4fcdd67fac3ef8a9272f17b8b35c460ab1e4 100644 (file)
@@ -1,6 +1,11 @@
 # 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 $
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/ChangeLog,v 1.2 2006/10/24 14:57:22 george Exp $
+
+*asis-gcc-3.4.6 (24 Oct 2006)
+
+  24 Oct 2006; George Shapovalov <george@gentoo.org> +asis-gcc-3.4.6.ebuild:
+  added asis for gnat-gcc-3.4.6
 
 *asis-gcc-4.1.1 (24 Oct 2006)
 
index 057ffce3eafa32058e89ec8f26cf84a835c35127..5968d8e5c053aa5ea668beef2eb66601691da0d4 100644 (file)
@@ -1,16 +1,24 @@
+DIST asis-3.4.4.tar.bz2 2874938 RMD160 ec6acf720c4fb6a386fa6da8de40f88b5b9f310d SHA1 949725a605ffa92e30cdc53b397483d38078a90c SHA256 2d3546d04839801ef617005e60ee24be9a0004f8481c70e3ea51a17443d094d5
 DIST asis-gcc-4.1.1.tar.bz2 2938979 RMD160 08112f7c283543f1350d894ca363da1e7c1d1c7f SHA1 b3ec85d7da9be03d788def2a9c7060e350e06429 SHA256 712674ad21d21c9aec59e3f4db35cb92b01a6fbc1fc80450f801666f0ac2827e
+EBUILD asis-gcc-3.4.6.ebuild 4121 RMD160 479e0ca30c23b0f9edaf556abf8ec28da8dbf46f SHA1 ffcb3d4273b8f32df3ec0001b479ee47832f0f71 SHA256 add4968daca9f97b61ad6b68f1163081fc6efc9feae3162cf33ae44e37307304
+MD5 7ade0215b9529def5adf3271b178aaaf asis-gcc-3.4.6.ebuild 4121
+RMD160 479e0ca30c23b0f9edaf556abf8ec28da8dbf46f asis-gcc-3.4.6.ebuild 4121
+SHA256 add4968daca9f97b61ad6b68f1163081fc6efc9feae3162cf33ae44e37307304 asis-gcc-3.4.6.ebuild 4121
 EBUILD asis-gcc-4.1.1.ebuild 4622 RMD160 eb645d763b6c39b163f6e3122cc87f4c14750fe4 SHA1 5a17f09cba473bf9657432637a5f468dfcfe8b6d SHA256 3a3a9df8dbd0c9ccd578024e0e7753b32fa86911223dc74ad14584c8e0d05fef
 MD5 015097329c9245dca85375418869e232 asis-gcc-4.1.1.ebuild 4622
 RMD160 eb645d763b6c39b163f6e3122cc87f4c14750fe4 asis-gcc-4.1.1.ebuild 4622
 SHA256 3a3a9df8dbd0c9ccd578024e0e7753b32fa86911223dc74ad14584c8e0d05fef asis-gcc-4.1.1.ebuild 4622
-MISC ChangeLog 358 RMD160 3df386f719198d4aa6d35f80f961a308420dd65b SHA1 c7b3f429f4df431da97ba4ef776837edf304078d SHA256 746e392dd23f75124bbb86f90e3a90f48c07e5c72ae1f2a9f192420e67e9b54a
-MD5 4a2933bf9855126c229c77247d203683 ChangeLog 358
-RMD160 3df386f719198d4aa6d35f80f961a308420dd65b ChangeLog 358
-SHA256 746e392dd23f75124bbb86f90e3a90f48c07e5c72ae1f2a9f192420e67e9b54a ChangeLog 358
+MISC ChangeLog 499 RMD160 06ed0a8c8701272f48273e7571bb6ab660ed09db SHA1 afb1022618ca8cf58255b725420faa65a08b3406 SHA256 972eea09a21d9023a987397743f70491633a08f64242a0880f31f4ffea931759
+MD5 276cceb6c18d9eee5fd9695d81908cbe ChangeLog 499
+RMD160 06ed0a8c8701272f48273e7571bb6ab660ed09db ChangeLog 499
+SHA256 972eea09a21d9023a987397743f70491633a08f64242a0880f31f4ffea931759 ChangeLog 499
 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 d6570d957225c61b625302b23a6a44b6 files/digest-asis-gcc-3.4.6 238
+RMD160 173952181a338184dcb15259497d8bb172be3611 files/digest-asis-gcc-3.4.6 238
+SHA256 7d0785d9760aec7fe31d9009751fce46751031491cc42ec75b65075becb20a77 files/digest-asis-gcc-3.4.6 238
 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-3.4.6.ebuild b/dev-ada/asis-gcc/asis-gcc-3.4.6.ebuild
new file mode 100644 (file)
index 0000000..32c4d35
--- /dev/null
@@ -0,0 +1,143 @@
+# 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-3.4.6.ebuild,v 1.1 2006/10/24 14:57:22 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"
+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/tetex
+       app-text/texi2html )"
+
+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-${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 -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
+}
+
+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 () {
+       # 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,asistant,gnatelim,gnatstub}; do
+               cp ${fn}/${fn:6} ${D}${BINPATH}
+       done
+       cp tools/semtools/ada{dep,subst} ${D}${BINPATH}
+
+       if use doc; then
+               # docs and examples
+               dodoc documentation/*.{txt,ps}
+               dohtml documentation/*.html
+               # info's should go into gnat-gpl dirs
+               insinto ${DATAPATH}/info/
+               doins documentation/*.info
+       fi
+
+       insinto /usr/share/doc/${PF}
+       doins -r documentation/*.pdf examples/ tutorial/ templates/
+}
+
+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-3.4.6 b/dev-ada/asis-gcc/files/digest-asis-gcc-3.4.6
new file mode 100644 (file)
index 0000000..63f2532
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 99760cffa59fbaf0b81fac9bac93cbb1 asis-3.4.4.tar.bz2 2874938
+RMD160 ec6acf720c4fb6a386fa6da8de40f88b5b9f310d asis-3.4.4.tar.bz2 2874938
+SHA256 2d3546d04839801ef617005e60ee24be9a0004f8481c70e3ea51a17443d094d5 asis-3.4.4.tar.bz2 2874938