-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiftex-scm-1.rockspec
37 lines (30 loc) · 1.04 KB
/
iftex-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
local git_ref = 'scm'
local modrev = git_ref
local specrev = '1'
local repo_url = 'https://github.com/latex3/iftex'
rockspec_format = '3.0'
package = 'iftex'
version = modrev .. '-' .. specrev
description = {
summary = 'Am I running under pdfTeX, XeTeX or LuaTeX?',
detailed =
[[The package, which works both for Plain TeX and for LaTeX, defines the \ifPDFTeX, \ifXeTeX, and \ifLuaTeX conditionals for testing which engine is being used for typesetting.
The package also provides the \RequirePDFTeX, \RequireXeTeX, and \RequireLuaTeX commands which throw an error if pdfTeX, XeTeX or LuaTeX (respectively) is not the engine in use.]],
labels = { 'tex', 'plaintex', '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/install/macros/generic/iftex.tds.zip',
dir = '.'
}
end
build = {
type = 'none',
copy_directories = { 'doc', 'tex' },
}