Update rc ebuild and cxx_include_root patch, some more ebuild cleanups
authorBernard Cafarelli <voyageur@gentoo.org>
Wed, 9 Nov 2011 22:55:22 +0000 (22:55 +0000)
committerBernard Cafarelli <voyageur@gentoo.org>
Wed, 9 Nov 2011 22:55:22 +0000 (22:55 +0000)
Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64

sys-devel/clang/ChangeLog
sys-devel/clang/clang-3.0_rc3.ebuild [moved from sys-devel/clang/clang-3.0_rc1.ebuild with 90% similarity]
sys-devel/clang/clang-9999.ebuild
sys-devel/clang/files/clang-3.0-fix_cxx_include_root.patch

index 1f64a43ae5917dc4ce20b6a486390712f7be126b..05b1a38f9697c60729c04974bd8aa378e772d28e 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for sys-devel/clang
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/ChangeLog,v 1.44 2011/11/09 15:11:48 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/ChangeLog,v 1.45 2011/11/09 22:55:22 voyageur Exp $
+
+*clang-3.0_rc3 (09 Nov 2011)
+
+  09 Nov 2011; Bernard Cafarelli <voyageur@gentoo.org> -clang-3.0_rc1.ebuild,
+  +clang-3.0_rc3.ebuild, files/clang-3.0-fix_cxx_include_root.patch,
+  clang-9999.ebuild:
+  Update rc ebuild and cxx_include_root patch, some more ebuild cleanups
 
 *clang-3.0_rc1 (09 Nov 2011)
 
similarity index 90%
rename from sys-devel/clang/clang-3.0_rc1.ebuild
rename to sys-devel/clang/clang-3.0_rc3.ebuild
index 0fee9d7f749aa7608fe1c1d12be8e78ae983515e..157b91f2d89f3975644f193be433dc2cdbdc5ea6 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-3.0_rc1.ebuild,v 1.1 2011/11/09 15:11:48 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-3.0_rc3.ebuild,v 1.1 2011/11/09 22:55:22 voyageur Exp $
 
 EAPI=3
 
@@ -12,25 +12,22 @@ inherit eutils multilib python
 DESCRIPTION="C language family frontend for LLVM"
 HOMEPAGE="http://clang.llvm.org/"
 # Fetching LLVM as well: see http://llvm.org/bugs/show_bug.cgi?id=4840
-SRC_URI="http://llvm.org/pre-releases/${PV/_rc*}/${PV/3.0_}/sources/llvm-${PV/_}.src.tar.gz
-       http://llvm.org/pre-releases/${PV/_rc*}/${PV/3.0_}/sources/${P/_}.src.tar.gz"
+SRC_URI="http://llvm.org/pre-releases/${PV/_rc*}/${PV/3.0_}/llvm-${PV/_}.src.tar.gz
+       http://llvm.org/pre-releases/${PV/_rc*}/${PV/3.0_}/${P/_}.src.tar.gz"
 
 LICENSE="UoI-NCSA"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
 IUSE="debug multitarget +static-analyzer +system-cxx-headers test"
 
-# Note: for LTO support, clang will depend on binutils with gold plugins, and LLVM built after that - http://llvm.org/docs/GoldPlugin.html
 DEPEND="static-analyzer? ( dev-lang/perl )"
 RDEPEND="~sys-devel/llvm-${PV}[multitarget=]"
 
-S="${WORKDIR}/llvm-${PV/_}"
+S=${WORKDIR}/llvm-${PV/_}.src
 
 src_prepare() {
-       # Leftover in rc1, remove for real release
        rm -f "${S}"/tools/clang
-
-       mv "${WORKDIR}"/clang-${PV/_} "${S}"/tools/clang || die "clang source directory not found"
+       mv "${WORKDIR}"/clang-${PV/_}.src "${S}"/tools/clang || die "clang source directory move failed"
 
        # Same as llvm doc patches
        epatch "${FILESDIR}"/${PN}-2.7-fixdoc.patch
index 2d0a787fb792e25ed3dfea3ce2a764f650346058..54834c843b83a8f32995af215aec3aa6910f4d6a 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 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.18 2011/11/09 15:11:48 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-9999.ebuild,v 1.19 2011/11/09 22:55:22 voyageur Exp $
 
 EAPI=3
 
@@ -19,7 +19,6 @@ SLOT="0"
 KEYWORDS=""
 IUSE="debug multitarget +static-analyzer +system-cxx-headers test"
 
-# Note: for LTO support, clang will depend on binutils with gold plugins, and LLVM built after that - http://llvm.org/docs/GoldPlugin.html
 DEPEND="static-analyzer? ( dev-lang/perl )"
 RDEPEND="~sys-devel/llvm-${PV}[multitarget=]"
 
index e0baab13affe76306fc24fd7a9047bbe4a4bae1a..e1beff3f1615c875430e6bc1f6a19b387100be57 100644 (file)
@@ -1,25 +1,21 @@
 Bug #387309
 
---- llvm/tools/clang/lib/Driver/ToolChains.cpp.orig    2011-10-16 19:27:45.505711873 +0200
-+++ llvm/tools/clang/lib/Driver/ToolChains.cpp 2011-10-16 19:30:22.810705290 +0200
-@@ -1563,15 +1563,16 @@
-     // and this function would return
-     // CXX_GCC_ROOT/lib/gcc/CXX_INCLUDE_ARCH/CXX_GCC_VER
-     if (CxxIncludeRoot != "") {
--      // This is of the form /foo/bar/include/c++/4.5.2/
-+      // This is of the form /usr/lib/gcc/<ARCH>/<Version>/include/g++-v4
-       if (CxxIncludeRoot.back() == '/')
-         llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the /
-+      llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the g++-v4
-+      llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the include
-       StringRef Version = llvm::sys::path::filename(CxxIncludeRoot);
-       llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the version
--      llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the c++
--      llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the include
-+      llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the ARCH
-       GccInstallPath = CxxIncludeRoot.str();
--      GccInstallPath.append("/lib/gcc/");
-+      GccInstallPath.append("/");
-       GccInstallPath.append(CXX_INCLUDE_ARCH);
-       GccInstallPath.append("/");
-       GccInstallPath.append(Version);
+--- llvm/tools/clang/lib/Driver/ToolChains.cpp.orig    2011-11-09 23:10:04.000000000 +0100
++++ llvm/tools/clang/lib/Driver/ToolChains.cpp 2011-11-09 23:11:04.000000000 +0100
+@@ -1586,12 +1586,13 @@
+     // This is of the form /foo/bar/include/c++/4.5.2/
+     if (CxxIncludeRoot.back() == '/')
+       llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the /
++    llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the g++-v4
++    llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the include
+     StringRef Version = llvm::sys::path::filename(CxxIncludeRoot);
+     llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the version
+-    llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the c++
+-    llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the include
++    llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the ARCH
+     GccInstallPath = CxxIncludeRoot.str();
+-    GccInstallPath.append("/lib/gcc/");
++    GccInstallPath.append("/");
+     GccInstallPath.append(CXX_INCLUDE_ARCH);
+     GccInstallPath.append("/");
+     GccInstallPath.append(Version);