2014-11-14 01:26:43 +08:00
|
|
|
cask :v1 => 'programmer-dvorak' do
|
2014-03-09 15:28:32 +08:00
|
|
|
version '1.2b9'
|
|
|
|
sha256 '36e51a0ee3ece99de99f2983e14beb415f74d9ae4726093cb60463cc206295e9'
|
2014-06-27 08:01:37 +08:00
|
|
|
|
2014-10-23 22:18:38 +08:00
|
|
|
url "http://www.kaufmann.no/downloads/macos/ProgrammerDvorak-#{version.gsub('.','_')}.pkg.zip"
|
2015-04-21 22:56:32 +08:00
|
|
|
name 'Programmer Dvorak'
|
2014-06-27 08:01:37 +08:00
|
|
|
homepage 'http://kaufmann.no/roland/dvorak/'
|
2014-12-20 21:46:59 +08:00
|
|
|
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
|
2014-06-27 08:01:37 +08:00
|
|
|
|
2014-09-10 23:37:05 +08:00
|
|
|
pkg 'Programmer Dvorak v1.2.pkg'
|
2014-11-22 22:12:44 +08:00
|
|
|
|
2014-03-09 15:28:32 +08:00
|
|
|
uninstall :pkgutil => 'com.apple.keyboardlayout.Programmer Dvorak',
|
2014-09-18 19:57:59 +08:00
|
|
|
:delete => [
|
2014-03-09 15:28:32 +08:00
|
|
|
'/Library/Keyboard Layouts/Programmer Dvorak.bundle/',
|
2014-10-04 22:06:57 +08:00
|
|
|
# todo these will not work because the glob will not be expanded
|
2014-03-09 15:28:32 +08:00
|
|
|
'/Library/Caches/com.apple.IntlDataCache*',
|
|
|
|
'/System/Library/Caches/com.apple.IntlDataCache.le*',
|
2014-09-18 19:57:59 +08:00
|
|
|
'/private/var/folders/*/*/-Caches-/com.apple.IntlDataCache.le*',
|
|
|
|
]
|
2014-12-11 00:55:21 +08:00
|
|
|
if MacOS.release >= :mavericks
|
2014-09-09 20:55:28 +08:00
|
|
|
postflight do
|
2014-03-09 15:28:32 +08:00
|
|
|
# clear the layout cache before new layouts are recognized
|
2014-10-04 22:06:57 +08:00
|
|
|
# todo this will not work because the glob will not be expanded
|
2014-08-19 22:37:52 +08:00
|
|
|
system '/bin/rm', '-f', '--', '/System/Library/Caches/com.apple.IntlDataCache.le*'
|
2014-03-09 15:28:32 +08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|