1 |
commit: 04d72718957bc2e95d3b22bb925b488490759204 |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 3 00:04:53 2019 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 3 01:00:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04d72718 |
7 |
|
8 |
dev-python/qscintilla-python: proper fix for the parallel install failure |
9 |
|
10 |
Also switch to an out-of-source build |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org> |
14 |
|
15 |
.../qscintilla-python-2.11.1.ebuild | 29 +++++++++++----------- |
16 |
1 file changed, 15 insertions(+), 14 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/qscintilla-python/qscintilla-python-2.11.1.ebuild b/dev-python/qscintilla-python/qscintilla-python-2.11.1.ebuild |
19 |
index dfe6ef7c314..4c02bf5f03f 100644 |
20 |
--- a/dev-python/qscintilla-python/qscintilla-python-2.11.1.ebuild |
21 |
+++ b/dev-python/qscintilla-python/qscintilla-python-2.11.1.ebuild |
22 |
@@ -6,11 +6,16 @@ EAPI=7 |
23 |
PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
24 |
inherit python-r1 qmake-utils |
25 |
|
26 |
-MY_P=QScintilla_gpl-${PV/_pre/.dev} |
27 |
- |
28 |
DESCRIPTION="Python bindings for QScintilla" |
29 |
HOMEPAGE="https://www.riverbankcomputing.com/software/qscintilla/intro" |
30 |
-SRC_URI="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${MY_P}.tar.gz" |
31 |
+ |
32 |
+MY_PN=QScintilla |
33 |
+MY_P=${MY_PN}_gpl-${PV/_pre/.dev} |
34 |
+if [[ ${PV} == *_pre* ]]; then |
35 |
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
36 |
+else |
37 |
+ SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" |
38 |
+fi |
39 |
|
40 |
LICENSE="GPL-3" |
41 |
SLOT="0" |
42 |
@@ -33,27 +38,24 @@ RDEPEND="${DEPEND}" |
43 |
|
44 |
S=${WORKDIR}/${MY_P}/Python |
45 |
|
46 |
-src_prepare() { |
47 |
- default |
48 |
- python_copy_sources |
49 |
-} |
50 |
- |
51 |
src_configure() { |
52 |
configuration() { |
53 |
local myconf=( |
54 |
"${PYTHON}" |
55 |
- configure.py |
56 |
+ "${S}"/configure.py |
57 |
--pyqt=PyQt5 |
58 |
--qmake="$(qt5_get_bindir)"/qmake |
59 |
- --sip-incdir="$(python_get_includedir)" |
60 |
$(usex debug '--debug --trace' '') |
61 |
--verbose |
62 |
) |
63 |
echo "${myconf[@]}" |
64 |
"${myconf[@]}" || die |
65 |
|
66 |
- # Run eqmake to respect toolchain, build flags, and prevent stripping |
67 |
- eqmake5 -recursive |
68 |
+ # Fix parallel install failure |
69 |
+ sed -i -e '/INSTALLS += distinfo/i distinfo.depends = install_subtargets' ${MY_PN}.pro || die |
70 |
+ |
71 |
+ # Run eqmake to respect toolchain and build flags |
72 |
+ eqmake5 -recursive ${MY_PN}.pro |
73 |
} |
74 |
python_foreach_impl run_in_build_dir configuration |
75 |
} |
76 |
@@ -64,8 +66,7 @@ src_compile() { |
77 |
|
78 |
src_install() { |
79 |
installation() { |
80 |
- # parallel install fails because mk_distinfo.py runs too early |
81 |
- emake -j1 INSTALL_ROOT="${D}" install |
82 |
+ emake INSTALL_ROOT="${D}" install |
83 |
python_optimize |
84 |
} |
85 |
python_foreach_impl run_in_build_dir installation |