diff options
author | George Shapovalov <george@gentoo.org> | 2007-02-17 12:58:25 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2007-02-17 12:58:25 +0000 |
commit | 12d0245c47e0dc8aab78b86114c493bd9f742758 (patch) | |
tree | 0b3fdf42b67efd12e6ba915a88ac832572efa001 /dev-ada | |
parent | version bump, bug 166947 (diff) | |
download | gentoo-2-12d0245c47e0dc8aab78b86114c493bd9f742758.tar.gz gentoo-2-12d0245c47e0dc8aab78b86114c493bd9f742758.tar.bz2 gentoo-2-12d0245c47e0dc8aab78b86114c493bd9f742758.zip |
new version to match new gnat-gcc
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-ada')
-rw-r--r-- | dev-ada/asis-gcc/ChangeLog | 7 | ||||
-rw-r--r-- | dev-ada/asis-gcc/asis-gcc-4.1.2.ebuild | 157 | ||||
-rw-r--r-- | dev-ada/asis-gcc/files/digest-asis-gcc-4.1.2 | 3 |
3 files changed, 166 insertions, 1 deletions
diff --git a/dev-ada/asis-gcc/ChangeLog b/dev-ada/asis-gcc/ChangeLog index 0ac1ec9e8261..4f71b33ef873 100644 --- a/dev-ada/asis-gcc/ChangeLog +++ b/dev-ada/asis-gcc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ada/asis-gcc # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/ChangeLog,v 1.4 2007/01/25 23:41:35 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gcc/ChangeLog,v 1.5 2007/02/17 12:58:25 george Exp $ + +*asis-gcc-4.1.2 (17 Feb 2007) + + 17 Feb 2007; George Shapovalov <george@gentoo.org> +asis-gcc-4.1.2.ebuild: + new version to match new gnat-gcc 25 Jan 2007; Marius Mauch <genone@gentoo.org> asis-gcc-3.4.6.ebuild, asis-gcc-4.1.1.ebuild: 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..d7c4204f2141 --- /dev/null +++ b/dev-ada/asis-gcc/asis-gcc-4.1.2.ebuild @@ -0,0 +1,157 @@ +# Copyright 1999-2007 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.2.ebuild,v 1.1 2007/02/17 12:58:25 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" +# can reuse the same sources, but we need to force an upgrade +My_PV="4.1.1" +SRC_URI="http://mirrors/gentoo/${PN}-${My_PV}.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}-${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 --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:" + 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/files/digest-asis-gcc-4.1.2 b/dev-ada/asis-gcc/files/digest-asis-gcc-4.1.2 new file mode 100644 index 000000000000..247136ffec6c --- /dev/null +++ b/dev-ada/asis-gcc/files/digest-asis-gcc-4.1.2 @@ -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 |