Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 475294 | Differences between
and this patch

Collapse All | Expand All

(-)a/libcxx-9999.ebuild (-1 / +26 lines)
Lines 28-40 fi Link Here
28
IUSE="elibc_glibc +libcxxrt static-libs test"
28
IUSE="elibc_glibc +libcxxrt static-libs test"
29
29
30
RDEPEND="libcxxrt? ( >=sys-libs/libcxxrt-0.0_p20130530[static-libs?,${MULTILIB_USEDEP}] )
30
RDEPEND="libcxxrt? ( >=sys-libs/libcxxrt-0.0_p20130530[static-libs?,${MULTILIB_USEDEP}] )
31
	!libcxxrt? ( sys-devel/gcc[cxx] )"
31
	!libcxxrt? ( >=sys-devel/gcc-4.7.0[cxx] )"
32
DEPEND="${RDEPEND}
32
DEPEND="${RDEPEND}
33
	test? ( sys-devel/clang )
33
	test? ( sys-devel/clang )
34
	|| ( sys-devel/clang >=sys-devel/gcc-4.7.0 )
34
	app-arch/xz-utils"
35
	app-arch/xz-utils"
35
36
36
DOCS=( CREDITS.TXT )
37
DOCS=( CREDITS.TXT )
37
38
39
pkg_setup() {
40
	if ! use libcxxrt && [[ $(tc-getCC) != *gcc* ]] ; then
41
		eerror "Please set gcc, g++ to CC, CXX."
42
		eerror
43
		die
44
	fi
45
	if [[ $(gcc-version) < 4.7 ]] && [[ $(tc-getCXX) != *clang++* ]] ; then
46
		if use libcxxrt && has_version sys-devel/clang ; then
47
			ewarn "Because version of gcc is old, force set CC=clang, CXX=clang++."
48
			ewarn
49
			ewarn "If you want to compile it using gcc, please install gcc-4.7 or later."
50
			ewarn "Don't forget to switch to latest gcc using gcc-config."
51
52
			export CC=clang
53
			export CXX=clang++
54
		else
55
			eerror "Please use gcc-config to switch to gcc-4.7 or later version."
56
			eerror "This package requires gcc-4.7 or later version."
57
			eerror
58
			die
59
		fi
60
	fi
61
}
62
38
src_prepare() {
63
src_prepare() {
39
	cp -f "${FILESDIR}/Makefile" lib/ || die
64
	cp -f "${FILESDIR}/Makefile" lib/ || die
40
	multilib_copy_sources
65
	multilib_copy_sources

Return to bug 475294