pkgsrc/devel/lua-rocks/Makefile
alnsn 791c8ab8b2 Update devel/lua-rocks to 2.4.1.
What's new since 2.3.0:

* New test suite based on Busted; runs on Linux, OSX and Windows. This
test suite was developed by Robert Karasek as his Google Summer of
Code project for LabLua. You can check out the combined coverage of
all platforms at CodeCov:
https://codecov.io/gh/keplerproject/luarocks/
* git+ssh:// fetch protocol
* Improved behavior preserving permissions
* Improved listing of dependencies on installation
* Improved behavior of argument handling in `pack`
* MSYS and Haiku platform detection
* Feature-based detection of internal bit32 and utf8 modules
* Internal reorganization of luarocks.fs code
* `remove` option --force=fast renamed to --force-fast
* Plus assorted bugfixes and cleanups

What's new since 2.4.0:

* Avoid coroutine use inside luarocks.loader, that apparently affected
OpenResty's require()
* Fix upgrade issues for old versions (e.g. when upgrading from LuaRocks 2.1.0)
2016-10-06 20:28:54 +00:00

46 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2016/10/06 20:28:54 alnsn Exp $
DISTNAME= luarocks-2.4.1
PKGNAME= ${DISTNAME:S/luarocks/${LUA_PKGPREFIX}-rocks/}
CATEGORIES= devel
MASTER_SITES= http://luarocks.org/releases/
MAINTAINER= alnsn@NetBSD.org
HOMEPAGE= http://luarocks.org/
COMMENT= Deployment and management system for Lua modules
LICENSE= mit
USE_TOOLS+= curl:run # downloader (curl or wget)
USE_TOOLS+= openssl:run # md5-checker (openssl or md5sum)
.include "../../mk/bsd.prefs.mk"
HAS_CONFIGURE= yes
USE_LANGUAGES= # none
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --rocks-tree=${PREFIX}/luarocks
CONFIGURE_ARGS+= --with-lua=${PREFIX}
CONFIGURE_ARGS+= --lua-suffix=${_LUA_DOT_VERSION}
CONFIGURE_ARGS+= --lua-version=${_LUA_DOT_VERSION}
CONFIGURE_ARGS+= --with-lua-include=${PREFIX}/${LUA_INCDIR}
CONFIGURE_ARGS+= --versioned-rocks-dir
CONFIGURE_ARGS+= --with-downloader=curl
CONFIGURE_ARGS+= --with-md5-checker=openssl
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}
.include "../../lang/lua/application.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/alternatives.mk"
.include "../../mk/bsd.pkg.mk"