/[gentoo-x86]/eclass/toolchain.eclass
Gentoo

Diff of /eclass/toolchain.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.389 Revision 1.390
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.389 2009/01/29 06:06:45 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.390 2009/02/09 19:56:07 maekke Exp $
4# 4#
5# Maintainer: Toolchain Ninjas <toolchain@gentoo.org> 5# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
6 6
7HOMEPAGE="http://gcc.gnu.org/" 7HOMEPAGE="http://gcc.gnu.org/"
8LICENSE="GPL-2 LGPL-2.1" 8LICENSE="GPL-2 LGPL-2.1"
1031 # Kevin F. Quinn 2006-07-12 1031 # Kevin F. Quinn 2006-07-12
1032 einfo "Renaming jdk executables rmic and rmiregistry to grmic and grmiregistry." 1032 einfo "Renaming jdk executables rmic and rmiregistry to grmic and grmiregistry."
1033 # 1) Move the man files if present (missing prior to gcc-3.4) 1033 # 1) Move the man files if present (missing prior to gcc-3.4)
1034 for manfile in rmic rmiregistry; do 1034 for manfile in rmic rmiregistry; do
1035 [[ -f ${S}/gcc/doc/${manfile}.1 ]] || continue 1035 [[ -f ${S}/gcc/doc/${manfile}.1 ]] || continue
1036 mv ${S}/gcc/doc/${manfile}.1 ${S}/gcc/doc/g${manfile}.1 1036 mv "${S}"/gcc/doc/${manfile}.1 "${S}"/gcc/doc/g${manfile}.1
1037 done 1037 done
1038 # 2) Fixup references in the docs if present (mission prior to gcc-3.4) 1038 # 2) Fixup references in the docs if present (mission prior to gcc-3.4)
1039 for jfile in gcc/doc/gcj.info gcc/doc/grmic.1 gcc/doc/grmiregistry.1 gcc/java/gcj.texi; do 1039 for jfile in gcc/doc/gcj.info gcc/doc/grmic.1 gcc/doc/grmiregistry.1 gcc/java/gcj.texi; do
1040 [[ -f ${S}/${jfile} ]] || continue 1040 [[ -f ${S}/${jfile} ]] || continue
1041 sed -i -e 's:rmiregistry:grmiregistry:g' ${S}/${jfile} || 1041 sed -i -e 's:rmiregistry:grmiregistry:g' "${S}"/${jfile} ||
1042 die "Failed to fixup file ${jfile} for rename to grmiregistry" 1042 die "Failed to fixup file ${jfile} for rename to grmiregistry"
1043 sed -i -e 's:rmic:grmic:g' ${S}/${jfile} || 1043 sed -i -e 's:rmic:grmic:g' "${S}"/${jfile} ||
1044 die "Failed to fixup file ${jfile} for rename to grmic" 1044 die "Failed to fixup file ${jfile} for rename to grmic"
1045 done 1045 done
1046 # 3) Fixup Makefiles to build the changed executable names 1046 # 3) Fixup Makefiles to build the changed executable names
1047 # These are present in all 3.x versions, and are the important bit 1047 # These are present in all 3.x versions, and are the important bit
1048 # to get gcc to build with the new names. 1048 # to get gcc to build with the new names.
1049 for jfile in libjava/Makefile.am libjava/Makefile.in gcc/java/Make-lang.in; do 1049 for jfile in libjava/Makefile.am libjava/Makefile.in gcc/java/Make-lang.in; do
1050 sed -i -e 's:rmiregistry:grmiregistry:g' ${S}/${jfile} || 1050 sed -i -e 's:rmiregistry:grmiregistry:g' "${S}"/${jfile} ||
1051 die "Failed to fixup file ${jfile} for rename to grmiregistry" 1051 die "Failed to fixup file ${jfile} for rename to grmiregistry"
1052 # Careful with rmic on these files; it's also the name of a directory 1052 # Careful with rmic on these files; it's also the name of a directory
1053 # which should be left unchanged. Replace occurrences of 'rmic$', 1053 # which should be left unchanged. Replace occurrences of 'rmic$',
1054 # 'rmic_' and 'rmic '. 1054 # 'rmic_' and 'rmic '.
1055 sed -i -e 's:rmic\([$_ ]\):grmic\1:g' ${S}/${jfile} || 1055 sed -i -e 's:rmic\([$_ ]\):grmic\1:g' "${S}"/${jfile} ||
1056 die "Failed to fixup file ${jfile} for rename to grmic" 1056 die "Failed to fixup file ${jfile} for rename to grmic"
1057 done 1057 done
1058} 1058}
1059gcc_src_unpack() { 1059gcc_src_unpack() {
1060 export BRANDING_GCC_PKGVERSION="Gentoo ${GCC_PVR}" 1060 export BRANDING_GCC_PKGVERSION="Gentoo ${GCC_PVR}"
1960 else 1960 else
1961 unpack gcc-${GCC_RELEASE_VER}.tar.bz2 1961 unpack gcc-${GCC_RELEASE_VER}.tar.bz2
1962 # We want branch updates to be against a release tarball 1962 # We want branch updates to be against a release tarball
1963 if [[ -n ${BRANCH_UPDATE} ]] ; then 1963 if [[ -n ${BRANCH_UPDATE} ]] ; then
1964 pushd "${S}" > /dev/null 1964 pushd "${S}" > /dev/null
1965 epatch ${DISTDIR}/gcc-${GCC_RELEASE_VER}-branch-update-${BRANCH_UPDATE}.patch.bz2 1965 epatch "${DISTDIR}"/gcc-${GCC_RELEASE_VER}-branch-update-${BRANCH_UPDATE}.patch.bz2
1966 popd > /dev/null 1966 popd > /dev/null
1967 fi 1967 fi
1968 fi 1968 fi
1969 1969
1970 if [[ -n ${D_VER} ]] && use d ; then 1970 if [[ -n ${D_VER} ]] && use d ; then

Legend:
Removed from v.1.389  
changed lines
  Added in v.1.390

  ViewVC Help
Powered by ViewVC 1.1.20