commit:     d352d709a5c107127873987c3844b86ef949aaf8
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 24 23:26:31 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Dec 24 23:29:49 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d352d709

app-text/highlight-2.14.3-r100: remove hardcoded -llua from the Qt project

Closes: https://bugs.gentoo.org/761511
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 app-text/highlight/files/highlight-3.57-qt_libs_lua.patch | 13 +++++++++++++
 app-text/highlight/highlight-3.57-r100.ebuild             |  6 ++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

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
new file mode 100644
index 00000000000..02009164f4e
--- /dev/null
+++ b/app-text/highlight/files/highlight-3.57-qt_libs_lua.patch
@@ -0,0 +1,13 @@
+Unnecessary (the linker gets the right library from pkgconfig anyway)
+and breaks slotted Lua. See Bug #761511 for details.
+
+--- a/src/gui-qt/highlight.pro
++++ b/src/gui-qt/highlight.pro
+@@ -39,7 +39,6 @@
+ unix {
+     DESTDIR = ../
+     LIBS += -L.. -lhighlight
+-    LIBS += -llua
+     CONFIG += link_pkgconfig
+     PKGCONFIG += lua
+ 

diff --git a/app-text/highlight/highlight-3.57-r100.ebuild 
b/app-text/highlight/highlight-3.57-r100.ebuild
index 52f5375c3ee..4755abe9c04 100644
--- a/app-text/highlight/highlight-3.57-r100.ebuild
+++ b/app-text/highlight/highlight-3.57-r100.ebuild
@@ -34,6 +34,10 @@ BDEPEND="
        qt5? ( dev-qt/linguist-tools:5 )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.57-qt_libs_lua.patch
+)
+
 myhlopts=(
        "CXX=$(tc-getCXX)"
        "AR=$(tc-getAR)"
@@ -60,8 +64,6 @@ src_prepare() {
                -e "/^LUA_.*pkg-config/s,\<lua\>,${ELUA},g" \
                "${S}"/extras/tcl/makefile \
                "${S}"/extras/swig/makefile \
-               "${S}"/makefile \
-               "${S}"/src/makefile \
                || die "Failed to set Lua implementation"
 
        # We set it via eqmake5, otherwise it forces clang...

Reply via email to