diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/editorconfig.rb | 18 |
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 |
