commit: 3bb07c1c0ddc91c019d9406c45796391525af5c8 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Oct 24 14:36:31 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Oct 24 15:51:53 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bb07c1c
dev-libs/libucl: fix build with USE=-lua Closes: https://bugs.gentoo.org/878031 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/libucl/libucl-0.8.1-r100.ebuild | 8 +++++--- dev-libs/libucl/libucl-9999.ebuild | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dev-libs/libucl/libucl-0.8.1-r100.ebuild b/dev-libs/libucl/libucl-0.8.1-r100.ebuild index 2eb9fa97c158..8b3e4c0b5cc2 100644 --- a/dev-libs/libucl/libucl-0.8.1-r100.ebuild +++ b/dev-libs/libucl/libucl-0.8.1-r100.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -35,6 +35,10 @@ RDEPEND="${DEPEND}" DOCS=( README.md doc/api.md ) +pkg_setup() { + use lua && lua_pkg_setup +} + src_prepare() { default rm tests/schema/{definitions,ref{,Remote}}.json || die @@ -42,8 +46,6 @@ src_prepare() { } src_configure() { - use lua && lua_setup - local myeconfargs=( "$(use_enable lua)" "$(use_enable regex)" diff --git a/dev-libs/libucl/libucl-9999.ebuild b/dev-libs/libucl/libucl-9999.ebuild index 2eb9fa97c158..8b3e4c0b5cc2 100644 --- a/dev-libs/libucl/libucl-9999.ebuild +++ b/dev-libs/libucl/libucl-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -35,6 +35,10 @@ RDEPEND="${DEPEND}" DOCS=( README.md doc/api.md ) +pkg_setup() { + use lua && lua_pkg_setup +} + src_prepare() { default rm tests/schema/{definitions,ref{,Remote}}.json || die @@ -42,8 +46,6 @@ src_prepare() { } src_configure() { - use lua && lua_setup - local myeconfargs=( "$(use_enable lua)" "$(use_enable regex)"