forked from Homebrew/legacy-homebrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requires SnowLeopard or newer version. got snippet from jstalk's form…
- Loading branch information
1 parent
ab96fab
commit 6beb01b
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,9 +1,21 @@ | |||
require 'formula' | require 'formula' | ||
|
|
||
class NeedsSnowLeopardOrNewer < Requirement | |||
def satisfied? | |||
MacOS.snow_leopard? | |||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fabiomcosta
Author
Owner
|
|||
end | |||
|
|||
def message | |||
"phantomjs requires Mac OS X 10.6 (Snow Leopard) or newer." | |||
end | |||
end | |||
|
|||
class Phantomjs < Formula | class Phantomjs < Formula | ||
url "http://phantomjs.googlecode.com/files/phantomjs-1.5.0-macosx-static.zip" | url "http://phantomjs.googlecode.com/files/phantomjs-1.5.0-macosx-static.zip" | ||
homepage 'http://www.phantomjs.org/' | homepage 'http://www.phantomjs.org/' | ||
sha1 'b87152ce691e7ed1937d30f86bc706a408d47f64' | sha1 'b87152ce691e7ed1937d30f86bc706a408d47f64' | ||
|
|||
depends_on NeedsSnowLeopardOrNewer.new | |||
|
|
||
def install | def install | ||
bin.install "bin/phantomjs" | bin.install "bin/phantomjs" | ||
|
2 comments
on commit 6beb01b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. The naming convention through me off. Sorry for the noise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotta tell you that it confused me too at start. I thought the same as you did.
Maybe you could change this line with
MacOS.version >= 10.6