pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/lua-luv lua-luv: Only attempt to copy the compat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c5f30bfa324
branches:  trunk
changeset: 373821:7c5f30bfa324
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Feb 13 10:30:19 2022 +0000

description:
lua-luv: Only attempt to copy the compat5.3 headers when they're
actively required.

diffstat:

 devel/lua-luv/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 4ed6e93e9262 -r 7c5f30bfa324 devel/lua-luv/Makefile
--- a/devel/lua-luv/Makefile    Sun Feb 13 10:07:46 2022 +0000
+++ b/devel/lua-luv/Makefile    Sun Feb 13 10:30:19 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2021/12/27 09:45:40 nia Exp $
+# $NetBSD: Makefile,v 1.6 2022/02/13 10:30:19 nia Exp $
 
 DISTNAME=      luv-1.42.0-1
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/-1$/.1/1}
@@ -26,7 +26,9 @@
 CMAKE_ARGS+=   -DWITH_LUA_ENGINE=Lua
 
 pre-configure:
+.if ${_LUA_VERSION} == "51" || ${_LUA_VERSION} == "52"
        ${CP} ${PREFIX}/${LUA_INCDIR}/compat-5.3.* ${WRKSRC}/src
+.endif
 
 .include "../../lang/lua/module.mk"
 .include "../../devel/libuv/buildlink3.mk"



Home | Main Index | Thread Index | Old Index