-
Notifications
You must be signed in to change notification settings - Fork 3
/
rockspec.in
41 lines (40 loc) · 1.23 KB
/
rockspec.in
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
{% mod = require 'lut' %}
package = "{{mod.type}}"
version = "{{mod.VERSION}}-1"
source = {
url = "http://lubyk.org/archive/{{mod.type}}-REL-{{mod.VERSION}}.tar.gz",
dir = '{{mod.type}}-REL-{{mod.VERSION}}',
}
description = {
summary = "Utility module for lubyk. Contains a documentation generator and testing facilities.",
detailed = [[
lub.Doc: a powerful documentation generator for Lua code with support for
litterate programming, cross-reference linking, images, latex math, etc.
lub.Test: unit testing framework.
]],
homepage = "http://lubyk.org",
license = "MIT"
}
dependencies = {
"lua >= 5.1, < 5.3",
"lub ~> 1.0",
}
build = {
type = 'builtin',
modules = {
{{string.format("[%-17s] = '%s/%s.lua'", "'"..mod.type.."'", mod.type, 'init')}},
{% for file in lfs.dir(mod.type) do %}
{% if file ~= 'init.lua' and file:match('.lua$') then file = file:sub(1, -5) %}
{{string.format("[%-17s] = '%s/%s.lua'", "'"..mod.type..'.'..file.."'", mod.type, file)}},
{% end %}
{% end %}
},
install = {
lua = {
['lut.doc.template'] = 'lut/doc/template.html',
{% for _, path in ipairs(mod.Doc.ASSETS) do %}
['lut.doc.{{path:gsub('[.]', '_'):gsub('/', '.')}}'] = 'lut/doc/{{path}}',
{% end %}
},
}
}