1 |
commit: 7c60889581ac7f2f788a7050882ad3fdbd9838a9 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 2 23:20:32 2019 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 3 00:54:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c608895 |
7 |
|
8 |
dev-python/PyQt5: proper fix for the parallel install failure |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org> |
12 |
|
13 |
dev-python/PyQt5/PyQt5-5.10.1-r1.ebuild | 9 +++++---- |
14 |
dev-python/PyQt5/PyQt5-5.12.1.ebuild | 19 +++++++++++-------- |
15 |
2 files changed, 16 insertions(+), 12 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/PyQt5/PyQt5-5.10.1-r1.ebuild b/dev-python/PyQt5/PyQt5-5.10.1-r1.ebuild |
18 |
index d0f6fd5829f..62e0077bd41 100644 |
19 |
--- a/dev-python/PyQt5/PyQt5-5.10.1-r1.ebuild |
20 |
+++ b/dev-python/PyQt5/PyQt5-5.10.1-r1.ebuild |
21 |
@@ -9,11 +9,12 @@ inherit multibuild python-r1 qmake-utils |
22 |
DESCRIPTION="Python bindings for the Qt framework" |
23 |
HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/intro" |
24 |
|
25 |
-MY_P=${PN}_gpl-${PV/_pre/.dev} |
26 |
+MY_PN=PyQt5 |
27 |
+MY_P=${MY_PN}_gpl-${PV/_pre/.dev} |
28 |
if [[ ${PV} == *_pre* ]]; then |
29 |
- SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz" |
30 |
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
31 |
else |
32 |
- SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" |
33 |
+ SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" |
34 |
fi |
35 |
|
36 |
LICENSE="GPL-3" |
37 |
@@ -158,7 +159,7 @@ src_configure() { |
38 |
echo "${myconf[@]}" |
39 |
"${myconf[@]}" || die |
40 |
|
41 |
- eqmake5 -recursive ${PN}.pro |
42 |
+ eqmake5 -recursive ${MY_PN}.pro |
43 |
} |
44 |
python_foreach_impl run_in_build_dir configuration |
45 |
} |
46 |
|
47 |
diff --git a/dev-python/PyQt5/PyQt5-5.12.1.ebuild b/dev-python/PyQt5/PyQt5-5.12.1.ebuild |
48 |
index 7098afbaeb7..37381dcdb82 100644 |
49 |
--- a/dev-python/PyQt5/PyQt5-5.12.1.ebuild |
50 |
+++ b/dev-python/PyQt5/PyQt5-5.12.1.ebuild |
51 |
@@ -9,11 +9,12 @@ inherit multibuild python-r1 qmake-utils |
52 |
DESCRIPTION="Python bindings for the Qt framework" |
53 |
HOMEPAGE="https://www.riverbankcomputing.com/software/pyqt/intro" |
54 |
|
55 |
-MY_P=${PN}_gpl-${PV/_pre/.dev} |
56 |
+MY_PN=PyQt5 |
57 |
+MY_P=${MY_PN}_gpl-${PV/_pre/.dev} |
58 |
if [[ ${PV} == *_pre* ]]; then |
59 |
SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
60 |
else |
61 |
- SRC_URI="https://www.riverbankcomputing.com/static/Downloads/PyQt5/${MY_P}.tar.gz" |
62 |
+ SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" |
63 |
fi |
64 |
|
65 |
LICENSE="GPL-3" |
66 |
@@ -117,7 +118,6 @@ src_configure() { |
67 |
--confirm-license |
68 |
--qmake="$(qt5_get_bindir)"/qmake |
69 |
--bindir="${EPREFIX}/usr/bin" |
70 |
- --sip-incdir="$(python_get_includedir)" |
71 |
--qsci-api |
72 |
--enable=QtCore |
73 |
--enable=QtXml |
74 |
@@ -153,7 +153,11 @@ src_configure() { |
75 |
echo "${myconf[@]}" |
76 |
"${myconf[@]}" || die |
77 |
|
78 |
- eqmake5 -recursive ${PN}.pro |
79 |
+ # Fix parallel install failure |
80 |
+ sed -i -e '/INSTALLS += distinfo/i distinfo.depends = install_subtargets' ${MY_PN}.pro || die |
81 |
+ |
82 |
+ # Run eqmake to respect toolchain and build flags |
83 |
+ eqmake5 -recursive ${MY_PN}.pro |
84 |
} |
85 |
python_foreach_impl run_in_build_dir configuration |
86 |
} |
87 |
@@ -164,9 +168,8 @@ src_compile() { |
88 |
|
89 |
src_install() { |
90 |
installation() { |
91 |
- local tmp_root=${D}/${PN}_tmp_root |
92 |
- # parallel install fails because mk_distinfo.py runs too early |
93 |
- emake -j1 INSTALL_ROOT="${tmp_root}" install |
94 |
+ local tmp_root=${D}/${MY_PN}_tmp_root |
95 |
+ emake INSTALL_ROOT="${tmp_root}" install |
96 |
|
97 |
local bin_dir=${tmp_root}${EPREFIX}/usr/bin |
98 |
local exe |
99 |
@@ -175,7 +178,7 @@ src_install() { |
100 |
rm "${bin_dir}/${exe}" || die |
101 |
done |
102 |
|
103 |
- local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic |
104 |
+ local uic_dir=${tmp_root}$(python_get_sitedir)/${MY_PN}/uic |
105 |
if python_is_python3; then |
106 |
rm -r "${uic_dir}"/port_v2 || die |
107 |
else |