# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit gnatbuild flag-o-matic DESCRIPTION="GNAT Ada Compiler" HOMEPAGE="http://gcc.gnu.org/" LICENSE="GMGPL" SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/gcc-${PV}/gcc-core-${PV}.tar.bz2 ftp://gcc.gnu.org/pub/gcc/releases/gcc-${PV}/gcc-ada-${PV}.tar.bz2 x86? ( mirror://gentoo/gcc-${GNATBRANCH}-i386.tar.bz2 ) amd64? ( mirror://gentoo/gcc-${GNATBRANCH}-amd64.tar.gz )" # ${GNATBRANCH} is defined in gnatbuild.eclass and depends # only on $PV, so should be safe to use in DEPEND/SRC_URI KEYWORDS="~amd64 ~x86" #IUSE="" src_unpack() { gnatbuild_src_unpack cd ${S}/gcc/ada # Install the bootstrap compiler if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86" ]; then patch Make-lang.in < ${FILESDIR}/gnat-3.44-amd64-Make-lang.in.patch fi #fixup some hardwired flags sed -i -e "s:CFLAGS = -O2:CFLAGS = ${CFLAGS}:" \ Makefile.adalib || die "patching Makefile.adalib failed" } pkg_postinst() { # Notify the user of 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 "" }