dark-mode 1.0.1 (new formula)

Closes Homebrew/homebrew#37737.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Kevin Martensson 2015-03-15 13:36:07 +01:00 committed by Mike McQuaid
parent 606c3e649c
commit f5c3087670

21
Formula/dark-mode.rb Normal file
View file

@ -0,0 +1,21 @@
class DarkMode < Formula
homepage "https://github.com/sindresorhus/dark-mode"
url "https://github.com/sindresorhus/dark-mode/archive/1.0.1.tar.gz"
sha256 "7c71d865ad1a058c98909b442cdeef6b95be62313909c176a9e58db0a7512902"
head "https://github.com/sindresorhus/dark-mode.git"
depends_on :macos => :yosemite
depends_on :xcode => :build
def install
xcodebuild "install",
"SYMROOT=build",
"DSTROOT=#{prefix}",
"INSTALL_PATH=/bin",
"ONLY_ACTIVE_ARCH=YES"
end
test do
system "#{bin}/dark-mode", "--mode"
end
end