38 lines
2.1 KiB
Ruby
38 lines
2.1 KiB
Ruby
class Treecc < Formula
|
|
desc "Aspect-oriented approach to writing compilers"
|
|
homepage "https://gnu.org/software/dotgnu/treecc/treecc.html"
|
|
url "https://download.savannah.gnu.org/releases/dotgnu-pnet/treecc-0.3.10.tar.gz"
|
|
sha256 "5e9d20a6938e0c6fedfed0cabc7e9e984024e4881b748d076e8c75f1aeb6efe7"
|
|
license "GPL-2.0"
|
|
|
|
livecheck do
|
|
url "https://download.savannah.gnu.org/releases/dotgnu-pnet/"
|
|
regex(/href=.*?treecc[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "8a9f078361781eeb11f2a5f595c0728c6753af61f8b2876c390d469bde5f1467"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "55d7a609393fe94689f48ae77c7e5c579fcfd408fb3c1fc3ea265bbac0dc842f"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "b29736a869955071e87b8be7b9d8f7a36e1c2d4f52796e49bbef8d5c002147b6"
|
|
sha256 cellar: :any_skip_relocation, ventura: "225da2d6061f4bb879dfc442a62111ec9e181fb3a4730b4b35b9a7c108ae0322"
|
|
sha256 cellar: :any_skip_relocation, monterey: "e5df47b775de8602bf18db65da4a4eea2093d19fda212ea300c455b4ff899c5e"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "239d0728cb07d6376c1da25192595b472842acd775b7d95570786fac003ca10f"
|
|
sha256 cellar: :any_skip_relocation, catalina: "3a46948ef72e0801cab4767e1f0075d01ab8b7a8eb4b07a9a7e81d021c43e2fc"
|
|
sha256 cellar: :any_skip_relocation, mojave: "4e9b82d074d10eae24c0c7e95879435ec8896072669d826614f34213843bfe5e"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "c05c019775b00f92fe2ea47a02c999356105789b9aa5536c4356090ccbb9ba99"
|
|
sha256 cellar: :any_skip_relocation, sierra: "0b3e61d5a910222d170fcee80d094be0dcd2707b7bebc6d40667a8f25b4b2e5c"
|
|
sha256 cellar: :any_skip_relocation, el_capitan: "e74d23594113e594ad8021fe55b0f0f863fcd4b01140c3fd8b1a5f2bb6c8ad74"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "4dbfb97ace2365eaa60578f1d0c7ae29b9d30d1a445040df285b9b9ca4fce263"
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
bin.install "treecc"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/treecc", "-v"
|
|
end
|
|
end
|