/
Portfile
194 lines (166 loc) · 7.4 KB
/
Portfile
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup texlive 1.0
name texlive
version 2018
categories tex
maintainers {dports @drkp}
description TeX Live metaport
long_description TeX Live is an easy way to get up and running with TeX. \
It provides a comprehensive TeX system with binaries for most flavors \
of Unix, including GNU/Linux, and also Windows. It includes all the \
major TeX-related programs, macro packages, and fonts that are free \
software, including support for many languages around the world. \
\
This is a metaport that installs collections of TeX Live packages. \
See the variants list for options about which collections to install.
homepage https://www.tug.org/texlive/
platforms darwin
supported_archs noarch
# TeX Live consists of thousands of individual CTAN packages with
# different licenses -- usually some combination of the GPL, LaTeX
# Project Public License, or plain old public domain -- but all of
# them should be redistributable in source or binary form, which is
# what we care about. See http://www.tug.org/texlive/LICENSE.TL
#
# (Actually, *this* port is just a metaport and doesn't install
# anything.)
license Permissive
distfiles
use_configure no
build {}
set scheme ""
set scheme_desc ""
proc add_notes {} {
global scheme scheme_desc
notes "The \"${scheme}\" installation of TeX Live was selected. ${scheme_desc}\n"
if {$scheme != "full"} {
notes-append " \n"
notes-append "Additional TeX Live packages are available. To see a list, use 'port list texlive-* and not installed'. If you want a full installation (very large), reinstall this metaport with the +full variant."
}
}
destroot {
# Create a dummy file so the port can be successfully activated
xinstall -d ${destroot}${prefix}/share/doc/texlive
set docfile [open ${destroot}${prefix}/share/doc/texlive/README.${name}.txt "w"]
puts $docfile "TeX Live ${version} (MacPorts revision ${version}_${revision})\n"
puts $docfile "${long_description}\n"
puts $docfile "\nThe \"${scheme}\" scheme was installed. ${scheme_desc}\n"
puts $docfile "The other files in this directory list the versions and contents of each TeX Live port installed."
close $docfile
}
variant minimal \
description "Minimal installation scheme (plain TeX only; no LaTeX)" \
conflicts basic medium full {
set scheme "minimal"
set scheme_desc "This installation provides the bare minimum support for plain TeX; it does not include LaTeX or any add-on packages."
add_notes
depends_lib port:texlive-basic
}
variant basic \
description "Basic installation scheme for plain TeX or LaTeX documents" \
conflicts minimal medium full {
set scheme "basic"
set scheme_desc "This installation provides support for plain TeX and LaTeX, but no add-on packages."
add_notes
depends_lib port:texlive-basic \
port:texlive-latex
}
variant medium \
description "Medium installation scheme: plain, latex, recommended packages, some languages" \
conflicts minimal basic full {
set scheme "medium"
set scheme_desc "This is the standard installation containing basic and recommended packages for TeX, LaTeX, and ConTeXt, as well as support files for several common European languages."
add_notes
depends_lib port:texlive-basic \
port:texlive-bin-extra \
port:texlive-context \
port:texlive-fontutils \
port:texlive-fonts-recommended \
port:texlive-lang-czechslovak \
port:texlive-lang-english \
port:texlive-lang-european \
port:texlive-lang-french \
port:texlive-lang-german \
port:texlive-lang-italian \
port:texlive-lang-polish \
port:texlive-lang-portuguese \
port:texlive-lang-spanish \
port:texlive-latex \
port:texlive-latex-recommended \
port:texlive-luatex \
port:texlive-math-science \
port:texlive-metapost \
port:texlive-plain-generic \
port:texlive-xetex
if {![variant_isset "doc"]} {
texlive.removedocdepends
}
}
variant full \
description "Full installation scheme (very large!)" \
conflicts minimal basic medium {
set scheme "full"
set scheme_desc "This is a full installation of all TeX Live packages, including all languages and their associated documentation."
add_notes
depends_lib port:texlive-basic \
port:texlive-bibtex-extra \
port:texlive-bin-extra \
port:texlive-context \
port:texlive-fonts-extra \
port:texlive-fonts-recommended \
port:texlive-fontutils \
port:texlive-formats-extra \
port:texlive-games \
port:texlive-humanities \
port:texlive-lang-arabic \
port:texlive-lang-chinese \
port:texlive-lang-cjk \
port:texlive-lang-cyrillic \
port:texlive-lang-czechslovak \
port:texlive-lang-english \
port:texlive-lang-european \
port:texlive-lang-french \
port:texlive-lang-german \
port:texlive-lang-greek \
port:texlive-lang-italian \
port:texlive-lang-japanese \
port:texlive-lang-korean \
port:texlive-lang-other \
port:texlive-lang-polish \
port:texlive-lang-portuguese \
port:texlive-lang-spanish \
port:texlive-latex \
port:texlive-latex-extra \
port:texlive-latex-recommended \
port:texlive-luatex \
port:texlive-math-science \
port:texlive-metapost \
port:texlive-music \
port:texlive-pictures \
port:texlive-plain-generic \
port:texlive-pstricks \
port:texlive-publishers \
port:texlive-xetex
if {![variant_isset "doc"]} {
texlive.removedocdepends
}
}
variant letter description {Set paper format to letter} {
post-activate {
system "texconfig-sys paper letter"
}
}
# These variants are mainly for the underlying texmf ports; list them
# here so they get shown in 'port variants texlive'
variant doc description {Install documentation} { }
variant src description {Install TeX source} { }
default_variants +doc
if {![variant_isset minimal]
&& ![variant_isset basic]
&& ![variant_isset full]} {
default_variants-append +medium
}
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex "Current release: TeX Live (\[0-9\]+) "