sys-devel/llvm: fix git-format-clang shebang, #562688
authorAustin English <wizardedit@gentoo.org>
Mon, 27 Jun 2016 01:21:02 +0000 (20:21 -0500)
committerMichał Górny <mgorny@gentoo.org>
Sun, 3 Jul 2016 07:17:44 +0000 (09:17 +0200)
Bug: https://bugs.gentoo.org/562688
Package-Manager: portage-2.2.28
Pull-Request: https://github.com/gentoo/gentoo/pull/1766

sys-devel/llvm/llvm-3.7.1-r3.ebuild [moved from sys-devel/llvm/llvm-3.7.1-r2.ebuild with 99% similarity]
sys-devel/llvm/llvm-3.8.0-r3.ebuild [moved from sys-devel/llvm/llvm-3.8.0-r2.ebuild with 99% similarity]
sys-devel/llvm/llvm-9999.ebuild

similarity index 99%
rename from sys-devel/llvm/llvm-3.7.1-r2.ebuild
rename to sys-devel/llvm/llvm-3.7.1-r3.ebuild
index 65f2fc74005c38d5dbdb520e10a03fee79493b9f..a76fae770b75179c59122f2d87860fbb19b64f6b 100644 (file)
@@ -136,6 +136,8 @@ src_unpack() {
 }
 
 src_prepare() {
+       python_setup
+
        # Make ocaml warnings non-fatal, bug #537308
        sed -e "/RUN/s/-warn-error A//" -i test/Bindings/OCaml/*ml  || die
        # Fix libdir for ocaml bindings install, bug #559134
@@ -204,6 +206,9 @@ src_prepare() {
                # https://llvm.org/bugs/show_bug.cgi?id=23793
                eapply "${FILESDIR}"/cmake/clang-0002-cmake-Make-CLANG_LIBDIR_SUFFIX-overridable.patch
 
+               # Fix git-clang-format shebang, bug #562688
+               python_fix_shebang tools/clang/tools/clang-format/git-clang-format
+
                pushd projects/compiler-rt >/dev/null || die
 
                # Fix msan with newer kernels, compiler-rt part, #569894
@@ -236,8 +241,6 @@ src_prepare() {
        # User patches
        eapply_user
 
-       python_setup
-
        # Native libdir is used to hold LLVMgold.so
        NATIVE_LIBDIR=$(get_libdir)
 }
similarity index 99%
rename from sys-devel/llvm/llvm-3.8.0-r2.ebuild
rename to sys-devel/llvm/llvm-3.8.0-r3.ebuild
index 2a118302554304b70e7904a3528bb706f3aeca03..bc84e8fc5637e8d8394e3ffff57ba3cefd8fee07 100644 (file)
@@ -137,6 +137,8 @@ src_unpack() {
 }
 
 src_prepare() {
+       python_setup
+
        # Make ocaml warnings non-fatal, bug #537308
        sed -e "/RUN/s/-warn-error A//" -i test/Bindings/OCaml/*ml  || die
        # Fix libdir for ocaml bindings install, bug #559134
@@ -201,6 +203,9 @@ src_prepare() {
                # https://llvm.org/bugs/show_bug.cgi?id=23793
                eapply "${FILESDIR}"/cmake/clang-0002-cmake-Make-CLANG_LIBDIR_SUFFIX-overridable.patch
 
+               # Fix git-clang-format shebang, bug #562688
+               python_fix_shebang tools/clang/tools/clang-format/git-clang-format
+
                # Fix 'stdarg.h' file not found on Gentoo/FreeBSD, bug #578064
                # https://llvm.org/bugs/show_bug.cgi?id=26651
                eapply "${FILESDIR}"/clang-3.8-compiler-rt-fbsd.patch
@@ -227,8 +232,6 @@ src_prepare() {
        # User patches
        eapply_user
 
-       python_setup
-
        # Native libdir is used to hold LLVMgold.so
        NATIVE_LIBDIR=$(get_libdir)
 }
index 8d290ba2353f3d3f5bbd6b83d9813b312273404e..148ed8a4286b8870f88fcb8e9a12c6a0a30266bc 100644 (file)
@@ -107,6 +107,8 @@ pkg_pretend() {
 
 pkg_setup() {
        pkg_pretend
+
+       python-single-r1_pkg_setup
 }
 
 src_unpack() {
@@ -140,6 +142,8 @@ src_unpack() {
 }
 
 src_prepare() {
+       python_setup
+
        # Make ocaml warnings non-fatal, bug #537308
        sed -e "/RUN/s/-warn-error A//" -i test/Bindings/OCaml/*ml  || die
        # Fix libdir for ocaml bindings install, bug #559134
@@ -203,8 +207,6 @@ src_prepare() {
        # User patches
        eapply_user
 
-       python_setup
-
        # Native libdir is used to hold LLVMgold.so
        NATIVE_LIBDIR=$(get_libdir)
 }