Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 52156 Details for
Bug 48136
gdc-013 (New Package) phobos-0.8.2 (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dev-lang/gdc/gdc-0.10.ebuild
gdc-0.10.ebuild (text/plain), 3.47 KB, created by
Anders F Björklund
on 2005-02-25 14:35:18 UTC
(
hide
)
Description:
dev-lang/gdc/gdc-0.10.ebuild
Filename:
MIME Type:
Creator:
Anders F Björklund
Created:
2005-02-25 14:35:18 UTC
Size:
3.47 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: $ > >inherit eutils flag-o-matic toolchain-funcs > >IUSE="nls" > >#need to check what gcc version we are running >GCC_PV=`gcc-version` >GCC_PVS=`gcc-major-version`.`gcc-minor-version`.`gcc-micro-version` >GCC_PVF=`gcc-fullversion` >GCC_LIBS="`gcc-config --get-lib-path`" > ># GCC_LIBS must be saved before we inherit toolchain ># toolchain makes gcc-config not work ># toolchain is used to patch the version >inherit toolchain > >DESCRIPTION="D GCC Frontend" >SRC_URI="http://home.earthlink.net/~dvdfrdmn/d/gdc-${PV}.tar.bz2 > ftp://gcc.gnu.org/pub/gcc/releases/gcc-${GCC_PVS}/gcc-${GCC_PVS}.tar.bz2" > >HOMEPAGE="http://home.earthlink.net/~dvdfrdmn/d/" > >SLOT="0" >KEYWORDS="~x86" >LICENSE="GPL-2" >S="${WORKDIR}/gcc-${GCC_PVS}" > >DEPEND="virtual/glibc > >=sys-devel/gcc-3.3.2" >RDEPEND="virtual/glibc > >=sys-devel/gcc-3.3.2 > !dev-lang/dmd" > >src_unpack() { > unpack "gcc-${GCC_PVS}.tar.bz2" > > cd "${S}/gcc" > gcc_version_patch "${GCC_PVF}" > > unpack "gdc-${PV}.tar.bz2" > > if [ "${GCC_PV}" = "3.4" ] > then > patch -p1 < d/patch-gcc-3.4.x || die "GCC 3.4.x patch failed" > > elif [ "${GCC_PV}" = "3.3" ] > then > patch -p1 < d/patch-gcc-3.3.x || die "GCC 3.3.x patch failed" > > else > die "GCC ${GCC_PV} not supported by GDC" > fi >} > >src_compile() { > einfo "Configuring GCC for GDC inclusion..." > > strip-flags > > # In general gcc does not like optimization, and add -O2 where > # it is safe. This is especially true for gcc 3.3 + 3.4 > replace-flags -O? -O2 > > # -mcpu is deprecated on these archs, and possibly others > if use amd64 || use x86 ; then > setting="`get-flag mcpu`" > [ ! -z "${setting}" ] && \ > replace-flags -mcpu="${setting}" -mtune="${setting}" && \ > ewarn "-mcpu is deprecated on your arch\a\a\a" && \ > epause 5 > fi > > strip-unsupported-flags > > mkdir -p ${WORKDIR}/gdc-build > cd ${WORKDIR}/gdc-build > ${S}/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-languages=d > > einfo "Building GDC..." > gmake > > # install temporary GDC, for building Phobos > mkdir -p ${WORKDIR}/gdc-temp > gmake -s DESTDIR="${WORKDIR}/gdc-temp" install > OLDPATH="$PATH" > export PATH="${WORKDIR}/gdc-temp/usr/bin:$PATH" > > einfo "Configuring Phobos runtime library... (release)" > > unset CC > unset CXX > unset CFLAGS > unset CXXFLAGS > unset DMD > unset DFLAGS > > mkdir -p ${WORKDIR}/phobos-build > cd ${WORKDIR}/phobos-build > ${S}/gcc/d/phobos/configure --prefix=/usr > > einfo "Building Phobos... (release)" > gmake >} > >src_test() { > > einfo "Configuring Phobos runtime library... (unittest)" > > unset CC > unset CXX > unset CFLAGS > unset CXXFLAGS > unset DMD > unset DFLAGS > > mkdir -p ${WORKDIR}/phobos-test > cd ${WORKDIR}/phobos-test > ${S}/gcc/d/phobos/configure --prefix=/usr > > einfo "Building Phobos... (unittest)" > gmake DFLAGS="-funittest -nostdinc" libphobos.a unittest > > ./unittest || die "Unit test failed" >} > >src_install() { > cd ${WORKDIR} > > dobin gdc-build/gcc/gdc > > # rename to dmd but move to ${WORKDIR} since there already is a directory named "dmd" in old location > mv gcc-${GCC_PVS}/gcc/d/dmd-script ${WORKDIR}/dmd > dobin ${WORKDIR}/dmd > mv ${WORKDIR}/dmd gcc-${GCC_PVS}/gcc/d/dmd-script > > dodir "${GCC_LIBS}" > cp gdc-build/gcc/cc1d ${D}"${GCC_LIBS}" > > dolib.a phobos-build/libphobos.a > dodir /usr/include/d > > cp phobos-build/phobos-ver-syms ${D}/usr/include/d/ > cp phobos-build/libphobos.spec ${D}"${GCC_LIBS}" > cd ${S}/gcc/d/phobos > (find -name '*.d' | grep -v internal | xargs tar c) | (cd ${D}/usr/include/d; tar xo) > >} >
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 Raw
Actions:
View
Attachments on
bug 48136
:
29497
|
29498
|
30789
|
30888
|
30912
|
30913
|
30914
|
35313
|
35314
|
43022
|
43023
|
47240
|
47241
|
47242
|
48200
|
48201
|
51936
|
51962
|
51963
|
52156
|
52174
|
54128
|
57865
|
61300
|
75655
|
76443
|
82069
|
88411
|
101166
|
109352
|
124766