mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-16 22:06:43 -06:00
* fill in functionality for the `depends_on :arch` stub * de-document `caveats` method `arch_only`
22 lines
640 B
Ruby
22 lines
640 B
Ruby
cask :v1test => 'with-caveats' do
|
|
version '1.2.3'
|
|
sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
|
|
|
|
url TestHelper.local_binary_url('caffeine.zip')
|
|
homepage 'http://example.com/local-caffeine'
|
|
|
|
app 'Caffeine.app'
|
|
# simple string is evaluated at compile-time
|
|
caveats <<-EOS.undent
|
|
Here are some things you might want to know.
|
|
EOS
|
|
# do block is evaluated at install-time
|
|
caveats do
|
|
"Cask token: #{token}"
|
|
end
|
|
# a do block may print and use a DSL
|
|
caveats do
|
|
puts 'Custom text via puts followed by DSL-generated text:'
|
|
path_environment_variable('/custom/path/bin')
|
|
end
|
|
end
|