Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/python_qt_binding/files/, dev-ros/python_qt_binding/
Date: Wed, 28 Aug 2019 17:02:21
Message-Id: 1567011706.251669b3955b845ac4bcef9f1ed3b655a9f6a5b8.aballier@gentoo
1 commit: 251669b3955b845ac4bcef9f1ed3b655a9f6a5b8
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 28 16:48:48 2019 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 28 17:01:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=251669b3
7
8 dev-ros/python_qt_binding: backport upstream fix
9
10 For building qt_gui_cpp.
11
12 Closes: https://bugs.gentoo.org/691860
13 Package-Manager: Portage-2.3.73, Repoman-2.3.17
14 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
15
16 dev-ros/python_qt_binding/files/var.patch | 31 ++++++++++++++++++++++
17 ....5.ebuild => python_qt_binding-0.3.5-r1.ebuild} | 1 +
18 2 files changed, 32 insertions(+)
19
20 diff --git a/dev-ros/python_qt_binding/files/var.patch b/dev-ros/python_qt_binding/files/var.patch
21 new file mode 100644
22 index 00000000000..f0cd56d10a7
23 --- /dev/null
24 +++ b/dev-ros/python_qt_binding/files/var.patch
25 @@ -0,0 +1,31 @@
26 +From 1b3000d2eccfad651b427de20028a4ca552e9ea7 Mon Sep 17 00:00:00 2001
27 +From: Hans Gaiser <h.gaiser@×××××.com>
28 +Date: Mon, 29 Jul 2019 15:17:39 -0700
29 +Subject: [PATCH] Replace Qt variable in generated Makefile. (#64)
30 +
31 +* Replace Qt variable in generated Makefile.
32 +
33 +* use single quotes
34 +---
35 + cmake/sip_configure.py | 9 +++++++++
36 + 1 file changed, 9 insertions(+)
37 +
38 +diff --git a/cmake/sip_configure.py b/cmake/sip_configure.py
39 +index 49eb866..ce084dd 100644
40 +--- a/cmake/sip_configure.py
41 ++++ b/cmake/sip_configure.py
42 +@@ -145,5 +145,14 @@ def split_paths(paths):
43 + else:
44 + makefile.extra_cxxflags.append('-std=c++14')
45 +
46 ++# Finalise the Makefile, preparing it to be saved to disk
47 ++makefile.finalise()
48 ++
49 ++# Replace Qt variables from libraries
50 ++libs = makefile.LIBS.as_list()
51 ++for i in range(len(libs)):
52 ++ libs[i] = libs[i].replace('$$[QT_INSTALL_LIBS]', config.build_macros()['LIBDIR_QT'])
53 ++makefile.LIBS.set(libs)
54 ++
55 + # Generate the Makefile itself
56 + makefile.generate()
57
58 diff --git a/dev-ros/python_qt_binding/python_qt_binding-0.3.5.ebuild b/dev-ros/python_qt_binding/python_qt_binding-0.3.5-r1.ebuild
59 similarity index 92%
60 rename from dev-ros/python_qt_binding/python_qt_binding-0.3.5.ebuild
61 rename to dev-ros/python_qt_binding/python_qt_binding-0.3.5-r1.ebuild
62 index 5309c2893fb..f74ff22c2b2 100644
63 --- a/dev-ros/python_qt_binding/python_qt_binding-0.3.5.ebuild
64 +++ b/dev-ros/python_qt_binding/python_qt_binding-0.3.5-r1.ebuild
65 @@ -18,3 +18,4 @@ RDEPEND="
66 dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
67 "
68 DEPEND="${RDEPEND}"
69 +PATCHES=( "${FILESDIR}/var.patch" )