homebrew-core/Formula/editorconfig.rb

32 lines
939 B
Ruby
Raw Normal View History

class Editorconfig < Formula
desc "Maintain consistent coding style between multiple editors"
homepage "http://editorconfig.org"
url "https://downloads.sourceforge.net/project/editorconfig/EditorConfig-C-Core/0.12.0/source/editorconfig-core-c-0.12.0.tar.gz"
sha256 "98c581d1dce24158160c9235190ce93eeae121f978aa84a89c7de258b5122e01"
2014-10-13 03:29:36 +00:00
bottle do
cellar :any
sha1 "9ecacf9c908945bcda00206afa77d1871b5f2f72" => :mavericks
sha1 "1b2365c812d65888725763d7dd4ec9cf7bb6c924" => :mountain_lion
sha1 "84b22980c00b6c779f6308561b06058f5e3d5b11" => :lion
end
option :universal
head "https://github.com/editorconfig/editorconfig-core-c.git"
2014-12-03 22:44:40 +00:00
depends_on "cmake" => :build
depends_on "pcre"
def install
ENV.universal_binary if build.universal?
system "cmake", ".", "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}"
system "make", "install"
end
2013-03-25 18:34:47 +00:00
test do
system "#{bin}/editorconfig", "--version"
end
end