Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 31650 Details for
Bug 51162
tigcc v0.95 Beta 8 Ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ebuild.patch - incorporates Daniel's patch
mychanges.patch (text/plain), 4.80 KB, created by
Robert Führicht
on 2004-05-18 05:10:01 UTC
(
hide
)
Description:
ebuild.patch - incorporates Daniel's patch
Filename:
MIME Type:
Creator:
Robert Führicht
Created:
2004-05-18 05:10:01 UTC
Size:
4.80 KB
patch
obsolete
>--- tigcc-0.95_beta8.ebuild-john 2004-05-18 14:06:41.570594560 +0200 >+++ tigcc-0.95_beta8.ebuild 2004-05-18 13:57:24.679254912 +0200 >@@ -2,81 +2,90 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: $ > >+BASE_GCC="3.3.3" >+#BASE_BINUTILS="2.14.90.0.6" >+BASE_BINUTILS="2.14" >+GCC_VER=${BASE_GCC:0:3} >+BIN_VER=${BASE_BINUTILS:0:4} >+ > DESCRIPTION="cross compiler for 68k graphing calcualtors (i.e. TI-89,92+,V200)" > HOMEPAGE="http://tigcc.ticalc.org" > SRC_URI="http://www.technoplaza.net/tigcc/ebuilds/${P}.tar.bz2 >-ftp://ftp.gnu.org/gnu/gcc/releases/gcc-3.3.3/gcc-core-3.3.3.tar.bz2 >-ftp://ftp.gnu.org/gnu/binutils/binutils-2.14.tar.bz2" >+ mirror://gnu/gcc/releases/gcc-${BASE_GCC}/gcc-core-${BASE_GCC}.tar.bz2 >+ mirror://kernel/linux/devel/binutils/binutils-${BASE_BINUTILS}.tar.bz2" >+ > LICENSE="GPL-2" > > SLOT="0" >-KEYWORDS="~x86 ~ppc ~sparc" >+KEYWORDS="~x86 ~ppc ~sparc ~amd64" > IUSE="" > > DEPEND="virtual/glibc >->=sys-devel/binutils-2.14.90.0.6-r1 >->=sys-devel/bison-1.875" >+ >=sys-devel/binutils-2.14.90.0.6-r1 >+ >=sys-devel/bison-1.875" > > src_unpack() { > unpack ${A} >-} >- >-src_compile() { >- # many programs to build here... >- > # start by patching binutils and gcc >- cd ${WORKDIR}/binutils-2.14 >- patch -p1 < ${S}/sources/gcc/gas-2.14-tigcc-5.diff >+ cd ${WORKDIR}/binutils-${BASE_BINUTILS} >+ epatch ${S}/sources/gcc/gas-${BIN_VER}-tigcc-5.diff > >- cd ${WORKDIR}/gcc-3.3.3 >- patch -p1 < ${S}/sources/gcc/gcc-3.3.3-tigcc-2.diff >+ cd ${WORKDIR}/gcc-${BASE_GCC} >+ epatch ${S}/sources/gcc/gcc-${BASE_GCC}-tigcc-2.diff > > # make build directories for binutils and gcc > mkdir ${WORKDIR}/build > mkdir ${WORKDIR}/build/binutils > mkdir ${WORKDIR}/build/gcc >+} > >+src_compile() { > # build binutils > cd ${WORKDIR}/build/binutils >- CFLAGS="$CFLAGS" ${WORKDIR}/binutils-2.14/configure \ >+ CFLAGS="$CFLAGS" ${WORKDIR}/binutils-${BASE_BINUTILS}/configure \ > --disable-serial-configure --target=m68k-coff --disable-shared \ >- --enable-static --disable-multilib --disable-nls >- emake >+ --enable-static --disable-multilib --disable-nls \ >+ || die >+ emake || die > > # build gcc > cd ${WORKDIR}/build/gcc >- CFLAGS="$CFLAGS" ${WORKDIR}/gcc-3.3.3/configure --target=m68k-coff \ >+ >+ # --with-headers=${S}/tigcclib/include/c \ >+ CFLAGS="$CFLAGS" ${WORKDIR}/gcc-${BASE_GCC}/configure --target=m68k-coff \ >+ --with-gnu-as --with-as=${WORKDIR}/build/binutils/gas/as-new --with-gnu-ld \ > --disable-nls --disable-multilib --disable-shared --enable-static \ >- --disable-threads >- emake >+ --disable-threads \ >+ || die >+ emake || die > > # build a68k assembler > cd ${S}/sources/a68k/src >- emake -e >+ emake -e || die > > # build ld-tigcc linker > cd ${S}/sources/ld-tigcc >- emake -e >+ emake -e || die > > # build tigcc front-end > cd ${S}/sources/tigcc/src >- emake -e >+ emake -e || die > > # build tprbuilder (TIGCC project builder) > cd ${S}/sources/tprbuilder/src >- emake -e >+ emake -e || die > > # build patcher (object file patcher) > cd ${S}/sources/patcher/src >- emake -e >+ emake -e || die > > # build parser > cd ${S}/sources/parser/src >- emake -e >+ emake -e || die > > # build tict tool suite > cd ${S}/tt >- CFLAGS="$CFLAGS" ./makelinux.sh >+ CFLAGS="$CFLAGS" ./makelinux.sh || die > } > > src_install() { >@@ -113,12 +122,14 @@ > > # a cross-compiling gcc with hard-coded names has been built. > # therefore, we must place it into its own subdirectory >- into /usr/local/tigcc >+ #into /usr/local/tigcc > > # install gas >+ into /usr/ti-linux-gnu/bin > cd ${WORKDIR}/build/binutils > newbin gas/as-new as > >+ into /usr/ti-linux-gnu/tigcc-bin/${GCC_VER} > # install gcc > cd ${WORKDIR}/build/gcc > dobin gcc/cc1 >@@ -154,17 +165,23 @@ > dobin linuxbin/* > > # install header files >- cp -r ${S}/tigcclib/include ${D}/usr/local/tigcc >- dosym /usr/local/tigcc/include/asm/os.h /usr/local/tigcc/include/asm/OS.h >- >+ cp -r ${S}/tigcclib/include ${D}/usr/include/tigcc >+ dosym /usr/include/tigcc/asm/os.h /usr/include/tigcc/asm/OS.h >+ >+ into /usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER} > # install library > cd ${S}/tigcclib > dolib lib/* >- >+ >+ dodir /usr/share/tigcc > # copy example programs >- cp -r ${S}/examples ${D}/usr/local/tigcc >+ cp -r ${S}/examples ${D}/usr/share/tigcc > > # create TIGCC env variable >- dodir /etc/env.d >- echo -e "TIGCC=\"/usr/local/tigcc\"\nPATH=\"/usr/local/tigcc/bin\"" > ${D}/etc/env.d/50tigcc >+ dodir /etc/env.d/gcc >+ echo -e "TIGCC=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}\"" >> ${D}/etc/env.d/gcc/ti-linux-gnu-${GCC_VER} >+ echo -e "PATH=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}:/usr/ti-linux-gnu/bin\"" >> ${D}/etc/env.d/gcc/ti-linux-gnu-${GCC_VER} >+ echo -e "ROOTPATH=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}:/usr/ti-linux-gnu/bin\"" >> ${D}/etc/env.d/gcc/ti-linux-gnu-${GCC_VER} >+ echo -e "LDPATH=\"/usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER}\"" >> ${D}/etc/env.d/gcc/ti-linux-gnu-${GCC_VER} >+ echo -e "CC=\"tigcc\"" >> ${D}/etc/env.d/gcc/ti-linux-gnu-${GCC_VER} > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51162
:
31497
|
31515
|
31546
|
31634
|
31650
|
32042
|
32043
|
32052
|
32486
|
32487
|
32881
|
33188
|
38360
|
40267
|
40284