From e350fb836f6e37b8acfcc62f42a8607ef233065d Mon Sep 17 00:00:00 2001 From: Aisha Tammy Date: Sun, 27 Dec 2020 17:02:37 +0000 Subject: dev-libs/libucl: fix lua USE flag remove calling lua_setup and co. when not with USE lua Closes: https://bugs.gentoo.org/761808 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Aisha Tammy Closes: https://github.com/gentoo/gentoo/pull/18837 Signed-off-by: Sam James --- dev-libs/libucl/libucl-0.8.1-r100.ebuild | 4 +++- dev-libs/libucl/libucl-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'dev-libs/libucl') diff --git a/dev-libs/libucl/libucl-0.8.1-r100.ebuild b/dev-libs/libucl/libucl-0.8.1-r100.ebuild index 66e66cd2dc80..d576b86cdf0e 100644 --- a/dev-libs/libucl/libucl-0.8.1-r100.ebuild +++ b/dev-libs/libucl/libucl-0.8.1-r100.ebuild @@ -42,7 +42,7 @@ src_prepare() { } src_configure() { - lua_setup + use lua && lua_setup local myeconfargs=( "$(use_enable lua)" @@ -50,6 +50,8 @@ src_configure() { "$(use_enable sign signatures)" "$(use_enable urls)" "$(use_enable utils)" + ) + use lua && myeconfargs+=( LUA_INCLUDE="$(lua_get_CFLAGS)" LIB_LIBS="$(lua_get_LIBS)" ) diff --git a/dev-libs/libucl/libucl-9999.ebuild b/dev-libs/libucl/libucl-9999.ebuild index 66e66cd2dc80..d576b86cdf0e 100644 --- a/dev-libs/libucl/libucl-9999.ebuild +++ b/dev-libs/libucl/libucl-9999.ebuild @@ -42,7 +42,7 @@ src_prepare() { } src_configure() { - lua_setup + use lua && lua_setup local myeconfargs=( "$(use_enable lua)" @@ -50,6 +50,8 @@ src_configure() { "$(use_enable sign signatures)" "$(use_enable urls)" "$(use_enable utils)" + ) + use lua && myeconfargs+=( LUA_INCLUDE="$(lua_get_CFLAGS)" LIB_LIBS="$(lua_get_LIBS)" ) -- cgit v1.2.3-65-gdbad