Skip to content

Commit b3e5c59

Browse files
committed
Added SnoreGrowl.
1 parent d98c4ea commit b3e5c59

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

snoregrowl.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
require 'formula'
2+
3+
class Snoregrowl < Formula
4+
head 'git://github.com/Snorenotify/SnoreGrowl.git'
5+
url 'https://github.com/Snorenotify/SnoreGrowl/archive/v0.4.0.tar.gz'
6+
sha1 '16b84d2fb673438c8250cefd95f7e4c145e4cf22'
7+
8+
depends_on 'cmake' => :build
9+
depends_on 'qt'
10+
11+
def install
12+
13+
if MacOS.version >= 10.9
14+
sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"
15+
cfl = "CFLAGS=\"-mmacosx-version-min=10.9\""
16+
cxxfl = "CXXFLAGS=\"-mmacosx-version-min=10.9\""
17+
elsif MacOS.version >= 10.8
18+
sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
19+
cfl = "CFLAGS=\"-mmacosx-version-min=10.8\""
20+
cxxfl = "CXXFLAGS=\"-mmacosx-version-min=10.8\""
21+
else
22+
sdk = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
23+
cfl = "CFLAGS=\"-mmacosx-version-min=10.7\""
24+
cxxfl = "CXXFLAGS=\"-mmacosx-version-min=10.7\""
25+
end
26+
27+
exp = "export #{cfl}; export #{cxxfl}; export SDKROOT=#{sdk}"
28+
29+
system "#{exp}; cmake . #{std_cmake_parameters}"
30+
system "#{exp}; make install"
31+
end
32+
end

0 commit comments

Comments
 (0)