/[gentoo-x86]/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild
Gentoo

Diff of /sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild

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

Revision 1.2 Revision 1.3
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
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-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild,v 1.2 2011/11/05 16:57:59 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r1.ebuild,v 1.3 2012/07/23 16:01:24 vapier Exp $
4 4
5inherit eutils flag-o-matic libtool multilib 5inherit eutils flag-o-matic libtool multilib
6 6
7transform_known_flags() { 7transform_known_flags() {
8 declare setting 8 declare setting
102 strip-unsupported-flags 102 strip-unsupported-flags
103 103
104 strip-flags 104 strip-flags
105} 105}
106 106
107PATCH_VER="1.7" 107PATCH_VER="1.8"
108 108
109DESCRIPTION="Compatibility package for running binaries linked against a pre gcc 3.4 libstdc++" 109DESCRIPTION="Compatibility package for running binaries linked against a pre gcc 3.4 libstdc++"
110HOMEPAGE="http://gcc.gnu.org/libstdc++/" 110HOMEPAGE="http://gcc.gnu.org/libstdc++/"
111SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/gcc-${PV}/gcc-${PV}.tar.bz2 111SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/gcc-${PV}/gcc-${PV}.tar.bz2
112 mirror://gentoo/gcc-${PV}-patches-${PATCH_VER}.tar.bz2" 112 mirror://gentoo/gcc-${PV}-patches-${PATCH_VER}.tar.bz2"
124 EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch 124 EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
125 elibtoolize --portage --shallow 125 elibtoolize --portage --shallow
126 ./contrib/gcc_update --touch 126 ./contrib/gcc_update --touch
127 mkdir -p "${WORKDIR}"/build 127 mkdir -p "${WORKDIR}"/build
128 128
129 if use multilib ; then 129 if use multilib && [[ ${SYMLINK_LIB} == "yes" ]] ; then
130 # ugh, this shit has to match the way we've hacked gcc else 130 # ugh, this shit has to match the way we've hacked gcc else
131 # the build falls apart #259215 131 # the build falls apart #259215
132 sed -i \ 132 sed -i \
133 -e 's:\(MULTILIB_OSDIRNAMES = \).*:\1../lib64 ../lib32:' \ 133 -e 's:\(MULTILIB_OSDIRNAMES = \).*:\1../lib64 ../lib32:' \
134 "${S}"/gcc/config/i386/t-linux64 \ 134 "${S}"/gcc/config/i386/t-linux64 \
137} 137}
138 138
139src_compile() { 139src_compile() {
140 cd "${WORKDIR}"/build 140 cd "${WORKDIR}"/build
141 do_filter_flags 141 do_filter_flags
142 ECONF_SOURCE=${S} 142 ECONF_SOURCE=${S} \
143 econf \ 143 econf \
144 --enable-shared \ 144 --enable-shared \
145 --with-system-zlib \ 145 --with-system-zlib \
146 --enable-languages=c++ \ 146 --enable-languages=c++ \
147 --enable-threads=posix \ 147 --enable-threads=posix \
149 --disable-checking \ 149 --disable-checking \
150 --enable-cstdio=stdio \ 150 --enable-cstdio=stdio \
151 --enable-__cxa_atexit \ 151 --enable-__cxa_atexit \
152 $(use_enable multilib) \ 152 $(use_enable multilib) \
153 $(use_enable nls) \ 153 $(use_enable nls) \
154 $(use_with !nls included-gettext) \ 154 $(use_with !nls included-gettext)
155 || die
156 155
157 touch "${S}"/gcc/c-gperf.h 156 touch "${S}"/gcc/c-gperf.h
158 157
159 emake all-target-libstdc++-v3 || die 158 emake all-target-libstdc++-v3 || die
160} 159}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20