## What's new in LuaRocks 3.4.0 ### Features * `luarocks make` now supports `--only-deps` * `luarocks make` new flag: `--no-install`, which only performs the compilation step * `--deps-only` is now an alias for `--only-deps` (useful in case you always kept getting it wrong, like me!) * `luarocks build` and `luarocks make` now support using `--pin` and `--only-deps` at the same time, to produce a lock file of dependencies in use without installing the main package. * `luarocks show` can now accept a substring of the rock's name, like `list`. * `luarocks config`: when running without system-wide permissions, try storing the config locally by default. Also, if setting both lua_dir and --lua-version explicitly, auto-switch the default Lua version. * `luarocks` with no arguments now prints more info about the location of the Lua interpreter which is being used * `luarocks new_version` now keeps the old URL if the MD5 doesn't change. * `DEPS_DIR` is now accepted as a generic variable for dependency directories (e.g. `luarocks install foo DEPS_DIR=/usr/local`) * Handle quoting of arguments at the application level, for improved Windows support * All-in-one binary bundles `dkjson`, so it runs `luarocks upload` without requiring any additional dependencies. * Tweaks for Terra compatibility ### Fixes * win32: generate proper temp filename * No longer assume that Lua 5.3 is built with compat libraries and bundles `bit32` * `luarocks show`: do not crash when rockspec description is empty * When detecting the location of `lua.h`, check that its version matches the version of Lua being used * Fail gracefully when a third-party tool (wget, etc.) is missing * Fix logic for disabling mirrors that return network errors * Fix detection of Lua path based on arg variable * Fix regression on dependency matching of luarocks.loader
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2020/12/19 11:30:24 nia Exp $
|
|
|
|
DISTNAME= luarocks-3.5.0
|
|
PKGNAME= ${DISTNAME:S/luarocks/${LUA_PKGPREFIX}-rocks/}
|
|
CATEGORIES= devel lua
|
|
MASTER_SITES= https://luarocks.org/releases/
|
|
|
|
MAINTAINER= nia@NetBSD.org
|
|
HOMEPAGE= https://luarocks.org/
|
|
COMMENT= Deployment and management system for Lua modules
|
|
LICENSE= mit
|
|
|
|
USE_TOOLS+= gmake
|
|
USE_TOOLS+= curl:run # downloader (curl or wget)
|
|
USE_TOOLS+= openssl:run # md5-checker (openssl or md5sum)
|
|
USE_TOOLS+= unzip:run # extraction
|
|
|
|
MAKE_FILE= GNUmakefile
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
TOOLS_PLATFORM.unzip= # it seems to not like netbsd unzip(1)
|
|
.endif
|
|
|
|
HAS_CONFIGURE= yes
|
|
USE_LANGUAGES= # none
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
CONFIGURE_ARGS+= --rocks-tree=${PREFIX}/luarocks
|
|
CONFIGURE_ARGS+= --with-lua=${PREFIX}
|
|
CONFIGURE_ARGS+= --with-lua-include=${PREFIX}/${LUA_INCDIR}
|
|
CONFIGURE_ARGS+= --lua-version=${_LUA_DOT_VERSION}
|
|
|
|
BUILD_TARGET= build
|
|
MAKE_ENV+= LUA_EXAMPLESDIR=${LUA_EXAMPLESDIR}
|
|
|
|
PKG_SYSCONFSUBDIR= luarocks
|
|
LUAROCKS_CONF= config-${_LUA_DOT_VERSION}.lua
|
|
CONF_FILES= ${LUA_EXAMPLESDIR}/${LUAROCKS_CONF} \
|
|
${PKG_SYSCONFDIR}/${LUAROCKS_CONF}
|
|
|
|
# XXX Add subst rules to ../../lang/lua/xxx.mk
|
|
PLIST_SUBST+= LUADOTVER=${_LUA_DOT_VERSION}
|
|
FILES_SUBST+= LUADOTVER=${_LUA_DOT_VERSION}
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_STAGE.prefix= pre-configure
|
|
SUBST_FILES.prefix= src/luarocks/core/cfg.lua
|
|
SUBST_VARS.prefix= PREFIX
|
|
|
|
.include "../../lang/lua/application.mk"
|
|
.include "../../lang/lua/module.mk"
|
|
.include "../../mk/alternatives.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|