summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Holm <dholm@gentoo.org>2004-12-11 20:10:29 +0000
committerDavid Holm <dholm@gentoo.org>2004-12-11 20:10:29 +0000
commitcadba5c3c82acc86f1a73754c979f3856b8a7c11 (patch)
tree9eab94f9dab1ea4af94f71ca143c56aeb9530037 /dev-lang
parentremoved trailing space (diff)
downloadhistorical-cadba5c3c82acc86f1a73754c979f3856b8a7c11.tar.gz
historical-cadba5c3c82acc86f1a73754c979f3856b8a7c11.tar.bz2
historical-cadba5c3c82acc86f1a73754c979f3856b8a7c11.zip
Version bumped, and fixed bug #69118
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/gnat/ChangeLog7
-rw-r--r--dev-lang/gnat/Manifest4
-rw-r--r--dev-lang/gnat/files/digest-gnat-3.434
-rw-r--r--dev-lang/gnat/gnat-3.43.ebuild149
4 files changed, 162 insertions, 2 deletions
diff --git a/dev-lang/gnat/ChangeLog b/dev-lang/gnat/ChangeLog
index 1bc7d522a0e2..8ffd19fed44e 100644
--- a/dev-lang/gnat/ChangeLog
+++ b/dev-lang/gnat/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lang/gnat
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnat/ChangeLog,v 1.27 2004/11/29 09:09:39 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnat/ChangeLog,v 1.28 2004/12/11 20:10:28 dholm Exp $
+
+*gnat-3.43 (11 Dec 2004)
+
+ 11 Dec 2004; David Holm <dholm@gentoo.org> +gnat-3.43.ebuild:
+ Version bumped, and fixed bug #69118
29 Nov 2004; David Holm <dholm@gentoo.org> gnat-3.15p-r3.ebuild:
Fixed bug #39958.
diff --git a/dev-lang/gnat/Manifest b/dev-lang/gnat/Manifest
index a229616a3a0c..b6a165c9fcc9 100644
--- a/dev-lang/gnat/Manifest
+++ b/dev-lang/gnat/Manifest
@@ -2,8 +2,9 @@ MD5 b8821aa97616ac6b39d3f9287365f676 gnat-3.14p.ebuild 5602
MD5 b9333162fb87ac124e1fe5b0e40de968 gnat-3.15p.ebuild 5658
MD5 4b8299d1078b0c3a88969f43c9ae6a64 metadata.xml 927
MD5 382f8e252beb5e237b1327ebb4851735 gnat-3.41.ebuild 4012
-MD5 45f3e33cd35567965dc27ebf2b3c2a75 ChangeLog 4547
+MD5 0d0f22ebce4da34069615325132f643a ChangeLog 4677
MD5 6df5bf85baebbb51e69758238e5da694 gnat-3.15p-r3.ebuild 6071
+MD5 ad60313a5195fa61462ae798c54a6ea1 gnat-3.43.ebuild 4041
MD5 59500f81e672cff22232586fc278547b files/digest-gnat-3.14p 213
MD5 737e39907fb4f28640a1b4cbbc1cdc78 files/digest-gnat-3.15p 216
MD5 5710cea3459403d02bc4ad4674fa7d1b files/digest-gnat-3.15p-r3 378
@@ -12,3 +13,4 @@ MD5 f2825770e20893d32738f4106cd3d628 files/gnat-3.15p-gentoo.patch.bz2 3754
MD5 6c454f942791a6212d8b5cf5c92aa2d0 files/gnat-3.15p-i686-pc-linux-gnu-bin.patch 605
MD5 7fabcf7198fb4001adfba250899e0024 files/gnat-3.15p-noaddr2line.patch.bz2 542
MD5 ffcd9ae5ebd258ffd9c88fc3cf225bd6 files/digest-gnat-3.41 315
+MD5 119e0c400e71cdafcfb3eeca106c7029 files/digest-gnat-3.43 315
diff --git a/dev-lang/gnat/files/digest-gnat-3.43 b/dev-lang/gnat/files/digest-gnat-3.43
new file mode 100644
index 000000000000..f194c661c949
--- /dev/null
+++ b/dev-lang/gnat/files/digest-gnat-3.43
@@ -0,0 +1,4 @@
+MD5 d2cbfe8fc3205c1d7969b26377405778 gcc-core-3.4.3.tar.bz2 13040222
+MD5 99541b90c2081876daf34ef16c096d3f gcc-ada-3.4.3.tar.bz2 3460940
+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/gnat-3.43.ebuild b/dev-lang/gnat/gnat-3.43.ebuild
new file mode 100644
index 000000000000..beb6f244b9e9
--- /dev/null
+++ b/dev-lang/gnat/gnat-3.43.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/gnat/gnat-3.43.ebuild,v 1.1 2004/12/11 20:10:28 dholm Exp $
+
+inherit gnat
+
+MY_PV=3.4.3
+DESCRIPTION="GNAT Ada Compiler"
+SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/gcc-${MY_PV}/gcc-core-${MY_PV}.tar.bz2
+ ftp://gcc.gnu.org/pub/gcc/releases/gcc-${MY_PV}/gcc-ada-${MY_PV}.tar.bz2
+ x86? ( http://gd.tuwien.ac.at/languages/ada/gnat/3.15p/gnat-3.15p-i686-pc-redhat71-gnu-bin.tar.gz )
+ ppc? ( mirror://gentoo/gnat-3.15p-powerpc-unknown-linux-gnu.tar.bz2 )"
+HOMEPAGE="http://www.gnat.com/"
+
+DEPEND="x86? ( >=app-shells/tcsh-6.0 )"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+LICENSE="GMGPL"
+IUSE=""
+
+S="${WORKDIR}/gcc-${MY_PV}"
+GNATBUILD="${WORKDIR}/build"
+case ${ARCH} in
+ x86) GNATBOOT="${WORKDIR}/boot"
+ GNATBOOTINST="${WORKDIR}/gnat-3.15p-i686-pc-linux-gnu-bin"
+ ;;
+ ppc)
+ GNATBOOT="${WORKDIR}/gnat-3.15p-powerpc-unknown-linux-gnu"
+ ;;
+esac
+
+
+CFLAGS="-O -gnatpgn"
+
+src_unpack() {
+ unpack ${A}
+
+ # Install the bootstrap compiler
+ if [ "${ARCH}" = "x86" ]; then
+ cd "${GNATBOOTINST}"
+ patch -p1 < ${FILESDIR}/gnat-3.15p-i686-pc-linux-gnu-bin.patch
+ echo $'\n'3$'\n'${GNATBOOT}$'\n' | ./doconfig > doconfig.log 2>&1
+ ./doinstall
+ fi
+
+ # Prepare the gcc source directory
+ cd "${S}"
+ touch gcc/cstamp-h.in
+ touch gcc/ada/[es]info.h
+ touch gcc/ada/nmake.ad[bs]
+ mkdir -p "${GNATBUILD}"
+}
+
+src_compile() {
+ # Set some paths to our bootstrap compiler.
+ local GCC_EXEC_PREFIX="${GNATBOOT}/lib/gcc-lib/i686-pc-linux-gnu/3.2.3"
+ local PATH="${GNATBOOT}/bin:${PATH}"
+ local LDFLAGS="-L${GCC_EXEC_PREFIX} -L${GNATBOOTINST}"
+ local CC="${GNATBOOT}/bin/gcc"
+
+ # Configure gcc
+ cd "${GNATBUILD}"
+ "${S}"/configure --prefix=/usr \
+ --program-prefix=gnat \
+ --enable-languages="c,ada" \
+ --enable-libada \
+ --with-gcc \
+ --with-gnu-ld \
+ --with-gnu-as \
+ --enable-threads=posix \
+ --enable-shared \
+ --with-system-zlib \
+ --disable-nls \
+ --libdir=/usr/lib/ada \
+ --libexecdir=/usr/libexec/ada \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ || die "configure failed"
+
+ # Compile helper tools
+ cd "${GNATBOOT}"
+ cp ${S}/gcc/ada/xtreeprs.adb .
+ cp ${S}/gcc/ada/xsinfo.adb .
+ cp ${S}/gcc/ada/xeinfo.adb .
+ cp ${S}/gcc/ada/xnmake.adb .
+ gnatmake xtreeprs && \
+ gnatmake xsinfo && \
+ gnatmake xeinfo && \
+ gnatmake xnmake || die "building helper tools"
+
+ for i in `find ${S}/gcc/ada -name '*.ad[sb]'`; do \
+ sed -i -e "s/\"gcc\"/\"gnatgcc\"/g" ${i}; \
+ done
+
+ cd "${GNATBUILD}"
+ emake bootstrap || die "bootstrap failed"
+ make -C gcc gnatlib_and_tools || die "gnatlib_and_tools failed"
+ make -C gcc gnatlib-shared LIBRARY_VERSION=3.4
+}
+
+src_install() {
+ # Do not allow symlinks in /usr/lib/gcc/${CHOST}/${MY_PV}/include as
+ # this can break the build.
+ for x in ${WORKDIR}/build/gcc/include/*
+ do
+ if [ -L ${x} ]
+ then
+ rm -f ${x}
+ fi
+ done
+
+ # Install gnatgcc, tools and native threads library
+ cd "${GNATBUILD}"
+ #make prefix="${D}/usr" libdir="${D}/usr/lib/ada" install \
+ # || die "installing"
+ make prefix=${D}/usr \
+ libdir=${D}/usr/lib/ada \
+ libexecdir=${D}/usr/libexec/ada \
+ mandir=${D}/usr/share/man \
+ infodir=${D}/usr/share/info \
+ install || die "died while installing"
+
+ # These are all provided by gcc
+ rm -rf ${D}/usr/share/info
+ rm -rf ${D}/usr/share/man
+ rm -rf ${D}/usr/share/make
+
+ dodir "/usr/lib/ada/gcc/${CHOST}/${MY_PV}/rts-native"
+
+ # Move the native threads library
+ cd "${D}/usr/lib/ada/gcc/${CHOST}/${MY_PV}"
+ mv adalib adainclude rts-native
+
+ # Make native threads the default
+ ln -s rts-native/adalib adalib
+ ln -s rts-native/adainclude adainclude
+}
+
+pkg_postinst() {
+ # Notify the user what changed
+ einfo ""
+ einfo "The compiler has been installed as gnatgcc, and the coverage testing"
+ einfo "tool as gnatgcov."
+ einfo ""
+ einfo "If you are upgrading from GNAT-3.15p or older you will have to"
+ einfo "reemerge all Ada packages as GNAT-${MY_PV} has updated to a version of"
+ einfo "GCC which is not backwards compatible with 2.8.1."
+ einfo ""
+}