commit:     9ca3a8be770285335ab3e2ef9b253a28f9909d41
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 27 01:21:02 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul  3 07:17:44 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ca3a8be

sys-devel/llvm: fix git-format-clang shebang, #562688

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-r2.ebuild => llvm-3.7.1-r3.ebuild} | 7 +++++--
 sys-devel/llvm/{llvm-3.8.0-r2.ebuild => llvm-3.8.0-r3.ebuild} | 7 +++++--
 sys-devel/llvm/llvm-9999.ebuild                               | 6 ++++--
 3 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/sys-devel/llvm/llvm-3.7.1-r2.ebuild 
b/sys-devel/llvm/llvm-3.7.1-r3.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 65f2fc7..a76fae7 100644
--- a/sys-devel/llvm/llvm-3.7.1-r2.ebuild
+++ b/sys-devel/llvm/llvm-3.7.1-r3.ebuild
@@ -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)
 }

diff --git a/sys-devel/llvm/llvm-3.8.0-r2.ebuild 
b/sys-devel/llvm/llvm-3.8.0-r3.ebuild
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 2a11830..bc84e8f 100644
--- a/sys-devel/llvm/llvm-3.8.0-r2.ebuild
+++ b/sys-devel/llvm/llvm-3.8.0-r3.ebuild
@@ -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)
 }

diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
index 8d290ba..148ed8a 100644
--- a/sys-devel/llvm/llvm-9999.ebuild
+++ b/sys-devel/llvm/llvm-9999.ebuild
@@ -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)
 }

Reply via email to