homebrew-core/Formula/eg.rb

42 lines
2.3 KiB
Ruby

class Eg < Formula
desc "Expert Guide. Norton Guide Reader For GNU/Linux"
homepage "https://github.com/davep/eg"
url "https://github.com/davep/eg/archive/v1.02.tar.gz"
sha256 "6b73fff51b5cf82e94cdd60f295a8f80e7bbb059891d4c75d5b1a6f0c5cc7003"
license "GPL-2.0"
head "https://github.com/davep/eg.git", branch: "master"
bottle do
sha256 arm64_ventura: "be6bd513bea9e8468a72127b84cb49d0ab0dc1d061c9fa42e799613ebb007357"
sha256 arm64_monterey: "e2612dfd6d458297a3c8b0b405ff7663150c28f5a7665e3b69158d61da5e80be"
sha256 arm64_big_sur: "0f83d25f62f00b9a2e5170e8c33c1744476a193c54f174c6070d03ac80b18eaa"
sha256 ventura: "7934ccf9ab53a286897f8bf177884685ab0ea5ca2db8918428643b3bb8f54067"
sha256 monterey: "038f9c8d57195f049357e2baa6b001f04bd6946e697f89a932530db05e3e52c8"
sha256 big_sur: "cde213a2d4559ebbe2b3c964735e39bb4389eff052105d789f72cbabf9c4189d"
sha256 catalina: "82c5cb9c305f5bcda5af0bac6143b6dec9798b7b301c17249e769e4018322225"
sha256 mojave: "d48319623e66719275970f0f2c40ded729720e134b5e93b9ff3e871ee0903807"
sha256 high_sierra: "4955ef20bd0d41b433f077784ca1a9d96a40eb2e6f7840c70f308b60d1fc553d"
sha256 sierra: "307a0ce0f1514288179dbbc56fdac3de02100c80e8c57b1abedcab5cd0cff458"
sha256 el_capitan: "500a97f229b78ab83b97591d9276f7d9e1e4ce4d392f2530f5c8a9f10543b469"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b56cf6712f27d8ec7ef757e04232e7d67921566701656a983a4eedcba812843f"
end
depends_on "s-lang"
def install
inreplace "eglib.c", "/usr/share/", "#{etc}/"
bin.mkpath
man1.mkpath
system "make"
system "make", "install", "BINDIR=#{bin}", "MANDIR=#{man}", "NGDIR=#{etc}/norton-guides"
end
test do
# It will return a non-zero exit code when called with any option
# except a filename, but will return success if the file doesn't
# exist, without popping into the UI - we're exploiting this here.
ENV["TERM"] = "xterm"
system bin/"eg", "not_here.ng"
end
end