53 lines
1.7 KiB
Ruby
53 lines
1.7 KiB
Ruby
class Grace < Formula
|
|
desc "WYSIWYG 2D plotting tool for X11"
|
|
homepage "https://plasma-gate.weizmann.ac.il/Grace/"
|
|
url "https://deb.debian.org/debian/pool/main/g/grace/grace_5.1.25.orig.tar.gz"
|
|
sha256 "751ab9917ed0f6232073c193aba74046037e185d73b77bab0f5af3e3ff1da2ac"
|
|
license "GPL-2.0-only"
|
|
revision 3
|
|
|
|
livecheck do
|
|
url "https://deb.debian.org/debian/pool/main/g/grace/"
|
|
regex(/href=.*?grace[._-]v?(\d+(?:\.\d+)+)\.orig\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 "f428d5a0f0607ed81db8a68559d733212a328a08614eb47e4e18768de84e6673" => :big_sur
|
|
sha256 "ba476c55bdee47b52c7b0a1f5cc6fb54ceac945cc25b45095643afca91243f68" => :catalina
|
|
sha256 "7f9b574dd0e37c2f15a0c87df07959c7a634d1a7ec959305ce9a036ed4efdb9c" => :mojave
|
|
sha256 "b75a7e4b3abf5d83878cb5b5cd8d3eed30a17119af95fcac6e9852856a049ce1" => :high_sierra
|
|
end
|
|
|
|
depends_on "fftw"
|
|
depends_on "jpeg"
|
|
depends_on "libice"
|
|
depends_on "libpng"
|
|
depends_on "libsm"
|
|
depends_on "libx11"
|
|
depends_on "libxext"
|
|
depends_on "libxmu"
|
|
depends_on "libxp"
|
|
depends_on "libxpm"
|
|
depends_on "libxt"
|
|
depends_on "openmotif"
|
|
depends_on "pdflib-lite"
|
|
|
|
def install
|
|
ENV.O1 # https://github.com/Homebrew/homebrew/issues/27840#issuecomment-38536704
|
|
ENV.append "CFLAGS", "-Wno-implicit-function-declaration"
|
|
system "./configure", "--disable-debug",
|
|
"--prefix=#{prefix}",
|
|
"--enable-grace-home=#{prefix}"
|
|
system "make", "install"
|
|
share.install "fonts", "examples"
|
|
man1.install Dir["doc/*.1"]
|
|
doc.install Dir["doc/*"]
|
|
end
|
|
|
|
test do
|
|
system bin/"gracebat", share/"examples/test.dat"
|
|
assert_equal "12/31/1999 23:59:59.999",
|
|
shell_output("#{bin}/convcal -i iso -o us 1999-12-31T23:59:59.999").chomp
|
|
end
|
|
end
|