-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhopatch-scm-1.rockspec
48 lines (40 loc) · 1.3 KB
/
hopatch-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://ctan.org/pkg/hopatch'
rockspec_format = '3.0'
package = 'hopatch'
version = modrev .. '-' .. specrev
description = {
summary = [[Load patches for packages]],
detailed =
[[Hopatch provides a command with which the user may register of patch code for a particular package. Hopatch will apply the patch immediately, if the relevant package has already been loaded; otherwise it will store the patch until the package appears.]],
labels = { 'tex', 'latex' },
homepage = 'https://github.com/ho-tex/hopatch',
license = 'LPPL-1.3c'
}
build_dependencies = { 'luatex', 'texrocks', 'latex-base' }
dependencies = { 'ltxcmds' }
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/hopatch.zip',
}
end
build = {
type = 'command',
build_command = [[
texrocks install &&
luatex --interaction=nonstopmode hopatch.dtx
]],
install = {
conf = {
['../doc/latex/hopatch/hopatch.pdf'] = 'hopatch.pdf',
['../tex/latex/hopatch/hopatch.sty'] = 'hopatch.sty',
['../tex/latex/hopatch/hopatch-2016-05-16.sty'] = 'hopatch-2016-05-16.sty',
}
}
}