-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepstopdf-scm-1.rockspec
48 lines (40 loc) · 1.35 KB
/
epstopdf-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/epstopdf'
rockspec_format = '3.0'
package = 'epstopdf'
version = modrev .. '-' .. specrev
description = {
summary = [[Call epstopdf "on the fly"]],
detailed =
[[The package adds support for EPS files in the graphicx package when running under pdfTeX. If an EPS graphic is detected, the package spawns a process to convert the EPS to PDF, using the script epstopdf. This of course requires that shell escape is enabled for the pdfTeX run.]],
labels = { 'tex', 'latex' },
homepage = repo_url,
license = 'LPPL-1.3c'
}
build_dependencies = { 'luatex', 'texrocks', 'latex-base' }
dependencies = { 'grfext', 'pdftexcmds', 'infwarerr', 'kvoptions' }
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/epstopdf-pkg.zip',
}
end
build = {
type = 'command',
build_command = [[
texrocks install &&
luatex --interaction=nonstopmode epstopdf.dtx
]],
install = {
conf = {
['../doc/latex/epstopdf/epstopdf.pdf'] = 'epstopdf.pdf',
['../tex/latex/epstopdf/epstopdf.sty'] = 'epstopdf.sty',
['../tex/latex/epstopdf/epstopdf-base.sty'] = 'epstopdf-base.sty',
}
}
}