57 lines
1.8 KiB
Ruby
57 lines
1.8 KiB
Ruby
cask 'mactex-no-gui' do
|
|
version '2019.0508'
|
|
sha256 'ce6fa6d3ec5a4058d5889cfc36bf634fd8a5aefb6601d10c853e5f5d76455f4a'
|
|
|
|
# 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-#{version.no_dots}.pkg"
|
|
appcast 'https://www.tug.org/mactex/downloading.html'
|
|
name 'MacTeX'
|
|
homepage 'https://www.tug.org/mactex/'
|
|
|
|
conflicts_with cask: [
|
|
'basictex',
|
|
'mactex',
|
|
]
|
|
depends_on formula: 'ghostscript'
|
|
depends_on macos: '>= :sierra'
|
|
|
|
pkg "mactex-#{version.no_dots}.pkg",
|
|
choices: [
|
|
{
|
|
# TeXLive
|
|
'choiceIdentifier' => 'choice1',
|
|
'choiceAttribute' => 'selected',
|
|
'attributeSetting' => 1,
|
|
},
|
|
{
|
|
# GUI-Applications
|
|
'choiceIdentifier' => 'choice2',
|
|
'choiceAttribute' => 'selected',
|
|
'attributeSetting' => 0,
|
|
},
|
|
{
|
|
# Ghostscript
|
|
'choiceIdentifier' => 'choice3',
|
|
'choiceAttribute' => 'selected',
|
|
'attributeSetting' => 0,
|
|
},
|
|
]
|
|
|
|
uninstall pkgutil: "org.tug.mactex.texlive#{version.major}",
|
|
delete: [
|
|
"/usr/local/texlive/#{version.major}",
|
|
'/Library/TeX',
|
|
'/etc/paths.d/TeX',
|
|
'/etc/manpaths.d/TeX',
|
|
]
|
|
|
|
zap trash: [
|
|
'/usr/local/texlive/texmf-local',
|
|
"~/Library/texlive/#{version.major}",
|
|
],
|
|
rmdir: [
|
|
'/usr/local/texlive',
|
|
'~/Library/texlive',
|
|
]
|
|
end
|