1 |
commit: 8d3b638670a03518d68a920a7cf997682b191471 |
2 |
Author: Davide Pesavento <davidepesa <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jun 3 16:29:08 2012 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 3 16:29:08 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=8d3b6386 |
7 |
|
8 |
[dev-python/pyside] Sync with portage. |
9 |
|
10 |
(Portage version: 2.2.0_alpha109/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
dev-python/pyside/files/rpath.cmake | 10 ++++++++++ |
14 |
dev-python/pyside/pyside-9999.ebuild | 13 ++++++++++--- |
15 |
2 files changed, 20 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/pyside/files/rpath.cmake b/dev-python/pyside/files/rpath.cmake |
18 |
new file mode 100644 |
19 |
index 0000000..b896c87 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pyside/files/rpath.cmake |
22 |
@@ -0,0 +1,10 @@ |
23 |
+# use, i.e. don't skip the full RPATH for the build tree |
24 |
+SET(CMAKE_SKIP_BUILD_RPATH FALSE) |
25 |
+ |
26 |
+# when building, don't use the install RPATH already |
27 |
+# (but later on when installing) |
28 |
+SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) |
29 |
+ |
30 |
+# add the automatically determined parts of the RPATH |
31 |
+# which point to directories outside the build tree to the install RPATH |
32 |
+SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) |
33 |
|
34 |
diff --git a/dev-python/pyside/pyside-9999.ebuild b/dev-python/pyside/pyside-9999.ebuild |
35 |
index 64ecd83..07ebbb2 100644 |
36 |
--- a/dev-python/pyside/pyside-9999.ebuild |
37 |
+++ b/dev-python/pyside/pyside-9999.ebuild |
38 |
@@ -37,7 +37,7 @@ REQUIRED_USE=" |
39 |
QT_PV="4.7.0:4" |
40 |
|
41 |
RDEPEND=" |
42 |
- ~dev-python/shiboken-${PV} |
43 |
+ >=dev-python/shiboken-${PV} |
44 |
>=x11-libs/qt-core-${QT_PV} |
45 |
X? ( |
46 |
>=x11-libs/qt-gui-${QT_PV}[accessibility] |
47 |
@@ -62,13 +62,18 @@ RDEPEND=" |
48 |
" |
49 |
DEPEND="${RDEPEND}" |
50 |
|
51 |
-S=${WORKDIR}/${PN} |
52 |
- |
53 |
src_prepare() { |
54 |
# Fix generated pkgconfig file to require the shiboken |
55 |
# library suffixed with the correct python version. |
56 |
sed -i -e '/^Requires:/ s/shiboken$/&@SHIBOKEN_PYTHON_SUFFIX@/' \ |
57 |
libpyside/pyside.pc.in || die |
58 |
+ |
59 |
+ if use prefix; then |
60 |
+ cp "${FILESDIR}"/rpath.cmake . |
61 |
+ sed \ |
62 |
+ -i '1iinclude(rpath.cmake)' \ |
63 |
+ CMakeLists.txt || die |
64 |
+ fi |
65 |
} |
66 |
|
67 |
src_configure() { |
68 |
@@ -108,7 +113,9 @@ src_test() { |
69 |
testing() { |
70 |
CMAKE_BUILD_DIR="${S}_${PYTHON_ABI}" virtualmake |
71 |
} |
72 |
+ python_enable_pyc |
73 |
python_execute_function testing |
74 |
+ python_disable_pyc |
75 |
} |
76 |
|
77 |
src_install() { |