-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkvsetkeys-scm-1.rockspec
45 lines (38 loc) · 1.24 KB
/
kvsetkeys-scm-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
local git_ref = 'scm'
local modrev = git_ref
local specrev = '1'
local repo_url = 'https://github.com/ho-tex/kvsetkeys'
rockspec_format = '3.0'
package = 'kvsetkeys'
version = modrev .. '-' .. specrev
description = {
summary = 'Key value parser with default handler support',
detailed =
[[This package provides \kvsetkeys, a variant of package keyval's \setkeys. It allows the user to specify a handler that deals with unknown options. Active commas and equal signs may be used (e.g. see babel's shorthands) and only one level of curly braces are removed from the values.]],
labels = { 'tex', 'latex' },
homepage = repo_url,
license = 'LPPL-1.3c'
}
source = {
url = repo_url .. '/archive/' .. git_ref .. '.zip',
dir = package .. '-' .. modrev,
}
if modrev == 'scm' or modrev == 'dev' then
source = {
url = 'https://mirrors.ctan.org/macros/latex/contrib/kvsetkeys.zip',
}
end
build_dependencies = { 'luatex', 'texrocks', 'latex-base' }
build = {
type = 'command',
build_command = [[
texrocks install &&
luatex --interaction=nonstopmode kvsetkeys.dtx
]],
install = {
conf = {
['../doc/latex/kvsetkeys/kvsetkeys.pdf'] = 'kvsetkeys.pdf',
['../tex/latex/kvsetkeys/kvsetkeys.sty'] = 'kvsetkeys.sty',
}
}
}