diff options
author | George Shapovalov <george@gentoo.org> | 2006-01-23 23:03:08 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2006-01-23 23:03:08 +0000 |
commit | 2bc351f0fe2edc3f5577e0c1c17bc775213c3898 (patch) | |
tree | 7962299ff1f026041da7a33c90ca987440442c5b /eclass | |
parent | Version bump for security. (diff) | |
download | historical-2bc351f0fe2edc3f5577e0c1c17bc775213c3898.tar.gz historical-2bc351f0fe2edc3f5577e0c1c17bc775213c3898.tar.bz2 historical-2bc351f0fe2edc3f5577e0c1c17bc775213c3898.zip |
src_install cleanups, plus made it wrap gnatgcc to force it to read proper specs (it ignores GCC_SPECS var for some reason)
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/gnatbuild.eclass | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/eclass/gnatbuild.eclass b/eclass/gnatbuild.eclass index 0bb2369c0b6c..3e5a2fb1787d 100644 --- a/eclass/gnatbuild.eclass +++ b/eclass/gnatbuild.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v 1.3 2006/01/22 20:11:22 george Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnatbuild.eclass,v 1.4 2006/01/23 23:03:08 george Exp $ # ATTN! # set HOMEPAGE and LICENSE in appropriate ebuild, as we have @@ -502,12 +502,22 @@ gnatbuild_src_install() { ln -s rts-native/adalib adalib ln -s rts-native/adainclude adainclude + # force gnatgcc to use its own specs - when installed it reads specs + # from system gcc location. Do the simple wrapper trick for now + # !ATTN! change this if eselect-gnat starts to follow eselect-compiler + cd "${D}${BINPATH}" + mv gnatgcc gnatgcc_2wrap + cat > gnatgcc << EOF +#! /bin/bash +# wrapper to cause gnatgcc read appropriate specs +BINDIR=\$(dirname \$0) +\${BINDIR}/gnatgcc_2wrap -specs="${LIBPATH}/specs" \$@ +EOF + chmod a+x gnatgcc + # use gid of 0 because some stupid ports don't have # the group 'root' set to gid 0 (toolchain.eclass) chown -R root:0 "${D}${LIBPATH}" - - # some provided ada specific Makefiles, may be usefull - #mv "${D}${PREFIX}/share/gnat" "${D}${DATAPATH}" ;; cleanup) @@ -528,7 +538,7 @@ gnatbuild_src_install() { cd "${D}${DATAPATH}" has noinfo ${FEATURES} \ && rm -rf info \ - || rm -f info/{gcc,cpp}* + || rm -f info/{dir,gcc,cpp}* has noman ${FEATURES} \ && rm -rf man \ || rm -rf man/man7/ |