cut v0.52.1
[Homebrew/homebrew-cask-versions.git] / Casks / programmer-dvorak.rb
blob50d114fa57d03762167dd34196639e8e4e174718
1 cask :v1 => 'programmer-dvorak' do
2   version '1.2b9'
3   sha256 '36e51a0ee3ece99de99f2983e14beb415f74d9ae4726093cb60463cc206295e9'
5   url "http://www.kaufmann.no/downloads/macos/ProgrammerDvorak-#{version.gsub('.','_')}.pkg.zip"
6   homepage 'http://kaufmann.no/roland/dvorak/'
7   license :unknown    # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
9   pkg 'Programmer Dvorak v1.2.pkg'
11   uninstall :pkgutil => 'com.apple.keyboardlayout.Programmer Dvorak',
12             :delete => [
13                         '/Library/Keyboard Layouts/Programmer Dvorak.bundle/',
14                         # todo these will not work because the glob will not be expanded
15                         '/Library/Caches/com.apple.IntlDataCache*',
16                         '/System/Library/Caches/com.apple.IntlDataCache.le*',
17                         '/private/var/folders/*/*/-Caches-/com.apple.IntlDataCache.le*',
18                        ]
19   if MacOS.release >= :mavericks
20     postflight do
21       # clear the layout cache before new layouts are recognized
22       # todo this will not work because the glob will not be expanded
23       system '/bin/rm', '-f', '--', '/System/Library/Caches/com.apple.IntlDataCache.le*'
24     end
25   end
26 end