Skip to content

Commit

Permalink
app-text/highlight-2.14.3-r100: remove hardcoded -llua from the Qt pr…
Browse files Browse the repository at this point in the history
…oject

Closes: https://bugs.gentoo.org/761511
Signed-off-by: Marek Szuba <[email protected]>
  • Loading branch information
Marek Szuba committed Dec 24, 2020
1 parent 39b1188 commit d352d70
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions app-text/highlight/files/highlight-3.57-qt_libs_lua.patch
Original file line number Diff line number Diff line change
@@ -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

6 changes: 4 additions & 2 deletions app-text/highlight/highlight-3.57-r100.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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...
Expand Down

0 comments on commit d352d70

Please sign in to comment.