homebrew-core/Formula/editorconfig.rb

21 lines
551 B
Ruby
Raw Normal View History

require 'formula'
class Editorconfig < Formula
homepage 'http://editorconfig.org'
url 'https://downloads.sourceforge.net/project/editorconfig/EditorConfig-C-Core/0.11.5/source/editorconfig-core-c-0.11.5.tar.gz'
sha1 '2fe9df54d49c17d7e62c3996f4095afcd79d4d28'
depends_on 'cmake' => :build
head 'https://github.com/editorconfig/editorconfig-core-c.git', :branch => 'master'
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"
end
end