1 cask :v1 => 'programmer-dvorak' do
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',
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*',
19 if MacOS.release >= :mavericks
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*'