-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeometry-scm-1.rockspec
78 lines (67 loc) · 2.53 KB
/
geometry-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
local git_ref = 'scm'
local modrev = git_ref
local specrev = '1'
local repo_url = 'https://github.com/LaTeX-Package-Repositories/geometry'
rockspec_format = '3.0'
package = 'geometry'
version = modrev .. '-' .. specrev
description = {
summary = [[Flexible and complete interface to document dimensions]],
detailed =
[[The package provides an easy and flexible user interface to customize page layout, implementing auto-centering and auto-balancing mechanisms so that the users have only to give the least description for the page layout. For example, if you want to set each margin 2cm without header space, what you need is just \usepackage[margin=2cm,nohead]{geometry}.
The package knows about all the standard paper sizes, so that the user need not know what the nominal ‘real’ dimensions of the paper are, just its standard name (such as a4, letter, etc.).
An important feature is the package’s ability to communicate the paper size it’s set up to the output (whether via DVI \specials or via direct interaction with pdf(La)TeX).]],
labels = { 'tex', 'latex' },
homepage = repo_url,
license = 'LPPL-1.3c'
}
build_dependencies = { 'lualatex', 'texrocks', 'latex-base' }
dependencies = { 'latex-graphics', 'iftex', 'atbegshi' }
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/geometry.zip',
}
end
build = {
type = 'command',
patches = {
['add-geometry-ins.diff'] = [[
--- old/changes.txt 2025-02-06 11:02:24.690528899 +0800
+++ new/changes.txt 2025-02-06 11:01:39.707129956 +0800
@@ -1,3 +1,4 @@
+\iffalse
2020-01-02 Release 5.9
* Include German translation (previously distributed as geometry-de on ctan)
* Use iftex versions of \ifxetex, \ifpdf
@@ -355,3 +356,15 @@
* Use keyval interface.
EOF
+\fi
+\input docstrip
+\usedir{tex/latex/geometry}
+\generate{
+ \file{geometry.ins}{\from{geometry.dtx}{install}}%
+ \file{geometry.drv}{\from{geometry.dtx}{driver}}%
+ \usedir{tex/latex/geometry}%
+ \file{geometry.sty}{\from{geometry.dtx}{package}}%
+ \file{geometry.cfg}{\from{geometry.dtx}{config}}%
+ \file{geometry-samples.tex}{\from{geometry.dtx}{samples}}%
+}
+\endbatchfile
]]
},
build_command = [[
texrocks install &&
lualatex --interaction=nonstopmode changes.txt
]],
install = {
conf = {
['../tex/latex/geometry/geometry.sty'] = 'geometry.sty',
['../doc/generic/geometry/geometry.pdf'] = 'geometry.pdf',
}
}
}