2011-03-10 05:11:03 +00:00
|
|
|
class Aalib < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Portable ASCII art graphics library"
|
2017-02-19 00:32:57 +00:00
|
|
|
homepage "https://aa-project.sourceforge.io/aalib/"
|
2015-07-19 09:23:56 +00:00
|
|
|
url "https://downloads.sourceforge.net/aa-project/aalib-1.4rc5.tar.gz"
|
|
|
|
sha256 "fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee"
|
2017-05-14 17:53:18 +00:00
|
|
|
revision 1
|
2009-12-29 06:10:45 +00:00
|
|
|
|
2014-07-03 12:32:20 +00:00
|
|
|
bottle do
|
2015-09-21 21:13:34 +00:00
|
|
|
cellar :any_skip_relocation
|
2017-05-14 19:10:56 +00:00
|
|
|
sha256 "2c2d05720ca991422e4c27e3f770c29024c5197871cba67404f4e72a3cfaf002" => :sierra
|
|
|
|
sha256 "9b3f19e5da28fb682aeb1fe40f1747d1b532490dd50262978aaefcb7afbc8804" => :el_capitan
|
|
|
|
sha256 "9e08dd4e3545b05353f3158e4e756c20a301bef295b72183e1fd5fb1d6d8e897" => :yosemite
|
2014-07-03 12:32:20 +00:00
|
|
|
end
|
|
|
|
|
2016-10-02 05:53:52 +00:00
|
|
|
# Fix malloc/stdlib issue on macOS
|
2013-03-14 19:33:31 +00:00
|
|
|
# Fix underquoted definition of AM_PATH_AALIB in aalib.m4
|
2017-05-14 17:53:18 +00:00
|
|
|
patch do
|
|
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/6e23dfb/aalib/1.4rc5.patch"
|
|
|
|
sha256 "54aeff2adaea53902afc2660afb9534675b3ea522c767cbc24a5281080457b2c"
|
|
|
|
end
|
2012-06-07 01:35:12 +00:00
|
|
|
|
2009-12-29 06:10:45 +00:00
|
|
|
def install
|
|
|
|
ENV.ncurses_define
|
2012-06-07 01:35:12 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2012-02-25 23:45:28 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--infodir=#{info}",
|
2012-06-07 01:35:12 +00:00
|
|
|
"--enable-shared=yes",
|
2013-04-05 16:56:21 +00:00
|
|
|
"--enable-static=yes",
|
|
|
|
"--without-x"
|
2015-07-19 09:23:56 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-07-19 09:50:39 +00:00
|
|
|
system "script", "-q", "/dev/null", bin/"aainfo"
|
2009-12-29 06:10:45 +00:00
|
|
|
end
|
|
|
|
end
|