aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorKevin Martensson2015-03-15 13:36:07 +0100
committerMike McQuaid2015-03-15 16:13:53 +0000
commit9b15fffdb0f1abe556a5153ad11a6ff40f16b265 (patch)
tree7f3d69df5a5659688ced9db193e6dcd12afbd3f3 /Library
parentad9638ddc3ce122205c54898aaa377deec3928e1 (diff)
downloadhomebrew-9b15fffdb0f1abe556a5153ad11a6ff40f16b265.tar.bz2
dark-mode 1.0.1 (new formula)
Closes #37737. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/dark-mode.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/dark-mode.rb b/Library/Formula/dark-mode.rb
new file mode 100644
index 000000000..2ab18f903
--- /dev/null
+++ b/Library/Formula/dark-mode.rb
@@ -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