diff options
| author | Robert Shaw | 2010-03-11 17:18:25 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-03-17 10:17:35 -0700 |
| commit | 446109daa52a0c9b531035b2f43a3325ad5b047f (patch) | |
| tree | 8e5e8298a36362a9cbd05a46472efa2da75e0499 /Library/Formula | |
| parent | da3d1042788e145457faa28a375fb5f1e9639fd1 (diff) | |
| download | homebrew-446109daa52a0c9b531035b2f43a3325ad5b047f.tar.bz2 | |
New formula: sleepnow
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sleepnow.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/sleepnow.rb b/Library/Formula/sleepnow.rb new file mode 100644 index 000000000..358034111 --- /dev/null +++ b/Library/Formula/sleepnow.rb @@ -0,0 +1,21 @@ +require 'formula' + +class Sleepnow <Formula + url 'http://www.snoize.com/SleepNow/SleepNow.tar.gz' + version '20070603' # Jun 3 2007 source + homepage 'http://www.snoize.com/SleepNow/' + md5 'a9555e48d9719868dd9ec7ce1423861b' + + def install + Dir.chdir('Source') do + # Remove unneeded SDK reference + inreplace "SleepNow.xcodeproj/project.pbxproj", /SDKROOT.*$/, '' + + # Build binary + system "xcodebuild", "-target", "SleepNow", "-configuration", "Release", "ONLY_ACTIVE_ARCH=YES" + + # Install binary and rename to lowercase + bin.install 'build/Release/SleepNow' => 'sleepnow' + end + end +end |
