diff options
author | George Shapovalov <george@gentoo.org> | 2003-08-13 22:17:54 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2003-08-13 22:17:54 +0000 |
commit | 37ff375084020069930fefae842996c086fd69f5 (patch) | |
tree | 1aa89da735886b633839147698b6a99c36895499 /dev-lang/gnat | |
parent | Fix the ebuild. should be doing distcc-config --install, too (diff) | |
download | historical-37ff375084020069930fefae842996c086fd69f5.tar.gz historical-37ff375084020069930fefae842996c086fd69f5.tar.bz2 historical-37ff375084020069930fefae842996c086fd69f5.zip |
new revision, fixes #26461
Diffstat (limited to 'dev-lang/gnat')
-rw-r--r-- | dev-lang/gnat/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/gnat/Manifest | 5 | ||||
-rw-r--r-- | dev-lang/gnat/files/digest-gnat-3.15p-r2 | 4 | ||||
-rw-r--r-- | dev-lang/gnat/files/gnat-3.15p-gentoo.patch.bz2 | bin | 0 -> 3080 bytes | |||
-rw-r--r-- | dev-lang/gnat/gnat-3.15p-r2.ebuild | 148 |
5 files changed, 163 insertions, 2 deletions
diff --git a/dev-lang/gnat/ChangeLog b/dev-lang/gnat/ChangeLog index f0544acba858..a24b5f27ed3e 100644 --- a/dev-lang/gnat/ChangeLog +++ b/dev-lang/gnat/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/gnat # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnat/ChangeLog,v 1.2 2003/07/25 05:30:32 george Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnat/ChangeLog,v 1.3 2003/08/13 22:17:36 george Exp $ + +*gnat-3.15p-r2 (13 Aug 2003) + + 13 Aug 2003; George Shapovalov <george@gentoo.org> gnat-3.15p-r2.ebuild, files/gnat-3.15p-gentoo.patch.bz2 : + new revision (#26542) by dholm, fixes #26461 + libs were moved under /usr/lib/ada to + avoid any possible interaction with gcc *gnat-3.15p-r1 (24 Jul 2003) diff --git a/dev-lang/gnat/Manifest b/dev-lang/gnat/Manifest index 072583e5dd33..aadb40eb2453 100644 --- a/dev-lang/gnat/Manifest +++ b/dev-lang/gnat/Manifest @@ -1,7 +1,10 @@ MD5 332d79b0cddb0dfcb80bc77487f36918 gnat-3.14p.ebuild 5673 +MD5 562315b82128df316cfdd4b188d66b93 gnat-3.15p-r2.ebuild 4665 MD5 6deb19eecc4f53aba08a7aaa89e80d0d gnat-3.15p-r1.ebuild 5468 -MD5 eb0300fd3fd25f4ce53cbf5999ba9b82 ChangeLog 807 +MD5 abdce249e32acce2bf01e67672e06c86 ChangeLog 1079 MD5 5b9c3801b8c96f4433c13adf4437819a gnat-3.15p.ebuild 5668 MD5 419f46c7076e98eee00cf04ce2199ab0 files/digest-gnat-3.15p-r1 288 +MD5 419f46c7076e98eee00cf04ce2199ab0 files/digest-gnat-3.15p-r2 288 MD5 59500f81e672cff22232586fc278547b files/digest-gnat-3.14p 213 MD5 737e39907fb4f28640a1b4cbbc1cdc78 files/digest-gnat-3.15p 216 +MD5 8de41386f388e3ca8be4a142139ff651 files/gnat-3.15p-gentoo.patch.bz2 3080 diff --git a/dev-lang/gnat/files/digest-gnat-3.15p-r2 b/dev-lang/gnat/files/digest-gnat-3.15p-r2 new file mode 100644 index 000000000000..c212fd9b53e4 --- /dev/null +++ b/dev-lang/gnat/files/digest-gnat-3.15p-r2 @@ -0,0 +1,4 @@ +MD5 cf8b9cccc867e318bccaaa2dce384028 gnat-3.15p-src.tgz 5553434 +MD5 3bcbedfaccf343a8515efc0f74b8a027 gnat-3.15p-unx-docs.tar.gz 9515443 +MD5 57c060cd1ccef8b1ae9165b11d98780a gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.gz 13482938 +MD5 23ce8b5d276e2eab421416564f9dc8a3 gcc-2.8.1.tar.bz2 6304274 diff --git a/dev-lang/gnat/files/gnat-3.15p-gentoo.patch.bz2 b/dev-lang/gnat/files/gnat-3.15p-gentoo.patch.bz2 Binary files differnew file mode 100644 index 000000000000..8d3a939c62d0 --- /dev/null +++ b/dev-lang/gnat/files/gnat-3.15p-gentoo.patch.bz2 diff --git a/dev-lang/gnat/gnat-3.15p-r2.ebuild b/dev-lang/gnat/gnat-3.15p-r2.ebuild new file mode 100644 index 000000000000..4a1d0e88eb16 --- /dev/null +++ b/dev-lang/gnat/gnat-3.15p-r2.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnat/gnat-3.15p-r2.ebuild,v 1.1 2003/08/13 22:17:36 george Exp $ + +DESCRIPTION="GNAT Ada Compiler" +DEPEND="app-shells/tcsh" +RDEPEND="" +SRC_URI="http://gd.tuwien.ac.at/languages/ada/gnat/${PV}/${P}-src.tgz + http://gd.tuwien.ac.at/languages/ada/gnat/${PV}/${P}-unx-docs.tar.gz + http://gd.tuwien.ac.at/languages/ada/gnat/${PV}/${P}-i686-pc-redhat71-gnu-bin.tar.gz + ftp://gcc.gnu.org/pub/gcc/old-releases/gcc-2/gcc-2.8.1.tar.bz2" +HOMEPAGE="http://www.gnat.com/" + +SLOT="0" +KEYWORDS="~x86" +LICENSE="GMGPL" +IUSE="" + +S="${WORKDIR}/gcc-2.8.1" +GNATDIR="${WORKDIR}/${P}-src" +GNATBOOT="${WORKDIR}/boot" +GNATBOOTINST="${WORKDIR}/${P}-i686-pc-linux-gnu-bin" + +inherit gnat + +src_unpack() { + unpack ${A} + + # Install the bootstrap compiler + cd "${GNATBOOTINST}" + echo $'\n'3$'\n'${GNATBOOT}$'\n' | ./doconfig > doconfig.log 2>&1 + ./doinstall + + # Prepare the gcc source directory + cd "${S}" + patch -p0 < "${GNATDIR}/src/gcc-281.dif" + touch cstamp-h.in + mv "${GNATDIR}/src/ada" "${S}" + cd "${S}/ada" + bzcat "${FILESDIR}/${P}-gentoo.patch.bz2" | patch -p3 + touch treeprs.ads a-[es]info.h nmake.ad[bs] +} + +src_compile() { + # GCC 2.8.1 doesn't like fancy flags + local CFLAGS="-O2" + + # Set some paths to our bootstrap compiler. + local GCC_EXEC_PREFIX="${GNATBOOT}/lib/gcc-lib/i686-pc-linux-gnu/2.8.1" + local ADA_INCLUDE_PATH="${GNATBOOT}/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/adainclude" + local ADA_OBJECTS_PATH="${GNATBOOT}/lib/gcc-lib/i686-pc-linux-gnu/2.8.1/adalib" + local PATH="${GNATBOOT}/bin:${PATH}" + local LDFLAGS="-L${GNATBOOT}/lib/gcc-lib/i686-pc-linux-gnu/2.8.1 -L${GNATBOOTINST}" + + # Make $local_prefix point to $prefix + sed -i -e "s/@local_prefix@/@prefix@/" "${S}/Makefile.in" + + # Configure gcc + cd "${S}" + econf --libdir=/usr/lib/ada --program-prefix=gnat \ + || die "./configure failed" + + # Make sure we don't overwrite the existing gcc + sed -i -e "s/\$(bindir)\/gcov/\$(bindir)\/gnatgcov/" "${S}/Makefile" + sed -i -e "s/alias)-gcc/alias)-gnatgcc/g" "${S}/Makefile" + + # Compile it by first using the bootstrap compiler and then bootstrapping + # our own version. Finally compile the libraries and tools. + make CC="gcc" LANGUAGES="c ada gcov" + make CC="gcc" LANGUAGES="c ada gcov" bootstrap + make CC="gcc" GNATLIBCFLAGS="-O2 -fPIC" gnatlib-shared + make CC="gcc" gnattools +} + +src_install() { + local PATH="${GNATBOOT}/bin:${PATH}" + local LDFLAGS="-L${GNATBOOT}/lib/gcc-lib/i686-pc-linux-gnu/2.8.1 -L${GNATBOOTINST}" + + # Install gnatgcc, tools and native threads library + make prefix="${D}/usr" libdir="${D}/usr/lib/ada" \ + LANGUAGES="c ada gcov" GCC_INSTALL_NAME=gnatgcc \ + install-common install-libgcc install-gnatlib install-driver || die + touch "${D}/usr/lib/ada/gcc-lib/${CHOST}/2.8.1/include/float.h" + + # Install the FSU threads library + cd "${D}/usr/lib/ada/gcc-lib/${CHOST}/2.8.1" + mkdir rts-native + mkdir rts-fsu + + # Move the native threads library + mv adalib adainclude rts-native + cd ${S} + + # Compile and install the FSU threads library + rm stamp-gnatlib1 + make CC="gcc" CFLAGS="-O2" GNATLIBCFLAGS="-O2 -fPIC" \ + THREAD_KIND="fsu" gnatlib-shared + make prefix="${D}/usr" libdir="${D}/usr/lib/ada" install-gnatlib + cd "${D}/usr/lib/ada/gcc-lib/${CHOST}/2.8.1" + mv adalib adainclude rts-fsu + cd ${S} + + # Install the precompiled FSU library from the binary distribution + cp "${GNATBOOTINST}/libgthreads.a" "${D}/usr/lib/ada/gcc-lib/${CHOST}/2.8.1" + cp "${GNATBOOTINST}/libmalloc.a" "${D}/usr/lib/ada/gcc-lib/${CHOST}/2.8.1" + + # Make native threads the default + cd "${D}/usr/lib/ada/gcc-lib/${CHOST}/2.8.1" + ln -s rts-native/adalib adalib + ln -s rts-native/adainclude adainclude + + cp "${GNATBOOTINST}/gnathtml.pl" "${D}/usr/bin" + chmod +x "${D}/usr/bin" + + # Install documentation and examples + cd ${WORKDIR}/${P}-src + dodoc COPYING README + insinto /usr/share/${PN}/examples + doins examples/* + cd ${WORKDIR}/${P}-unx-docs + rm -f */gvd.* + rm -f */gdb.* + for i in `find . -name 'gcc*'`; do \ + mv ${i} ${i/gcc/gnatgcc}; \ + done + dohtml html/* + docinto ps + dodoc ps/* + docinto txt + dodoc txt/* + doinfo info/* + cd ${S} + mv gcc.1 gnatgcc.1 + doman gnatgcc.1 +} + +pkg_postinst() { + # Notify the user what changed + einfo "" + einfo "Both the native-threads and the FSU-threads runtimes have been" + einfo "installed. The native-threads version is the default on linux." + einfo "If you want to use FSU-threads (required if you are using Annex D)" + einfo "simply use the following switch: --RTS=fsu" + einfo "" + einfo "The compiler has been installed as gnatgcc, and the coverage testing" + einfo "tool as gnatgcov." + einfo "" +} |