Lines 2-8
Link Here
|
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: /home/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.2.1.ebuild,v 1.6 2002/12/09 22:23:07 azarah Exp $ |
3 |
# $Header: /home/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.2.1.ebuild,v 1.6 2002/12/09 22:23:07 azarah Exp $ |
4 |
|
4 |
|
5 |
IUSE="static nls bootstrap java build" |
5 |
IUSE="static nls bootstrap java ada build x86" |
6 |
|
6 |
|
7 |
# NOTE TO MAINTAINER: Info pages get nuked for multiple version installs. |
7 |
# NOTE TO MAINTAINER: Info pages get nuked for multiple version installs. |
8 |
# Ill fix it later if i get a chance. |
8 |
# Ill fix it later if i get a chance. |
Lines 69-74
Link Here
|
69 |
!build? ( >=sys-libs/ncurses-5.2-r2 )" |
69 |
!build? ( >=sys-libs/ncurses-5.2-r2 )" |
70 |
|
70 |
|
71 |
|
71 |
|
|
|
72 |
if [ -n "`use ada`" ] && [ -z "`use build`" ] |
73 |
then |
74 |
GNAT_SUPPORTED_ARCHS="x86" |
75 |
GNAT_BIN_FILE="" |
76 |
for i in ${GNAT_SUPPORTED_ARCHS} |
77 |
do |
78 |
if [ -n "`use ${i}`" ] |
79 |
then |
80 |
GNAT_BIN_FILE=gcc-3.2-bootstrap-gnat-${i}.tar.bz2 |
81 |
fi |
82 |
done |
83 |
if [ "${GNAT_BIN_FILE}" == "" ] |
84 |
then |
85 |
die "There is not yet Ada bootstrap compiler available for your architecture." |
86 |
fi |
87 |
|
88 |
SRC_URI="${SRC_URI} |
89 |
mirror://gentoo/distfiles/${GNAT_BIN_FILE}" |
90 |
PROVIDE="virtual/gnat" |
91 |
fi |
92 |
|
72 |
build_multiple() { |
93 |
build_multiple() { |
73 |
# Try to make sure that we should build multiple |
94 |
# Try to make sure that we should build multiple |
74 |
# versions of gcc (dual install of gcc2 and gcc3) |
95 |
# versions of gcc (dual install of gcc2 and gcc3) |
Lines 133-142
Link Here
|
133 |
then |
154 |
then |
134 |
echo "${OLD_GCC_VERSION}" > ${WORKDIR}/.oldgccversion |
155 |
echo "${OLD_GCC_VERSION}" > ${WORKDIR}/.oldgccversion |
135 |
fi |
156 |
fi |
|
|
157 |
|
158 |
# Ada requires gnat compiler to bootstrap |
159 |
if [ -n "`use ada`" ] && [ -z "`use build`" ] |
160 |
then |
161 |
unpack ${GNAT_BIN_FILE} |
162 |
local gnat_dir="${S}/bootstrap-gnat" |
163 |
export ADAC="${gnat_dir}/gnatgcc" |
164 |
export GNATBIND="${gnat_dir}/gnatbind" |
165 |
export PATH="${gnat_dir}:${PATH}" |
166 |
fi |
136 |
} |
167 |
} |
137 |
|
168 |
|
138 |
src_compile() { |
169 |
src_compile() { |
139 |
local myconf="" |
170 |
local myconf="" |
|
|
171 |
local myboot="" |
172 |
local myutil="" |
140 |
local gcc_lang="" |
173 |
local gcc_lang="" |
141 |
if [ -z "`use build`" ] |
174 |
if [ -z "`use build`" ] |
142 |
then |
175 |
then |
Lines 151-160
Link Here
|
151 |
else |
184 |
else |
152 |
myconf="${myconf} --enable-nls --without-included-gettext" |
185 |
myconf="${myconf} --enable-nls --without-included-gettext" |
153 |
fi |
186 |
fi |
|
|
187 |
if [ -z "`use static`" ] |
188 |
then |
189 |
myboot="${myboot} bootstrap-lean" |
190 |
else |
191 |
myboot="${myboot} LDFLAGS=-static bootstrap" |
192 |
myutil="${myutil} LDFLAGS=-static" |
193 |
fi |
154 |
if [ -n "`use java`" ] && [ -z "`use build`" ] |
194 |
if [ -n "`use java`" ] && [ -z "`use build`" ] |
155 |
then |
195 |
then |
156 |
gcc_lang="${gcc_lang},java" |
196 |
gcc_lang="${gcc_lang},java" |
157 |
fi |
197 |
fi |
|
|
198 |
if [ -n "`use ada`" ] && [ -z "`use build`" ] |
199 |
then |
200 |
gcc_lang="${gcc_lang},ada" |
201 |
# parallel build may fail to bootstrap ada |
202 |
myboot="${myboot} -j 1" |
203 |
myutil="${myutil} -j 1" |
204 |
fi |
158 |
|
205 |
|
159 |
# Only build with a program suffix if it is not our |
206 |
# Only build with a program suffix if it is not our |
160 |
# default compiler. Also check $GCCBUILD until we got |
207 |
# default compiler. Also check $GCCBUILD until we got |
Lines 198-215
Link Here
|
198 |
|
245 |
|
199 |
touch ${S}/gcc/c-gperf.h |
246 |
touch ${S}/gcc/c-gperf.h |
200 |
|
247 |
|
201 |
if [ -z "`use static`" ] |
248 |
if [ -n "`use ada`" ] && [ -z "`use build`" ] |
202 |
then |
249 |
then |
203 |
# Fix for our libtool-portage.patch |
250 |
pushd ${S}/gcc/ada |
204 |
S="${WORKDIR}/build" \ |
251 |
touch treeprs.ads [es]info.h nmake.ad[bs] |
205 |
emake bootstrap-lean \ |
252 |
popd |
206 |
BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die |
253 |
fi |
|
|
254 |
|
255 |
S="${WORKDIR}/build" \ |
256 |
emake ${myboot} \ |
257 |
BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die |
207 |
# Above FLAGS optimize and speedup build, thanks |
258 |
# Above FLAGS optimize and speedup build, thanks |
208 |
# to Jeff Garzik <jgarzik@mandrakesoft.com> |
259 |
# to Jeff Garzik <jgarzik@mandrakesoft.com> |
209 |
else |
260 |
|
210 |
S="${WORKDIR}/build" \ |
261 |
if [ -n "`use ada`" ] && [ -z "`use build`" ] |
211 |
emake LDFLAGS=-static bootstrap \ |
262 |
then |
212 |
BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die |
263 |
pushd ${WORKDIR}/build/gcc |
|
|
264 |
S="${WORKDIR}/build/gcc" \ |
265 |
emake ${myutil} gnatlib_and_tools || die |
266 |
popd |
213 |
fi |
267 |
fi |
214 |
} |
268 |
} |
215 |
|
269 |
|
Lines 383-388
Link Here
|
383 |
docinto libjava |
437 |
docinto libjava |
384 |
dodoc ChangeLog* COPYING HACKING LIBGCJ_LICENSE NEWS README THANKS |
438 |
dodoc ChangeLog* COPYING HACKING LIBGCJ_LICENSE NEWS README THANKS |
385 |
fi |
439 |
fi |
|
|
440 |
|
441 |
if [ -n "`use ada`" ] |
442 |
then |
443 |
cd ${S}/gcc/ada |
444 |
docinto gnat |
445 |
dodoc gnat-style.texi gnat_rm.texi gnat_ug.texi |
446 |
fi |
447 |
|
386 |
else |
448 |
else |
387 |
rm -rf ${D}/usr/share/{man,info} |
449 |
rm -rf ${D}/usr/share/{man,info} |
388 |
fi |
450 |
fi |