Files
@ 5aec9d013452
Branch filter:
Location: ohnobinki_overlay/sys-devel/gcc-config/gcc-config-1.4.1-r1.ebuild - annotation
5aec9d013452
1.7 KiB
application/vnd.gentoo.ebuild
media-plugins/live: Match live ebuild up more closely with the gentoo-x86-cvs version. Drop live-2009.06.02. Fix building live without live being previously installed (was trying to link against previously-installed live libraries).
(Portage version: 2.2.0_alpha27-r1/hg/Linux x86_64, signed Manifest commit with key 6BA81050)
(Portage version: 2.2.0_alpha27-r1/hg/Linux x86_64, signed Manifest commit with key 6BA81050)
3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb 3a1c3b8c67fb | # Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.4.1.ebuild,v 1.9 2009/05/20 17:43:36 armin76 Exp $
inherit eutils flag-o-matic toolchain-funcs multilib
# Version of .c wrapper to use
W_VER="1.5.1"
DESCRIPTION="Utility to change the gcc compiler being used"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
IUSE=""
RDEPEND="!app-admin/eselect-compiler"
S=${WORKDIR}
src_unpack() {
cp "${FILESDIR}"/wrapper-${W_VER}.c "${S}"/wrapper.c || die
epatch "${FILESDIR}"/wrapper-${W_VER}-no-ABI.patch
}
src_compile() {
strip-flags
emake CC="$(tc-getCC)" wrapper || die "compile wrapper"
}
src_install() {
newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config"
sed -i \
-e "s:@GENTOO_LIBDIR@:$(get_libdir):g" \
"${D}"/usr/bin/${PN}
exeinto /usr/$(get_libdir)/misc
newexe wrapper gcc-config || die "install wrapper"
}
pkg_postinst() {
# Scrub eselect-compiler remains
if [[ -e ${ROOT}/etc/env.d/05compiler ]] ; then
rm -f "${ROOT}"/etc/env.d/05compiler
fi
# Make sure old versions dont exist #79062
rm -f "${ROOT}"/usr/sbin/gcc-config
# Do we have a valid multi ver setup ?
if gcc-config --get-current-profile &>/dev/null ; then
# We not longer use the /usr/include/g++-v3 hacks, as
# it is not needed ...
[[ -L ${ROOT}/usr/include/g++ ]] && rm -f "${ROOT}"/usr/include/g++
[[ -L ${ROOT}/usr/include/g++-v3 ]] && rm -f "${ROOT}"/usr/include/g++-v3
gcc-config $(/usr/bin/gcc-config --get-current-profile)
fi
}
|