31 lines
1.1 KiB
Ruby
31 lines
1.1 KiB
Ruby
class GnustepMake < Formula
|
|
desc "Basic GNUstep Makefiles"
|
|
homepage "http://gnustep.org"
|
|
url "http://ftpmain.gnustep.org/pub/gnustep/core/gnustep-make-2.8.0.tar.gz"
|
|
sha256 "9fce2942dd945c103df37d668dd5fff650b23351b25a650428f6f59133f5ca5d"
|
|
license "GPL-3.0"
|
|
|
|
livecheck do
|
|
url "http://ftpmain.gnustep.org/pub/gnustep/core/"
|
|
regex(/href=.*?gnustep-make[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "0112f9b5cc350a2e8efc7eff2ea1b3e0b13e62877ce02592eac34052b33de00f" => :catalina
|
|
sha256 "4025644721c7902db42e5f63a1d8980056b809bdab7237289b92381e82492cca" => :mojave
|
|
sha256 "ff2edab383602c3449f074284f992567b0d072a3a442be898be21da0d484d3c3" => :high_sierra
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--with-config-file=#{prefix}/etc/GNUstep.conf",
|
|
"--enable-native-objc-exceptions"
|
|
system "make", "install", "tooldir=#{libexec}"
|
|
end
|
|
|
|
test do
|
|
assert_match shell_output("#{libexec}/gnustep-config --variable=CC").chomp, ENV.cc
|
|
end
|
|
end
|