diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2012-02-16 14:47:35 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2012-02-16 14:47:35 +0000 |
commit | 4987f7533d7ecdbb6d6ce55fd9a8b3cf75cf1e15 (patch) | |
tree | 9287b71b1d3455dae62e39fae9061d11772eb168 /sys-devel/clang | |
parent | new ebuild (diff) | |
download | gentoo-2-4987f7533d7ecdbb6d6ce55fd9a8b3cf75cf1e15.tar.gz gentoo-2-4987f7533d7ecdbb6d6ce55fd9a8b3cf75cf1e15.tar.bz2 gentoo-2-4987f7533d7ecdbb6d6ce55fd9a8b3cf75cf1e15.zip |
clang now autodetects C++ header paths, dropping the system-cxx-headers system and fixing bug #402365
(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel/clang')
-rw-r--r-- | sys-devel/clang/ChangeLog | 6 | ||||
-rw-r--r-- | sys-devel/clang/clang-9999.ebuild | 38 |
2 files changed, 13 insertions, 31 deletions
diff --git a/sys-devel/clang/ChangeLog b/sys-devel/clang/ChangeLog index 45f7da09cf53..22a2878dde46 100644 --- a/sys-devel/clang/ChangeLog +++ b/sys-devel/clang/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-devel/clang # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/ChangeLog,v 1.53 2012/02/16 11:35:09 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/ChangeLog,v 1.54 2012/02/16 14:47:35 voyageur Exp $ + + 16 Feb 2012; Bernard Cafarelli <voyageur@gentoo.org> clang-9999.ebuild: + clang now autodetects C++ header paths, dropping the system-cxx-headers + system and fixing bug #402365 *clang-3.0-r3 (16 Feb 2012) diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index 297d9cb8e5af..5fe6b1faedd3 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-9999.ebuild,v 1.23 2012/02/03 14:29:44 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-9999.ebuild,v 1.24 2012/02/16 14:47:35 voyageur Exp $ -EAPI=3 +EAPI=4 RESTRICT_PYTHON_ABIS="3.*" SUPPORT_PYTHON_ABIS="1" @@ -17,7 +17,7 @@ ESVN_REPO_URI="http://llvm.org/svn/llvm-project/cfe/trunk" LICENSE="UoI-NCSA" SLOT="0" KEYWORDS="" -IUSE="debug multitarget +static-analyzer +system-cxx-headers test" +IUSE="debug multitarget +static-analyzer test" DEPEND="static-analyzer? ( dev-lang/perl )" RDEPEND="~sys-devel/llvm-${PV}[multitarget=]" @@ -32,14 +32,12 @@ src_unpack() { src_prepare() { # Same as llvm doc patches -# epatch "${FILESDIR}"/${PN}-2.7-fixdoc.patch + epatch "${FILESDIR}"/${PN}-2.7-fixdoc.patch # multilib-strict sed -e "/PROJ_headers/s#lib/clang#$(get_libdir)/clang#" \ -i tools/clang/lib/Headers/Makefile \ || die "clang Makefile failed" - # Fix cxx_include_root path for Gentoo - epatch "${FILESDIR}"/${PN}-3.1-fix_cxx_include_root.patch # fix the static analyzer for in-tree install sed -e 's/import ScanView/from clang \0/' \ -i tools/clang/tools/scan-view/scan-view \ @@ -94,27 +92,16 @@ src_configure() { CONF_FLAGS="${CONF_FLAGS} --enable-pic" fi - if use system-cxx-headers; then - # Try to get current gcc headers path - local CXX_PATH=$(gcc-config -L| cut -d: -f1) - CONF_FLAGS="${CONF_FLAGS} --with-c-include-dirs=/usr/include:${CXX_PATH}/include" - CONF_FLAGS="${CONF_FLAGS} --with-cxx-include-root=${CXX_PATH}/include/g++-v4" - CONF_FLAGS="${CONF_FLAGS} --with-cxx-include-arch=$CHOST" - if has_multilib_profile; then - CONF_FLAGS="${CONF_FLAGS} --with-cxx-include-32bit-dir=32" - fi - fi - - econf ${CONF_FLAGS} || die "econf failed" + econf ${CONF_FLAGS} } src_compile() { - emake VERBOSE=1 KEEP_SYMBOLS=1 REQUIRES_RTTI=1 clang-only || die "emake failed" + emake VERBOSE=1 KEEP_SYMBOLS=1 REQUIRES_RTTI=1 clang-only } src_test() { cd "${S}"/test || die "cd failed" - emake site.exp || die "updating llvm site.exp failed" + emake site.exp cd "${S}"/tools/clang || die "cd clang failed" @@ -127,7 +114,7 @@ src_test() { src_install() { cd "${S}"/tools/clang || die "cd clang failed" - emake KEEP_SYMBOLS=1 DESTDIR="${D}" install || die "install failed" + emake KEEP_SYMBOLS=1 DESTDIR="${D}" install if use static-analyzer ; then dobin tools/scan-build/ccc-analyzer @@ -174,15 +161,6 @@ src_install() { pkg_postinst() { python_mod_optimize clang - if use system-cxx-headers; then - elog "C++ headers search path is hardcoded to the active gcc profile one" - elog "If you change the active gcc profile, or update gcc to a new version," - elog "you will have to remerge this package to update the search path" - else - elog "If clang++ fails to find C++ headers on your system," - elog "you can remerge clang with USE=system-cxx-headers to use C++ headers" - elog "from the active gcc profile" - fi } pkg_postrm() { |