forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasictex.rb
41 lines (34 loc) · 1.34 KB
/
basictex.rb
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
cask 'basictex' do
version '2020.0407'
sha256 'c6a27c95a8af3bc26121cc3be415f3fc7120ffaa4ff4c1a860a7fe9fe78ac31e'
# mirror.ctan.org/systems/mac/mactex/ was verified as official when first introduced to the cask
url "http://mirror.ctan.org/systems/mac/mactex/mactex-basictex-#{version.no_dots}.pkg"
name 'BasicTeX'
homepage 'https://www.tug.org/mactex/morepackages.html'
conflicts_with cask: [
'mactex-no-gui',
'mactex',
]
depends_on macos: '>= :high_sierra'
pkg "mactex-basictex-#{version.no_dots}.pkg"
uninstall pkgutil: "org.tug.mactex.basictex#{version.major}",
delete: [
"/usr/local/texlive/#{version.major}basic",
'/etc/paths.d/TeX',
'/etc/manpaths.d/TeX',
'/Library/TeX',
]
zap trash: [
'/usr/local/texlive/texmf-local',
"~/Library/texlive/#{version.major}basic",
],
rmdir: [
'/usr/local/texlive',
'~/Library/texlive',
]
caveats <<~EOS
You must restart your terminal window for the installation of MacTex CLI tools to take effect.
Alternatively, Bash and Zsh users can run the command:
eval "$(/usr/libexec/path_helper)"
EOS
end