aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSindre Sorhus2012-07-01 03:37:11 +0200
committerAdam Vandenberg2012-10-02 11:30:01 -0700
commitf6caf3dc79907ba1afaf7f9bbc8cdae31c71ca51 (patch)
tree4663cbb0f2aed98c555e5aaa6dd4ec5b191eb79a /Library
parentf92023cbdaad1d34932dad6ea87e7277e7b7e051 (diff)
downloadhomebrew-f6caf3dc79907ba1afaf7f9bbc8cdae31c71ca51.tar.bz2
EditorConfig 0.10
Closes #13132. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/editorconfig.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/editorconfig.rb b/Library/Formula/editorconfig.rb
new file mode 100644
index 000000000..0adfa74eb
--- /dev/null
+++ b/Library/Formula/editorconfig.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Editorconfig < Formula
+ homepage 'http://editorconfig.org'
+ url 'https://github.com/editorconfig/editorconfig-core/tarball/v0.10.0'
+ sha1 'afae2e81cf130a0d1f9fbbcdd5e2ef5953af8bdc'
+
+ depends_on 'cmake' => :build
+
+ def install
+ system "cmake", ".", "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}"
+ system "make install"
+ end
+
+ def test
+ system "editorconfig"
+ end
+end