Skip to content

Instantly share code, notes, and snippets.

@Akdeniz
Created June 5, 2020 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akdeniz/8cc42571e659ff5e4e11660e4b79fc68 to your computer and use it in GitHub Desktop.
Save Akdeniz/8cc42571e659ff5e4e11660e4b79fc68 to your computer and use it in GitHub Desktop.
class Aalib < Formula
desc "Portable ASCII art graphics library"
homepage "https://aa-project.sourceforge.io/aalib/"
url "https://downloads.sourceforge.net/aa-project/aalib-1.4rc5.tar.gz"
sha256 "fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee"
revision 1
bottle do
cellar :any_skip_relocation
sha256 "306da4a8cb39ef81eed8b81a7d1c1c7bd47405d8270d036dde9c07c630fa4ea3" => :catalina
sha256 "a19ebbf86362d9a90900dd0b4013ebed778cd8681c0b3ed122c8bbaa04b11cbe" => :mojave
sha256 "b2c5467ff9182645676381967b8dc89878f88900b19bed34ef432fd3257aa2a0" => :high_sierra
sha256 "2c2d05720ca991422e4c27e3f770c29024c5197871cba67404f4e72a3cfaf002" => :sierra
sha256 "9b3f19e5da28fb682aeb1fe40f1747d1b532490dd50262978aaefcb7afbc8804" => :el_capitan
sha256 "9e08dd4e3545b05353f3158e4e756c20a301bef295b72183e1fd5fb1d6d8e897" => :yosemite
end
# Fix malloc/stdlib issue on macOS
# Fix underquoted definition of AM_PATH_AALIB in aalib.m4
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/6e23dfb/aalib/1.4rc5.patch"
sha256 "54aeff2adaea53902afc2660afb9534675b3ea522c767cbc24a5281080457b2c"
end
def install
ENV.ncurses_define
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--infodir=#{info}",
"--enable-shared=yes",
"--enable-static=yes",
"--without-x",
"--with-ncurses-driver=yes",
"--with-ncurses=/usr/local/opt/ncurses"
system "make", "install"
end
test do
system "script", "-q", "/dev/null", bin/"aainfo"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment