1 |
commit: 1c4b5030fc575bc2a7ed66b59e42c6dce9599543 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 30 21:24:49 2017 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 30 21:25:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=1c4b5030 |
7 |
|
8 |
dev-python/shiboken: fix detection of clang builtin includes |
9 |
|
10 |
Bug: https://bugs.gentoo.org/624682 |
11 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
12 |
|
13 |
dev-python/shiboken/shiboken-9999.ebuild | 8 ++++++-- |
14 |
1 file changed, 6 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/shiboken/shiboken-9999.ebuild b/dev-python/shiboken/shiboken-9999.ebuild |
17 |
index bc1ee479..0192869d 100644 |
18 |
--- a/dev-python/shiboken/shiboken-9999.ebuild |
19 |
+++ b/dev-python/shiboken/shiboken-9999.ebuild |
20 |
@@ -50,8 +50,7 @@ llvm_check_deps() { |
21 |
src_prepare() { |
22 |
#FIXME: File an upstream issue requesting a sane way to disable NumPy support. |
23 |
if ! use numpy; then |
24 |
- sed -i -e '/print(os\.path\.realpath(numpy))/d' \ |
25 |
- libshiboken/CMakeLists.txt || die |
26 |
+ sed -i -e '/print(os\.path\.realpath(numpy))/d' libshiboken/CMakeLists.txt || die |
27 |
fi |
28 |
|
29 |
if use prefix; then |
30 |
@@ -59,6 +58,10 @@ src_prepare() { |
31 |
sed -i -e '1iinclude(rpath.cmake)' CMakeLists.txt || die |
32 |
fi |
33 |
|
34 |
+ # CMakeLists.txt assumes clang builtin includes are installed |
35 |
+ # under LLVM_INSTALL_DIR. They are not on Gentoo. See bug 624682. |
36 |
+ sed -i -e "/set(CLANG_BUILTIN_INCLUDES_DIR_PREFIX /s:\${CLANG_DIR}:${EPREFIX}/usr:" CMakeLists.txt || die |
37 |
+ |
38 |
cmake-utils_src_prepare |
39 |
} |
40 |
|
41 |
@@ -67,6 +70,7 @@ src_configure() { |
42 |
local mycmakeargs=( |
43 |
-DBUILD_TESTS=$(usex test) |
44 |
-DPYTHON_EXECUTABLE="${PYTHON}" |
45 |
+ -DPYTHON_SITE_PACKAGES="$(python_get_sitedir)" |
46 |
) |
47 |
# CMakeLists.txt expects LLVM_INSTALL_DIR as an environment variable. |
48 |
LLVM_INSTALL_DIR="$(get_llvm_prefix)" cmake-utils_src_configure |