public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] PGCC
@ 2001-02-19 10:43 Jerry A!
  2001-02-19 11:08 ` Achim Gottinger
  0 siblings, 1 reply; 4+ messages in thread
From: Jerry A! @ 2001-02-19 10:43 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

Hey Achim, I was looking at using pgcc instead of gcc proper.  So, I've
hacked up the gcc-2.95.2.1.ebuild file.  Right now, I have it checking
if "use pgcc" is set.  If so, then it'll apply the patch cleanly.

Here's a list of the changes I've made:

. if/then blocks for "use pgcc"
. grap gcc-2.95.2.1.tar.gz instead of gcc-2.95.2 + diff file
. commented out A1 & A2--they appear to only be necessary for 2.95.2
    I will remove them from the final ebuild before committing if not
    necessary.
. commented out A1..A2 patches sections in src_unpack().  Will also be
    removed pending commit.

Is there any reason we don't build the texinfo docs?

Could you please look over this and let me know what you think?

        --Jerry

name:  Jerry Alexandratos         ||  Open-Source software isn't a
phone: 703.599.6023               ||  matter of life or death...
email: jerry@thehutt.org          ||  ...It's much more important
                                  ||  than that!

[-- Attachment #2: gcc-2.95.2.1.ebuild --]
[-- Type: text/plain, Size: 4127 bytes --]

# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /home/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.2.1.ebuild,v 1.1 2001/02/07 19:38:59 achim Exp $


A0=${P}.tar.gz
#A1=gcc-exception-fix.diff.gz
#A2=gcc-accept-doublecolon.diff.gz
A3=gcc-2.95.2.1-pgcc-2.95.2.1.diff.gz
S=${WORKDIR}/gcc-2.95.2
T=/usr

SRC_URI="ftp://ftp.freesoftware.com/pub/sourceware/gcc/releases/${P}/${A0}"

if [ "`use libg++`" ]; then
    SRC_URI="${SRC_URI}
            ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3.tar.gz
            ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3-20000312.diff.gz
            ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3-20000419.diff.gz
            ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3-20000816.diff.gz
            ftp://ftp.freesoftware.com/pub/sourceware/gcc/infrastructure/libg++-2.8.1.3-20000914.diff.gz"
fi

if [ "`use pgcc`" ]; then
    SRC_URI="${SRC_URI}
            http://www.goof.com/pcg/data/source/${A3}"
fi

DESCRIPTION="Modern GCC C/C++ compiler"
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
DEPEND="virtual/glibc
        >=sys-devel/gettext-0.10.35-r1"

RDEPEND="virtual/glibc"

src_unpack() {
    unpack gcc-2.95.2.tar.gz

    if [ "`use libg++`" ]; then
        unpack libg++-2.8.1.3.tar.gz
        cd ${S}/../libg++-2.8.1.3
        gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000312.diff.gz | patch -p1
        gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000419.diff.gz | patch -p1
        gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000816.diff.gz | patch -p1
        gzip -dc ${DISTDIR}/libg++-2.8.1.3-20000914.diff.gz | patch -p1
        cd ${S}
        mv ../libg++-2.8.1.3/* .
        rmdir ../libg++-2.8.1.3
    fi

    cd ${S}
#    echo "Patch ${A0}"
#    zcat ${FILESDIR}/${A0} | patch -p0

#    echo "Patch ${A1}"
#    zcat ${FILESDIR}/${A1} | patch -p0

#    echo "Patch ${A2}"
#    zcat ${FILESDIR}/${A2} | patch -p0

#    echo "Patch 2.95.2 - 2.95.2.1"
#    gzip -dc ${DISTDIR}/${PN}-2.95.2-${PV}.diff.gz | patch -p1

    if [ "`use pgcc`" ]; then
        echo "Patch ${A3}"
        gzip -dc ${DISTDIR}/${A3} | patch -p1
    fi

    # We do not build the included texinfo stuff
    rm -rf texinfo
}

src_compile() {
    # gcc does not like optimization
    export CFLAGS="${CFLAGS/-O?/}"
    export CXXFLAGS="${CXXFLAGS/-O?/}"

    try ${S}/configure --prefix=${T} --mandir=${T}/share/man --infodir=${T}/share/info \
                --enable-version-specific-runtime-libs \
                --host=${CHOST} --enable-threads --enable-shared \
                --with-local-prefix=${T}/local --enable-nls

    # Parallel build does not work
    try make ${MAKEOPTS} bootstrap-lean
}

src_install() {
    try make install prefix=${D}${T} mandir=${D}${T}/share/man infodir=${D}${T}/share/info

    FULLPATH=${D}${T}/lib/gcc-lib/${CHOST}/${PV}
    cd ${FULLPATH}
    dodir /lib
    dosym ${T}/lib/gcc-lib/${CHOST}/${PV}/cpp /lib/cpp
    dosym /usr/bin/gcc /usr/bin/cc

    cd ${S}

    dodoc COPYING COPYING.LIB README* FAQ MAINTAINERS
    docinto html
    dodoc faq.html
    docinto gcc
    cd ${S}/gcc

    dodoc BUGS ChangeLog* COPYING* FSFChangeLog* \
          LANGUAGES NEWS PROBLEMS README* \
          SERVICE TESTS.FLUNK

    cd ${S}/libchill
    docinto libchill
    dodoc ChangeLog
    cd ${S}/libf2c
    docinto libf2c
    dodoc ChangeLog changes.netlib README TODO
    cd ${S}/libiberty
    docinto libiberty
    dodoc ChangeLog COPYING.LIB README
    cd ${S}/libio
    docinto libio
    dodoc ChangeLog NEWS README
    cd dbz
    docinto libio/dbz
    dodoc README
    cd ../stdio
    docinto libio/stdio
    dodoc ChangeLog*
    cd ${S}/libobjc
    docinto libobjc
    dodoc ChangeLog README* THREADS*
    
    if [ "`use libg++`" ]; then
        cd ${S}/libg++
        docinto libg++
        dodoc ChangeLog g++FAQ.txt NEWS README* TODO
    else
        cd ${S}/libstdc++
        docinto libstdc++
        dodoc ChangeLog NEWS
    fi
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-19 19:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-19 10:43 [gentoo-dev] PGCC Jerry A!
2001-02-19 11:08 ` Achim Gottinger
2001-02-19 12:01   ` Jerry A!
2001-02-19 12:44     ` Achim Gottinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox