2012-07-01 01:37:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Editorconfig < Formula
|
|
|
|
homepage 'http://editorconfig.org'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/editorconfig/EditorConfig-C-Core/0.11.5/source/editorconfig-core-c-0.11.5.tar.gz'
|
2013-05-20 07:45:17 +00:00
|
|
|
sha1 '2fe9df54d49c17d7e62c3996f4095afcd79d4d28'
|
2012-07-01 01:37:11 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
2013-05-21 01:10:44 +00:00
|
|
|
head 'https://github.com/editorconfig/editorconfig-core-c.git', :branch => 'master'
|
|
|
|
|
2012-07-01 01:37:11 +00:00
|
|
|
def install
|
|
|
|
system "cmake", ".", "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-03-25 18:34:47 +00:00
|
|
|
test do
|
|
|
|
system "#{bin}/editorconfig"
|
2012-07-01 01:37:11 +00:00
|
|
|
end
|
|
|
|
end
|