app-office/sc-im: cleaner lua handling

Removed the unnecessary luajit check in Makefile and corresponding env
var in the ebuild.

Signed-off-by: Dex Conner <cantcuckthis@danwin1210.de>
This commit is contained in:
Dex Conner
2022-04-16 11:51:33 +03:00
parent e83417ea3d
commit f91cfa5b70
2 changed files with 11 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
CFLAGS += -DGNUPLOT
endif
@@ -116,32 +116,33 @@
@@ -116,38 +116,31 @@
endif
# NOTE: libxlsreader (libxls) is required for xls file reading support
@@ -43,8 +43,12 @@
LDLIBS += $(shell pkg-config --libs lua) -rdynamic
endif
- else ifneq ($(shell pkg-config --exists luajit || echo 'no'),no) # If not found, check for luajit
+ endif
+ ifeq ($(LUAJIT),yes)
CFLAGS += -DXLUA $(shell pkg-config --cflags luajit)
ifneq ($(shell uname -s),Darwin)
LDLIBS += $(shell pkg-config --libs luajit) -Wl,--export-dynamic
- CFLAGS += -DXLUA $(shell pkg-config --cflags luajit)
- ifneq ($(shell uname -s),Darwin)
- LDLIBS += $(shell pkg-config --libs luajit) -Wl,--export-dynamic
- else
- LDLIBS += $(shell pkg-config --libs luajit) -rdynamic
- endif
endif
else ifeq ($(shell uname -s),Darwin)
# macOS without pkg-config

View File

@@ -58,12 +58,11 @@ pkg_setup() {
export XLS=$(usex xls)
export XLSX=$(usex xlsx)
export LUA=$(usex lua)
export JUAJIT=$(usex lua_single_target_luajit)
( use xlsx || use ods ) && export XML_ZIP="yes"
# Prefer wayland support over X, and tmux support over both wayland and X.
use wayland && export X="no"
use tmux && X="no" && export WAYLAND="no"
use tmux && export X="no" && export WAYLAND="no"
# Notifying the user about which clipboard support is enabled if conflicting flags are set
CONFLICTING=$(usex tmux "tmux " "")$(usex wayland "wayland " "")$(usex X "X" "")