-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkvoptions-scm-1.rockspec
48 lines (40 loc) · 1.26 KB
/
kvoptions-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
46
47
48
local git_ref = 'scm'
local modrev = git_ref
local specrev = '1'
local repo_url = 'https://github.com/ho-tex/kvoptions'
rockspec_format = '3.0'
package = 'kvoptions'
version = modrev .. '-' .. specrev
description = {
summary = 'Key value format for package options',
detailed =
[[This package offers support for package authors who want to use options in key-value format for their package options.]],
labels = { 'tex', 'plaintex', 'latex' },
homepage = repo_url,
license = 'LPPL-1.3c'
}
build_dependencies = { 'luatex', 'texrocks', 'latex-base' }
dependencies = { 'etexcmds', 'ltxcmds', 'latex-graphics', 'iftex' }
source = {
url = repo_url .. '/releases/download/release-' .. git_ref .. '-PL' .. specrev .. '/' .. package .. '.tds.zip',
dir = '.'
}
if modrev == 'scm' or modrev == 'dev' then
source = {
url = 'https://mirrors.ctan.org/macros/latex/contrib/kvoptions.zip',
}
end
build = {
type = 'command',
build_command = [[
texrocks install &&
luatex --interaction=nonstopmode kvoptions.dtx
]],
install = {
conf = {
['../doc/latex/kvoptions/kvoptions.pdf'] = 'kvoptions.pdf',
['../tex/latex/kvoptions/kvoptions.sty'] = 'kvoptions.sty',
['../tex/latex/kvoptions/kvoptions-patch.sty'] = 'kvoptions-patch.sty',
}
}
}