-
Notifications
You must be signed in to change notification settings - Fork 34
/
lyaml-git-1.rockspec
59 lines (50 loc) · 1.36 KB
/
lyaml-git-1.rockspec
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
local _MODREV, _SPECREV = 'git', '-1'
package = 'lyaml'
version = _MODREV .. _SPECREV
description = {
summary = 'libYAML binding for Lua',
detailed = 'Read and write YAML format files with Lua.',
homepage = 'http://github.com/gvvaughan/lyaml',
license = 'MIT/X11',
}
source = {
url = 'http://github.com/gvvaughan/lyaml/archive/v' .. _MODREV .. '.zip',
dir = 'lyaml-' .. _MODREV,
}
dependencies = {
'lua >= 5.1, < 5.5',
}
external_dependencies = {
YAML = {
library = 'yaml',
},
}
build = {
type = 'command',
build_command = '$(LUA) build-aux/luke'
.. ' package="' .. package .. '"'
.. ' version="' .. _MODREV .. '"'
.. ' PREFIX="$(PREFIX)"'
.. ' CFLAGS="$(CFLAGS)"'
.. ' LIBFLAG="$(LIBFLAG)"'
.. ' LIB_EXTENSION="$(LIB_EXTENSION)"'
.. ' OBJ_EXTENSION="$(OBJ_EXTENSION)"'
.. ' LUA="$(LUA)"'
.. ' LUA_DIR="$(LUADIR)"'
.. ' LUA_INCDIR="$(LUA_INCDIR)"'
.. ' YAML_DIR="$(YAML_DIR)"'
.. ' YAML_INCDIR="$(YAML_INCDIR)"'
.. ' YAML_LIBDIR="$(YAML_LIBDIR)"'
,
install_command = '$(LUA) build-aux/luke install --quiet'
.. ' INST_LIBDIR="$(LIBDIR)"'
.. ' INST_LUADIR="$(LUADIR)"'
,
copy_directories = {'doc'},
}
if _MODREV == 'git' then
build.copy_directories = nil
source = {
url = 'git://github.com/gvvaughan/lyaml.git',
}
end