maint: parameterize rockspec.
* luaposix-git-1.rockspec (_MODREV, _SPECREV): New constants.
(version, url, dir): Use them.
+local _MODREV, _SPECREV = 'git', '-1'
+
package = 'luaposix'
-version = 'git-1'
+version = _MODREV .. _SPECREV
description = {
summary = 'Lua bindings for POSIX',
@@ -13,11 +15,14 @@ description = {
source = {
url = 'git://github.com/luaposix/luaposix.git',
+-- url = 'http://github.com/luaposix/luaposix/archive/v' .. _MODREV .. '.zip',
+-- dir = 'luaposix-' .. _MODREV,
}
dependencies = {
'lua >= 5.1, < 5.4',
'bit32',
+ 'ldoc',
}
build = {
@@ -39,5 +44,4 @@ build = {
.. ' INST_LIBDIR="$(LIBDIR)"'
.. ' INST_LUADIR="$(LUADIR)"'
,
- copy_directories = {'doc'},
}
