41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
cask 'lilypond' do
|
|
version '2.18.2-1'
|
|
sha256 '0009bf234db6a598e30940ae9a5cef50ffe939992c9bf0c7959ecd9c0d179c80'
|
|
|
|
# linuxaudio.org/lilypond was verified as official when first introduced to the cask
|
|
url "http://download.linuxaudio.org/lilypond/binaries/darwin-x86/lilypond-#{version}.darwin-x86.tar.bz2"
|
|
appcast 'http://download.linuxaudio.org/lilypond/binaries/darwin-x86/',
|
|
checkpoint: 'c4bed67fabce3ea6b4929db72714173c5b98cac0b881108a9a35eee3764c6cd4'
|
|
name 'LilyPond'
|
|
homepage 'http://lilypond.org/'
|
|
|
|
app 'LilyPond.app'
|
|
|
|
binaries = %w[
|
|
abc2ly
|
|
convert-ly
|
|
lilypond
|
|
lilypond-book
|
|
musicxml2ly
|
|
]
|
|
|
|
binaries.each do |shimscript|
|
|
binary "#{staged_path}/#{shimscript}.wrapper.sh", target: shimscript
|
|
end
|
|
|
|
preflight do
|
|
binaries.each do |shimscript|
|
|
# shim script (https://github.com/caskroom/homebrew-cask/issues/18809)
|
|
IO.write "#{staged_path}/#{shimscript}.wrapper.sh", <<-EOS.undent
|
|
#!/bin/sh
|
|
exec '#{appdir}/LilyPond.app/Contents/Resources/bin/#{shimscript}' "$@"
|
|
EOS
|
|
end
|
|
end
|
|
|
|
zap delete: [
|
|
'~/Library/Preferences/org.lilypond.lilypond.plist',
|
|
'~/Library/Preferences/org.lilypond.lilypond.LSSharedFileList.plist',
|
|
]
|
|
end
|