xref: /freebsd/contrib/lyaml/lyaml-6.2.8-1.rockspec (revision edbbf26e2650e02cd3925dd1deaacf9b8fb2e2a0)
1local _MODREV, _SPECREV = '6.2.8', '-1'
2
3package = 'lyaml'
4version = _MODREV .. _SPECREV
5
6description = {
7   summary  = 'libYAML binding for Lua',
8   detailed = 'Read and write YAML format files with Lua.',
9   homepage = 'http://github.com/gvvaughan/lyaml',
10   license  = 'MIT/X11',
11}
12
13source = {
14   url = 'http://github.com/gvvaughan/lyaml/archive/v' .. _MODREV .. '.zip',
15   dir = 'lyaml-' .. _MODREV,
16}
17
18dependencies = {
19   'lua >= 5.1, < 5.5',
20}
21
22external_dependencies = {
23   YAML = {
24     library = 'yaml',
25   },
26}
27
28build = {
29   type = 'command',
30   build_command = '$(LUA) build-aux/luke'
31      .. ' package="' .. package .. '"'
32      .. ' version="' .. _MODREV .. '"'
33      .. ' PREFIX="$(PREFIX)"'
34      .. ' CFLAGS="$(CFLAGS)"'
35      .. ' LIBFLAG="$(LIBFLAG)"'
36      .. ' LIB_EXTENSION="$(LIB_EXTENSION)"'
37      .. ' OBJ_EXTENSION="$(OBJ_EXTENSION)"'
38      .. ' LUA="$(LUA)"'
39      .. ' LUA_DIR="$(LUADIR)"'
40      .. ' LUA_INCDIR="$(LUA_INCDIR)"'
41      .. ' YAML_DIR="$(YAML_DIR)"'
42      .. ' YAML_INCDIR="$(YAML_INCDIR)"'
43      .. ' YAML_LIBDIR="$(YAML_LIBDIR)"'
44      ,
45   install_command = '$(LUA) build-aux/luke install --quiet'
46      .. ' INST_LIBDIR="$(LIBDIR)"'
47      .. ' INST_LUADIR="$(LUADIR)"'
48      ,
49   copy_directories = {'doc'},
50}
51
52if _MODREV == 'git' then
53   build.copy_directories = nil
54
55   source = {
56      url = 'git://github.com/gvvaughan/lyaml.git',
57   }
58end
59
60