homebrew-core/Formula/wrangler.rb

44 lines
1.6 KiB
Ruby

class Wrangler < Formula
desc "Refactoring tool for Erlang with emacs and Eclipse integration"
homepage "https://www.cs.kent.ac.uk/projects/wrangler/Wrangler/"
revision 3
head "https://github.com/RefactoringTools/wrangler.git"
stable do
url "https://github.com/RefactoringTools/wrangler/archive/wrangler1.2.tar.gz"
sha256 "a6a87ad0513b95bf208c660d112b77ae1951266b7b4b60d8a2a6da7159310b87"
# upstream commit "Fix -spec's to compile in Erlang/OTP 19"
patch do
url "https://github.com/RefactoringTools/wrangler/commit/d81b888fd200dda17d341ec457d6786ef912b25d.patch?full_index=1"
sha256 "b7911206315c32ee08fc89776015cf5b26c97b6cb4f6eff0b73dcf2d583cfe31"
end
# upstream commit "fixes to make wrangler compile with R21"
patch do
url "https://github.com/RefactoringTools/wrangler/commit/1149d6150eb92dcfefb91445179e7566952e184f.patch?full_index=1"
sha256 "e84cba2ead98f47a16d9bb50182bbf3edf3ea27afefa36b78adc5afdf4aeabd5"
end
end
bottle do
cellar :any_skip_relocation
sha256 "8d67285352be09f209dba8e1fe678bb9e88a77c74e5178687f890cf5ba19c8ca" => :catalina
sha256 "1f122b48da35f344074d239e3d23fcf3d66e309dd0425062547d080bd3285a12" => :mojave
sha256 "b3aa1c943b1de15308be2cf7ac540daa95b4a843788a662fcdf34ed30e2ec29d" => :high_sierra
end
depends_on "erlang@22"
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
suffixtree = Dir.glob("#{lib}/erlang/*/*/*/suffixtree").shift
assert_predicate Pathname.new(suffixtree), :executable?, "suffixtree must be executable"
end
end