-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathoptparse-git-1.rockspec
More file actions
41 lines (34 loc) · 940 Bytes
/
optparse-git-1.rockspec
File metadata and controls
41 lines (34 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
local _MODREV, _SPECREV = 'git', '-1'
package = 'optparse'
version = _MODREV .. _SPECREV
description = {
summary = 'Parse and process command-line options',
detailed = [[
Automatically generate a custom command-line option parser from
just the long-form help text for your program.
]],
homepage = 'http://gvvaughan.github.io/optparse',
license = 'MIT/X11',
}
source = {
url = 'http://github.com/gvvaughan/optparse/archive/v' .. _MODREV .. '.zip',
dir = 'optparse-' .. _MODREV,
}
dependencies = {
'lua >= 5.1, < 5.5',
}
build = {
type = 'builtin',
modules = {
optparse = 'lib/optparse/init.lua',
['optparse._strict'] = 'lib/optparse/_strict.lua',
['optparse.version'] = 'lib/optparse/version.lua',
},
copy_directories = {'doc'},
}
if _MODREV == 'git' then
build.copy_directories = nil
source = {
url = 'git://github.com/gvvaughan/optparse.git',
}
end