2012-07-01 01:37:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Editorconfig < Formula
|
|
|
|
homepage 'http://editorconfig.org'
|
2014-10-13 03:29:36 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/editorconfig/EditorConfig-C-Core/0.12.0/source/editorconfig-core-c-0.12.0.tar.gz'
|
|
|
|
sha1 'dfa96da823133fd925e7384f19d7f2acf44f50ba'
|
2012-07-01 01:37:11 +00:00
|
|
|
|
2014-10-13 03:29:36 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "9ecacf9c908945bcda00206afa77d1871b5f2f72" => :mavericks
|
|
|
|
sha1 "1b2365c812d65888725763d7dd4ec9cf7bb6c924" => :mountain_lion
|
|
|
|
sha1 "84b22980c00b6c779f6308561b06058f5e3d5b11" => :lion
|
|
|
|
end
|
|
|
|
|
2012-07-01 01:37:11 +00:00
|
|
|
depends_on 'cmake' => :build
|
2014-10-13 03:29:36 +00:00
|
|
|
depends_on 'pcre'
|
2012-07-01 01:37:11 +00:00
|
|
|
|
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
|
2014-10-13 03:29:36 +00:00
|
|
|
system "#{bin}/editorconfig", "--version"
|
2012-07-01 01:37:11 +00:00
|
|
|
end
|
|
|
|
end
|