Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 11204 | Differences between
and this patch

Collapse All | Expand All

(-)gcc-3.2-r4.ebuild.orig (-11 / +74 lines)
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-r4.ebuild,v 1.3 2002/11/21 15:41:40 doctomoe Exp $
3
# $Header: /home/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.2-r4.ebuild,v 1.3 2002/11/21 15:41:40 doctomoe 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
	>=sys-apps/texinfo-4.2-r4
69
	>=sys-apps/texinfo-4.2-r4
70
	!build? ( >=sys-libs/ncurses-5.2-r2 )"
70
	!build? ( >=sys-libs/ncurses-5.2-r2 )"
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=${P}-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
72
92
73
build_multiple() {
93
build_multiple() {
74
	# Try to make sure that we should build multiple
94
	# Try to make sure that we should build multiple
Lines 149-177 Link Here
149
			${x}.orig > ${x}
169
			${x}.orig > ${x}
150
		rm -f ${x}.orig
170
		rm -f ${x}.orig
151
	done
171
	done
172
173
        # Ada requires gnat compiler to bootstrap
174
	if [ -n "`use ada`" ] && [ -z "`use build`" ]
175
	then
176
                unpack ${GNAT_BIN_FILE}
177
                local gnat_dir="${S}/bootstrap-gnat"
178
                export ADAC="${gnat_dir}/gnatgcc"
179
                export GNATBIND="${gnat_dir}/gnatbind"
180
                export PATH="${gnat_dir}:${PATH}"
181
	fi
152
}
182
}
153
183
154
src_compile() {
184
src_compile() {
155
	local myconf=""
185
	local myconf=""
186
        local myboot=""
187
        local myutil=""
156
	local gcc_lang=""
188
	local gcc_lang=""
189
157
	if [ -z "`use build`" ]
190
	if [ -z "`use build`" ]
158
	then
191
	then
159
		myconf="${myconf} --enable-shared"
192
		myconf="${myconf} --enable-shared"
160
		gcc_lang="c,c++,ada,f77,objc"
193
		gcc_lang="c,c++,f77,objc"
161
	else
194
	else
162
		gcc_lang="c"
195
		gcc_lang="c"
163
	fi
196
	fi
197
164
	if [ -z "`use nls`" ] || [ "`use build`" ]
198
	if [ -z "`use nls`" ] || [ "`use build`" ]
165
	then
199
	then
166
		myconf="${myconf} --disable-nls"
200
		myconf="${myconf} --disable-nls"
167
	else
201
	else
168
		myconf="${myconf} --enable-nls --without-included-gettext"
202
		myconf="${myconf} --enable-nls --without-included-gettext"
169
	fi
203
	fi
204
205
	if [ -z "`use static`" ]
206
	then
207
                myboot="${myboot} bootstrap-lean"
208
	else
209
                myboot="${myboot} LDFLAGS=-static bootstrap"
210
                myutil="${myutil} LDFLAGS=-static"
211
	fi
212
170
	if [ -n "`use java`" ] && [ -z "`use build`" ]
213
	if [ -n "`use java`" ] && [ -z "`use build`" ]
171
	then
214
	then
172
		gcc_lang="${gcc_lang},java"
215
		gcc_lang="${gcc_lang},java"
173
	fi
216
	fi
174
217
218
	if [ -n "`use ada`" ] && [ -z "`use build`" ]
219
	then
220
		gcc_lang="${gcc_lang},ada"
221
	fi
222
175
	# Only build with a program suffix if it is not our
223
	# Only build with a program suffix if it is not our
176
	# default compiler.  Also check $GCCBUILD until we got
224
	# default compiler.  Also check $GCCBUILD until we got
177
	# compilers sorted out.
225
	# compilers sorted out.
Lines 214-231 Link Here
214
262
215
	touch ${S}/gcc/c-gperf.h
263
	touch ${S}/gcc/c-gperf.h
216
264
217
	if [ -z "`use static`" ]
265
	if [ -n "`use ada`" ] && [ -z "`use build`" ]
218
	then
266
	then
219
		# Fix for our libtool-portage.patch
267
                pushd ${S}/gcc/ada
220
		S="${WORKDIR}/build" \
268
                touch treeprs.ads [es]info.h nmake.ad[bs]
221
		emake bootstrap-lean \
269
                popd
222
			BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die
270
	fi
271
272
	S="${WORKDIR}/build" \
273
	emake ${myboot} \
274
		BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die
223
		# Above FLAGS optimize and speedup build, thanks
275
		# Above FLAGS optimize and speedup build, thanks
224
		# to Jeff Garzik <jgarzik@mandrakesoft.com>
276
		# to Jeff Garzik <jgarzik@mandrakesoft.com>
225
	else
277
226
		S="${WORKDIR}/build" \
278
	if [ -n "`use ada`" ] && [ -z "`use build`" ]
227
		emake LDFLAGS=-static bootstrap \
279
	then
228
			BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die
280
                pushd ${WORKDIR}/build/gcc
281
        	S="${WORKDIR}/build/gcc" \
282
                        emake ${myutil} -j 1 gnatlib_and_tools || die
283
                popd
229
	fi
284
	fi
230
}
285
}
231
286
Lines 395-400 Link Here
395
			docinto libjava
450
			docinto libjava
396
			dodoc ChangeLog* COPYING HACKING LIBGCJ_LICENSE NEWS README THANKS
451
			dodoc ChangeLog* COPYING HACKING LIBGCJ_LICENSE NEWS README THANKS
397
        fi
452
        fi
453
454
        if [ -n "`use ada`" ]
455
        then
456
                cd ${S}/gcc/ada
457
                docinto gnat
458
                dodoc gnat-style.texi gnat_rm.texi gnat_ug.texi
459
        fi
460
398
    else
461
    else
399
        rm -rf ${D}/usr/share/{man,info}
462
        rm -rf ${D}/usr/share/{man,info}
400
	fi
463
	fi

Return to bug 11204