homebrew-cask/Casks/mactex.rb

51 lines
2.3 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'mactex' do
version '20161009'
sha256 'b44873d445881900401d0e0eddccc78140b9ed51b538364889eb8529350d5bd7'
2016-06-07 22:22:14 +08:00
# 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}.pkg"
2016-08-11 07:47:30 +08:00
appcast 'https://www.tug.org/mactex/downloading.html',
checkpoint: 'dba7dc2fba9b2dd846cfba460f1121162c4f68d580dd2a485f7f929a1d7ec6be'
2015-01-06 10:37:18 +08:00
name 'MacTeX'
2015-06-29 14:32:18 +08:00
homepage 'https://www.tug.org/mactex/'
2016-06-07 22:22:14 +08:00
pkg "mactex-#{version}.pkg"
2014-11-22 22:12:42 +08:00
uninstall pkgutil: [
2016-06-07 22:22:14 +08:00
'org.tug.mactex.ghostscript9.19',
'org.tug.mactex.gui2016',
'org.tug.mactex.texlive2016',
],
delete: [
2016-06-07 22:22:14 +08:00
'/usr/local/texlive/2016',
'/Applications/TeX',
'/Library/PreferencePanes/TeXDistPrefPane.prefPane',
'/etc/paths.d/TeX',
'/etc/manpaths.d/TeX',
]
2016-06-07 22:22:14 +08:00
zap delete: [
'/usr/local/texlive/texmf-local',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/texshop.sfl',
'~/Library/Application Support/BibDesk',
2016-06-07 22:22:14 +08:00
'~/Library/Application Support/TeXShop',
'~/Library/Application Support/TeX Live Utility',
'~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/TeXShop.help',
'~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/edu.ucsd.cs.mmccrack.bibdesk.help',
'~/Library/Caches/edu.ucsd.cs.mmccrack.bibdesk',
'~/Library/Caches/fr.chachatelier.pierre.LaTeXiT',
'~/Library/Caches/TeXShop',
'~/Library/Preferences/edu.ucsd.cs.mmccrack.bibdesk.plist',
'~/Library/Preferences/Excalibur Preferences',
'~/Library/Preferences/fr.chachatelier.pierre.LaTeXiT.plist',
'~/Library/Preferences/TeXShop.plist',
'~/Library/Saved Application State/edu.bucknell.Excalibur.savedState',
'~/Library/texlive/2016',
2016-06-07 22:22:14 +08:00
'~/Library/TeXShop',
],
rmdir: [
'/usr/local/texlive',
'~/Library/texlive',
]
2013-10-17 19:43:58 +08:00
end