diff options
author | David Holm <dholm@gentoo.org> | 2003-09-28 10:25:24 +0000 |
---|---|---|
committer | David Holm <dholm@gentoo.org> | 2003-09-28 10:25:24 +0000 |
commit | e6e7459dfbb5669e04d1de4c53b257e4eae6a720 (patch) | |
tree | 39ff0785f335d76a2a3b00d72003115fbfcc5282 /dev-lang/gnat | |
parent | Added gnat-3.15p-r3 (diff) | |
download | historical-e6e7459dfbb5669e04d1de4c53b257e4eae6a720.tar.gz historical-e6e7459dfbb5669e04d1de4c53b257e4eae6a720.tar.bz2 historical-e6e7459dfbb5669e04d1de4c53b257e4eae6a720.zip |
Added gnat-3.15p-r3
Diffstat (limited to 'dev-lang/gnat')
-rw-r--r-- | dev-lang/gnat/Manifest | 4 | ||||
-rw-r--r-- | dev-lang/gnat/files/digest-gnat-3.15p-r3 | 5 | ||||
-rw-r--r-- | dev-lang/gnat/files/gnat-3.15p-gentoo.patch.bz2 | bin | 3080 -> 3754 bytes | |||
-rw-r--r-- | dev-lang/gnat/files/gnat-3.15p-noaddr2line.patch.bz2 | bin | 0 -> 542 bytes | |||
-rw-r--r-- | dev-lang/gnat/gnat-3.15p-r3.ebuild | 178 |
5 files changed, 185 insertions, 2 deletions
diff --git a/dev-lang/gnat/Manifest b/dev-lang/gnat/Manifest index 8046a975a9c9..d69c97d4af50 100644 --- a/dev-lang/gnat/Manifest +++ b/dev-lang/gnat/Manifest @@ -1,11 +1,11 @@ -MD5 04886270f17d36fcbeec05dde1c81a05 ChangeLog 2643 +MD5 8100b69ef5b278dfa88bb8b91e365bb1 ChangeLog 2644 MD5 332d79b0cddb0dfcb80bc77487f36918 gnat-3.14p.ebuild 5673 MD5 6deb19eecc4f53aba08a7aaa89e80d0d gnat-3.15p-r1.ebuild 5468 MD5 2f454961e48b21552f1a9bd35b83a8dc gnat-3.15p-r2.ebuild 4879 MD5 f44a1458554adef6e9794dc5d4fbb719 gnat-3.15p.ebuild 5667 MD5 9dd49db5f4cbf1afbe367cb529a22b78 gnat-5.0_pre20030822.ebuild 4264 MD5 4b8299d1078b0c3a88969f43c9ae6a64 metadata.xml 927 -MD5 15461137e2e7535c43e1bf895d997ab1 gnat-3.15p-r3.ebuild 5314 +MD5 67b7a6d19856bfc464851c4e4a60c093 gnat-3.15p-r3.ebuild 5410 MD5 59500f81e672cff22232586fc278547b files/digest-gnat-3.14p 213 MD5 737e39907fb4f28640a1b4cbbc1cdc78 files/digest-gnat-3.15p 216 MD5 419f46c7076e98eee00cf04ce2199ab0 files/digest-gnat-3.15p-r1 288 diff --git a/dev-lang/gnat/files/digest-gnat-3.15p-r3 b/dev-lang/gnat/files/digest-gnat-3.15p-r3 new file mode 100644 index 000000000000..ef184b39a779 --- /dev/null +++ b/dev-lang/gnat/files/digest-gnat-3.15p-r3 @@ -0,0 +1,5 @@ +MD5 cf8b9cccc867e318bccaaa2dce384028 gnat-3.15p-src.tgz 5553434 +MD5 3bcbedfaccf343a8515efc0f74b8a027 gnat-3.15p-unx-docs.tar.gz 9515443 +MD5 23ce8b5d276e2eab421416564f9dc8a3 gcc-2.8.1.tar.bz2 6304274 +MD5 57c060cd1ccef8b1ae9165b11d98780a gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.gz 13482938 +MD5 33a146f39c04b2ac055ae81585622d08 gnat-3.15p-powerpc-unknown-linux-gnu.tar.bz2 8228916 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 differindex 8d3a939c62d0..d5ab8ae3cf1d 100644 --- a/dev-lang/gnat/files/gnat-3.15p-gentoo.patch.bz2 +++ b/dev-lang/gnat/files/gnat-3.15p-gentoo.patch.bz2 diff --git a/dev-lang/gnat/files/gnat-3.15p-noaddr2line.patch.bz2 b/dev-lang/gnat/files/gnat-3.15p-noaddr2line.patch.bz2 Binary files differnew file mode 100644 index 000000000000..91cc0ecaa69b --- /dev/null +++ b/dev-lang/gnat/files/gnat-3.15p-noaddr2line.patch.bz2 diff --git a/dev-lang/gnat/gnat-3.15p-r3.ebuild b/dev-lang/gnat/gnat-3.15p-r3.ebuild new file mode 100644 index 000000000000..35bc74ea5af2 --- /dev/null +++ b/dev-lang/gnat/gnat-3.15p-r3.ebuild @@ -0,0 +1,178 @@ +# 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-r3.ebuild,v 1.1 2003/09/28 10:25:17 dholm Exp $ + +DESCRIPTION="The GNU Ada Toolkit" +DEPEND="x86? ( >=app-shells/tcsh-6.0 )" +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 + ftp://gcc.gnu.org/pub/gcc/old-releases/gcc-2/gcc-2.8.1.tar.bz2 + x86? ( http://gd.tuwien.ac.at/languages/ada/gnat/${PV}/${P}-i686-pc-redhat71-gnu-bin.tar.gz ) + ppc? ( mirror://gentoo/${P}-powerpc-unknown-linux-gnu.tar.bz2 )" +HOMEPAGE="http://www.gnat.com/" + +SLOT="0" +KEYWORDS="~x86 ~ppc" +LICENSE="GMGPL" +IUSE="" + +S="${WORKDIR}/gcc-2.8.1" +GNATDIR="${WORKDIR}/${P}-src" + +case ${ARCH} in + x86) GNATBOOT="${WORKDIR}/boot" + GNATBOOTINST="${WORKDIR}/${P}-i686-pc-linux-gnu-bin" + ;; + ppc) + GNATBOOT="${WORKDIR}/${P}-powerpc-unknown-linux-gnu" + ;; +esac + +inherit gnat + +src_unpack() { + unpack ${A} + + # Install the bootstrap compiler + if [ "${ARCH}" = "x86" ]; then + cd "${GNATBOOTINST}" + echo $'\n'3$'\n'${GNATBOOT}$'\n' | ./doconfig > doconfig.log 2>&1 + ./doinstall + fi + + # Prepare the gcc source directory + cd "${S}" + patch -p0 < "${GNATDIR}/src/gcc-281.dif" + touch cstamp-h.in + mv "${GNATDIR}/src/ada" "${S}" + bzcat "${FILESDIR}/${P}-gentoo.patch.bz2" | patch -p1 + touch ada/treeprs.ads ada/a-[es]info.h ada/nmake.ad[bs] + + if [ "${ARCH}" != "x86" ]; then + cd "${S}" + bzcat "${FILESDIR}/${P}-noaddr2line.patch.bz2" | patch -p1 + fi +} + +src_compile() { + local PATH="${GNATBOOT}/bin:${PATH}" + if [ -z ${GNATBOOTINST} ]; then + local LDFLAGS="-L${GNATBOOTINST}" + fi + + # Make $local_prefix point to $prefix + sed -i -e "s/@local_prefix@/@prefix@/" "${S}/Makefile.in" + + # Configure gcc + local CFLAGS="-O0" + 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" CFLAGS="-O0" LANGUAGES="c ada gcov" || \ + die "Failed while running inital compilation!" + make CC="gcc" CFLAGS="-O0" LANGUAGES="c ada gcov" bootstrap || \ + die "Died while bootstrapping!" + make CC="gcc" CFLAGS="-O0" GNATLIBCFLAGS="-O0" gnatlib-shared || \ + die "Failed to build the shared version of gnatlib!" + make CC="gcc" CFLAGS="-O0" gnattools || \ + die "Failed to build gnattools!" +} + +src_install() { + local PATH="${GNATBOOT}/bin:${PATH}" + if [ -z ${GNATBOOTINST} ]; then + local LDFLAGS="-L${GNATBOOTINST}" + fi + + # 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 "Failed while installing GNAT" + touch "${D}/usr/lib/ada/gcc-lib/${CHOST}/2.8.1/include/float.h" + + # Build and install the static version of gnatlib + make CC="gcc" CFLAGS="-O0" GNATLIBCFLAGS="-O0 -fPIC" gnatlib || + die "Failed while compiling static gnatlib!" + make prefix="${D}/usr" libdir="${D}/usr/lib/ada" \ + LANGUAGES="c ada gcov" GCC_INSTALL_NAME=gnatgcc install-gnatlib || + die "Failed while installing static gnatlib!" + + if [ "${ARCH}" = "x86" ]; then + # 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="-O0" GNATLIBCFLAGS="-O0 -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 + fi + + if [ -z ${GNATBOOTINST} ]; then + cp "${GNATBOOTINST}/gnathtml.pl" "${D}/usr/bin" + chmod +x "${D}/usr/bin" + fi + + # 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 "" + if [ "${ARCH}" = "x86" ]; then + 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" + einfo "Annex D) simply use the following switch: --RTS=fsu" + einfo "" + fi + einfo "The compiler has been installed as gnatgcc, and the coverage testing" + einfo "tool as gnatgcov." + einfo "" +} |