summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-12-25 01:40:43 +0100
committerConrad Kostecki <conikost@gentoo.org>2020-12-25 01:44:41 +0100
commit7fb18484cd11cdf968ea79ac82251afb8339d7e7 (patch)
tree16e0d8ca3fc18bef6ebad737a6f6482f2ab1e46a /net-im/swift
parentmedia-video/vlc: avoid calling lua-single_pkg_setup when USE='-lua' (diff)
downloadgentoo-7fb18484cd11cdf968ea79ac82251afb8339d7e7.tar.gz
gentoo-7fb18484cd11cdf968ea79ac82251afb8339d7e7.tar.bz2
gentoo-7fb18484cd11cdf968ea79ac82251afb8339d7e7.zip
net-im/swift: fix non lua compilation
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-im/swift')
-rw-r--r--net-im/swift/swift-4.0.2-r101.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/net-im/swift/swift-4.0.2-r101.ebuild b/net-im/swift/swift-4.0.2-r101.ebuild
index 3027230dbbf8..449ae295a37f 100644
--- a/net-im/swift/swift-4.0.2-r101.ebuild
+++ b/net-im/swift/swift-4.0.2-r101.ebuild
@@ -60,8 +60,8 @@ PATCHES=(
)
pkg_setup() {
+ lua-single_pkg_setup
python-any-r1_pkg_setup
- use lua && lua-single_pkg_setup
}
src_prepare() {
@@ -137,6 +137,9 @@ src_configure() {
libnatpmp_force_bundled="false"
link="$(tc-getCXX)"
linkflags="${LDFLAGS}"
+ $(usex lua "lua_includedir=$(lua_get_include_dir)" '')
+ $(usex lua "lua_libdir=${EPREFIX}/usr/$(get_libdir)" '')
+ $(usex lua "lua_libname=$(basename -s '.so' $(lua_get_shared_lib))" '')
lua_includedir="$(lua_get_include_dir)"
lua_libdir="${EPREFIX}/usr/$(get_libdir)"
lua_libname="$(basename -s '.so' $(lua_get_shared_lib))"