/[gentoo-x86]/sys-devel/gcc/gcc-3.4.6-r2.ebuild
Gentoo

Diff of /sys-devel/gcc/gcc-3.4.6-r2.ebuild

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

Revision 1.1 Revision 1.2
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/sys-devel/gcc/gcc-3.4.6-r2.ebuild,v 1.1 2006/07/06 18:40:08 kevquinn Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.6-r2.ebuild,v 1.2 2006/07/13 11:34:13 kevquinn Exp $
4 4
5MAN_VER="" 5MAN_VER=""
6PATCH_VER="1.2" 6PATCH_VER="1.2"
7UCLIBC_VER="1.1" 7UCLIBC_VER="1.1"
8UCLIBC_GCC_VER="3.4.5" 8UCLIBC_GCC_VER="3.4.5"
135 if is_multilib ; then 135 if is_multilib ; then
136 sed -i -e '/GLIBCXX_IS_NATIVE=/s:false:true:' libstdc++-v3/configure || die 136 sed -i -e '/GLIBCXX_IS_NATIVE=/s:false:true:' libstdc++-v3/configure || die
137 fi 137 fi
138 ;; 138 ;;
139 esac 139 esac
140
141 # bug #139918 - conflict between gcc and java-config-2 for ownership of
142 # /usr/bin/rmi{c,registry}. Done with mv & sed rather than a patch
143 # because patches would be large (thanks to the rename of man files),
144 # and it's clear from the sed invocations that all that changes is the
145 # rmi{c,registry} names to grmi{c,registry} names.
146 # Kevin F. Quinn 2006-07-12
147 einfo "Renaming jdk executables rmic and rmiregistry to grmic and grmiregistry."
148 # 1) Move the man files if present (missing prior to gcc-3.4)
149 for manfile in rmic rmiregistry; do
150 [[ -f ${S}/gcc/doc/${manfile}.1 ]] || continue
151 mv ${S}/gcc/doc/${manfile}.1 ${S}/gcc/doc/g${manfile}.1
152 done
153 # 2) Fixup references in the docs if present (mission prior to gcc-3.4)
154 for jfile in gcc/doc/gcj.info gcc/doc/grmic.1 gcc/doc/grmiregistry.1 gcc/java/gcj.texi; do
155 [[ -f ${S}/${jfile} ]] || continue
156 sed -i -e 's:rmiregistry:grmiregistry:g' ${S}/${jfile} ||
157 die "Failed to fixup file ${jfile} for rename to grmiregistry"
158 sed -i -e 's:rmic:grmic:g' ${S}/${jfile} ||
159 die "Failed to fixup file ${jfile} for rename to grmic"
160 done
161 # 3) Fixup Makefiles to build the changed executable names
162 # These are present in all 3.x versions, and are the important bit
163 # to get gcc to build with the new names.
164 for jfile in libjava/Makefile.am libjava/Makefile.in gcc/java/Make-lang.in; do
165 sed -i -e 's:rmiregistry:grmiregistry:g' ${S}/${jfile} ||
166 die "Failed to fixup file ${jfile} for rename to grmiregistry"
167 # Careful with rmic on these files; it's also the name of a directory
168 # which should be left unchanged. When it appears as a directory,
169 # it has a '/' after it.
170 sed -i -e 's:rmic\([$_ ]\):grmic\1:g' ${S}/${jfile} ||
171 die "Failed to fixup file ${jfile} for rename to grmic"
172 done
140} 173}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20