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

Diff of /sys-devel/gcc/gcc-3.2.2.ebuild

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

Revision 1.12 Revision 1.16
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/Attic/gcc-3.2.2.ebuild,v 1.12 2003/03/09 03:23:08 azarah Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/Attic/gcc-3.2.2.ebuild,v 1.16 2003/04/12 19:47:21 azarah Exp $
4 4
5IUSE="static nls bootstrap java build" 5IUSE="static nls bootstrap java build"
6 6
7inherit eutils flag-o-matic libtool 7inherit eutils flag-o-matic libtool
8 8
82 82
83DESCRIPTION="The GNU Compiler Collection. Includes C/C++ and java compilers" 83DESCRIPTION="The GNU Compiler Collection. Includes C/C++ and java compilers"
84HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" 84HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
85 85
86LICENSE="GPL-2 LGPL-2.1" 86LICENSE="GPL-2 LGPL-2.1"
87KEYWORDS="x86 ~ppc ~sparc alpha hppa arm mips" 87KEYWORDS="x86 ~ppc sparc alpha hppa arm mips"
88 88
89# Ok, this is a hairy one again, but lets assume that we 89# Ok, this is a hairy one again, but lets assume that we
90# are not cross compiling, than we want SLOT to only contain 90# are not cross compiling, than we want SLOT to only contain
91# $PV, as people upgrading to new gcc layout will not have 91# $PV, as people upgrading to new gcc layout will not have
92# their old gcc unmerged ... 92# their old gcc unmerged ...
285 285
286 # Setup -j in MAKEOPTS 286 # Setup -j in MAKEOPTS
287 get_number_of_jobs 287 get_number_of_jobs
288 288
289 einfo "Building GCC..." 289 einfo "Building GCC..."
290 if [ -z "`use static`" ] 290 # Only build it static if we are just building the C frontend, else
291 # a lot of things break because there are not libstdc++.so ....
292 if [ -n "`use static`" -a "${gcc_lang}" = "c" ]
291 then 293 then
292 # Fix for our libtool-portage.patch 294 # Fix for our libtool-portage.patch
293 S="${WORKDIR}/build" \ 295 S="${WORKDIR}/build" \
294 emake bootstrap-lean \ 296 emake LDFLAGS="-static" bootstrap \
295 LIBPATH="${LIBPATH}" \ 297 LIBPATH="${LIBPATH}" \
296 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die 298 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die
297 # Above FLAGS optimize and speedup build, thanks 299 # Above FLAGS optimize and speedup build, thanks
298 # to Jeff Garzik <jgarzik@mandrakesoft.com> 300 # to Jeff Garzik <jgarzik@mandrakesoft.com>
299 else 301 else
302 # Fix for our libtool-portage.patch
300 S="${WORKDIR}/build" \ 303 S="${WORKDIR}/build" \
301 emake LDFLAGS=-static bootstrap \ 304 emake bootstrap-lean \
302 LIBPATH="${LIBPATH}" \ 305 LIBPATH="${LIBPATH}" \
303 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die 306 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die
304 fi 307 fi
305} 308}
306 309
432 then 435 then
433 rm -f ${D}${LOC}/lib/libiberty.a 436 rm -f ${D}${LOC}/lib/libiberty.a
434 fi 437 fi
435 438
436 cd ${S} 439 cd ${S}
437 if [ -z "`use build`" ] 440 if [ -z "`use build`" ]
438 then 441 then
439 cd ${S} 442 cd ${S}
440 docinto /${CCHOST} 443 docinto /${CCHOST}
441 dodoc COPYING COPYING.LIB ChangeLog FAQ GNATS MAINTAINERS README 444 dodoc COPYING COPYING.LIB ChangeLog FAQ GNATS MAINTAINERS README
442 docinto ${CCHOST}/html 445 docinto ${CCHOST}/html
443 dohtml *.html 446 dohtml *.html
448 dohtml doc/*.html 451 dohtml doc/*.html
449 cd ${S}/gcc 452 cd ${S}/gcc
450 docinto ${CCHOST}/gcc 453 docinto ${CCHOST}/gcc
451 dodoc ChangeLog* FSFChangeLog* LANGUAGES NEWS ONEWS README* SERVICE 454 dodoc ChangeLog* FSFChangeLog* LANGUAGES NEWS ONEWS README* SERVICE
452 cd ${S}/libf2c 455 cd ${S}/libf2c
453 docinto ${CCHOST}/libf2c 456 docinto ${CCHOST}/libf2c
454 dodoc ChangeLog README TODO *.netlib 457 dodoc ChangeLog README TODO *.netlib
455 cd ${S}/libffi 458 cd ${S}/libffi
456 docinto ${CCHOST}/libffi 459 docinto ${CCHOST}/libffi
457 dodoc ChangeLog* LICENSE README 460 dodoc ChangeLog* LICENSE README
458 cd ${S}/libiberty 461 cd ${S}/libiberty
459 docinto ${CCHOST}/libiberty 462 docinto ${CCHOST}/libiberty
460 dodoc ChangeLog COPYING.LIB README 463 dodoc ChangeLog COPYING.LIB README
461 cd ${S}/libobjc 464 cd ${S}/libobjc
462 docinto ${CCHOST}/libobjc 465 docinto ${CCHOST}/libobjc
463 dodoc ChangeLog README* THREADS* 466 dodoc ChangeLog README* THREADS*
464 cd ${S}/libstdc++-v3 467 cd ${S}/libstdc++-v3
465 docinto ${CCHOST}/libstdc++-v3 468 docinto ${CCHOST}/libstdc++-v3
466 dodoc ChangeLog* README 469 dodoc ChangeLog* README
467 docinto ${CCHOST}/libstdc++-v3/html 470 docinto ${CCHOST}/libstdc++-v3/html
468 dohtml -r -a css,diff,html,txt,xml docs/html/* 471 dohtml -r -a css,diff,html,txt,xml docs/html/*
469 cp -f docs/html/17_intro/[A-Z]* \ 472 cp -f docs/html/17_intro/[A-Z]* \
470 ${D}/usr/share/doc/${PF}/${DOCDESTTREE}/17_intro/ 473 ${D}/usr/share/doc/${PF}/${DOCDESTTREE}/17_intro/
471 474
472 if [ -n "`use java`" ] 475 if [ -n "`use java`" ]
473 then 476 then
474 cd ${S}/fastjar 477 cd ${S}/fastjar
475 docinto ${CCHOST}/fastjar 478 docinto ${CCHOST}/fastjar
476 dodoc AUTHORS CHANGES COPYING ChangeLog NEWS README 479 dodoc AUTHORS CHANGES COPYING ChangeLog NEWS README
477 cd ${S}/libjava 480 cd ${S}/libjava
478 docinto ${CCHOST}/libjava 481 docinto ${CCHOST}/libjava
479 dodoc ChangeLog* COPYING HACKING LIBGCJ_LICENSE NEWS README THANKS 482 dodoc ChangeLog* COPYING HACKING LIBGCJ_LICENSE NEWS README THANKS
480 fi 483 fi
481 else 484 else
482 rm -rf ${D}/usr/share/{man,info} 485 rm -rf ${D}/usr/share/{man,info}
483 fi 486 fi
484 487
485 # Rather install the script, else portage with changing $FILESDIR 488 # Rather install the script, else portage with changing $FILESDIR
486 # between binary and source package borks things .... 489 # between binary and source package borks things ....
487 insinto /lib/rcscripts/awk 490 insinto /lib/rcscripts/awk
488 doins ${FILESDIR}/awk/fixlafiles.awk 491 doins ${FILESDIR}/awk/fixlafiles.awk
489 exeinto /sbin 492 exeinto /sbin
490 doexe ${FILESDIR}/fix_libtool_files.sh 493 doexe ${FILESDIR}/fix_libtool_files.sh
491 494
492 # Fix ncurses b0rking 495 # Fix ncurses b0rking
493 find ${D}/ -name '*curses.h' -exec rm -f {} \; 496 find ${D}/ -name '*curses.h' -exec rm -f {} \;
494} 497}
495 498
496pkg_preinst() { 499pkg_preinst() {
497 500
498 if [ ! -f "${WORKDIR}/.chkgccversion" ] 501 if [ ! -f "${WORKDIR}/.chkgccversion" ]
499 then 502 then
500 chk_gcc_version 503 chk_gcc_version
501 fi 504 fi
505
506 # Make again sure that the linker "should" be able to locate
507 # libstdc++.so ...
508 export LD_LIBRARY_PATH="${LIBPATH}:${LD_LIBRARY_PATH}"
509 ${ROOT}/sbin/ldconfig
502} 510}
503 511
504pkg_postinst() { 512pkg_postinst() {
505 513
506 export LD_LIBRARY_PATH="${LIBPATH}:${LD_LIBRARY_PATH}" 514 export LD_LIBRARY_PATH="${LIBPATH}:${LD_LIBRARY_PATH}"

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20