Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert 7 Casks to depends_on :macos #7760

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Casks/couleurs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@

app 'Couleurs.app'

caveats do
os_version_only '10.10'
end
depends_on :macos => '>= :yosemite'
end
16 changes: 12 additions & 4 deletions Casks/deeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@

app 'Deeper.app'

caveats do
os_version_only('10.4', '10.5', '10.6', '10.7', '10.8', '10.9', '10.10')
depends_on :macos => %w{
:tiger
:leopard
:snow_leopard
:lion
:mountain_lion
:mavericks
:yosemite
}

if [:leopard, :tiger].include? MacOS.version
puts 'Deeper only runs from an Administrator account.'
caveats do
if [:leopard, :tiger].include?(MacOS.version.to_sym)
puts 'Deeper only runs from an Administrator account on this version of OS X.'
end
end
end
3 changes: 2 additions & 1 deletion Casks/fenics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

app 'FEniCS.app'

depends_on :macos => '>= :mavericks'

caveats do
os_version_only '10.9', '10.10'
<<-EOS.undent
FEniCS is designed to work with the OS X system Python (v. 2.7.5 in OS X 10.9).

Expand Down
16 changes: 12 additions & 4 deletions Casks/maintenance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@

app 'Maintenance.app'

caveats do
os_version_only('10.4', '10.5', '10.6', '10.7', '10.8', '10.9', '10.10')
depends_on :macos => %w{
:tiger
:leopard
:snow_leopard
:lion
:mountain_lion
:mavericks
:yosemite
}

if [:leopard, :tiger].include? MacOS.version
puts 'Maintenance only runs from an Administrator account.'
caveats do
if [:leopard, :tiger].include?(MacOS.version.to_sym)
puts 'Maintenance only runs from an Administrator account on this version of OS X.'
end
end
end
3 changes: 2 additions & 1 deletion Casks/tunnelblick.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
uninstall :launchctl => 'net.tunnelblick.tunnelblick.LaunchAtLogin',
:quit => 'net.tunnelblick.tunnelblick'

depends_on :macos => '>= :tiger'

caveats do
os_version_only *%w(10.4 10.5 10.6 10.7 10.8 10.9 10.10)
<<-EOS.undent
For security reasons, Tunnelblick must be installed to /Applications,
and will request to be moved at launch.
Expand Down
5 changes: 2 additions & 3 deletions Casks/ubar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
license :unknown

app 'uBar.app'
caveats do
os_version_only '10.9', '10.10'
end

depends_on :macos => '>= :mavericks'
end
4 changes: 1 addition & 3 deletions Casks/zooom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@

uninstall :pkgutil => 'com.coderage.pkg.Zooom2'

caveats do
os_version_only '10.9', '10.10'
end
depends_on :macos => '>= :mavericks'
end