aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lsyncd.rb
diff options
context:
space:
mode:
authorJack Nagel2013-11-18 14:19:40 -0600
committerJack Nagel2013-11-18 14:20:29 -0600
commitff70b8aa82c9fcab8094ed7695f8fe8f9bfe964b (patch)
treebd5f429848f1062b703880386d7818908ed0fd85 /Library/Formula/lsyncd.rb
parent5b2a43fab15c2e3bce5e73a31e96423f87c20f80 (diff)
downloadhomebrew-ff70b8aa82c9fcab8094ed7695f8fe8f9bfe964b.tar.bz2
Exceptions *cannot* be raised in the DSL
Diffstat (limited to 'Library/Formula/lsyncd.rb')
-rw-r--r--Library/Formula/lsyncd.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/lsyncd.rb b/Library/Formula/lsyncd.rb
index e47e5e389..0ed6df12a 100644
--- a/Library/Formula/lsyncd.rb
+++ b/Library/Formula/lsyncd.rb
@@ -12,6 +12,9 @@ class Lsyncd < Formula
depends_on 'pkg-config' => :build
depends_on 'lua'
+ # This is an artificial requirement, the resource below is incomplete
+ depends_on :macos => :lion
+
resource 'xnu' do
# Note: Do not use MacOS::version -- the version number is not
# enough, we need the patch number as well.
@@ -41,11 +44,7 @@ class Lsyncd < Formula
when "10.9"
url "http://www.opensource.apple.com/tarballs/xnu/xnu-2422.1.72.tar.gz"
sha1 "c7bdc40396df3c51ece934c0e3b4a19b063ea34c"
- else
- # If raised, go to http://www.opensource.apple.com/ and find the XNU
- # version used by your version of OSX.
- raise Homebrew::InstallationError.new self, "No XNU version known for OSX #{osx_version}"
- end
+ end
end
def install