1 |
commit: d352d709a5c107127873987c3844b86ef949aaf8 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 24 23:26:31 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 24 23:29:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d352d709 |
7 |
|
8 |
app-text/highlight-2.14.3-r100: remove hardcoded -llua from the Qt project |
9 |
|
10 |
Closes: https://bugs.gentoo.org/761511 |
11 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
12 |
|
13 |
app-text/highlight/files/highlight-3.57-qt_libs_lua.patch | 13 +++++++++++++ |
14 |
app-text/highlight/highlight-3.57-r100.ebuild | 6 ++++-- |
15 |
2 files changed, 17 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/app-text/highlight/files/highlight-3.57-qt_libs_lua.patch b/app-text/highlight/files/highlight-3.57-qt_libs_lua.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..02009164f4e |
20 |
--- /dev/null |
21 |
+++ b/app-text/highlight/files/highlight-3.57-qt_libs_lua.patch |
22 |
@@ -0,0 +1,13 @@ |
23 |
+Unnecessary (the linker gets the right library from pkgconfig anyway) |
24 |
+and breaks slotted Lua. See Bug #761511 for details. |
25 |
+ |
26 |
+--- a/src/gui-qt/highlight.pro |
27 |
++++ b/src/gui-qt/highlight.pro |
28 |
+@@ -39,7 +39,6 @@ |
29 |
+ unix { |
30 |
+ DESTDIR = ../ |
31 |
+ LIBS += -L.. -lhighlight |
32 |
+- LIBS += -llua |
33 |
+ CONFIG += link_pkgconfig |
34 |
+ PKGCONFIG += lua |
35 |
+ |
36 |
|
37 |
diff --git a/app-text/highlight/highlight-3.57-r100.ebuild b/app-text/highlight/highlight-3.57-r100.ebuild |
38 |
index 52f5375c3ee..4755abe9c04 100644 |
39 |
--- a/app-text/highlight/highlight-3.57-r100.ebuild |
40 |
+++ b/app-text/highlight/highlight-3.57-r100.ebuild |
41 |
@@ -34,6 +34,10 @@ BDEPEND=" |
42 |
qt5? ( dev-qt/linguist-tools:5 ) |
43 |
" |
44 |
|
45 |
+PATCHES=( |
46 |
+ "${FILESDIR}"/${PN}-3.57-qt_libs_lua.patch |
47 |
+) |
48 |
+ |
49 |
myhlopts=( |
50 |
"CXX=$(tc-getCXX)" |
51 |
"AR=$(tc-getAR)" |
52 |
@@ -60,8 +64,6 @@ src_prepare() { |
53 |
-e "/^LUA_.*pkg-config/s,\<lua\>,${ELUA},g" \ |
54 |
"${S}"/extras/tcl/makefile \ |
55 |
"${S}"/extras/swig/makefile \ |
56 |
- "${S}"/makefile \ |
57 |
- "${S}"/src/makefile \ |
58 |
|| die "Failed to set Lua implementation" |
59 |
|
60 |
# We set it via eqmake5, otherwise it forces clang... |