homebrew-core/Formula/figlet.rb

35 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Figlet < Formula
desc "Banner-like program prints strings as ASCII art"
homepage "http://www.figlet.org"
url "ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-2.2.5.tar.gz"
sha256 "bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d"
resource "contrib" do
url "ftp://ftp.figlet.org/pub/figlet/fonts/contributed.tar.gz"
sha256 "2c569e052e638b28e4205023ae717f7b07e05695b728e4c80f4ce700354b18c8"
2013-06-08 23:54:54 +00:00
end
resource "intl" do
url "ftp://ftp.figlet.org/pub/figlet/fonts/international.tar.gz"
sha256 "e6493f51c96f8671c29ab879a533c50b31ade681acfb59e50bae6b765e70c65a"
2013-06-08 23:54:54 +00:00
end
def install
2011-05-02 21:30:50 +00:00
share_fonts = share+"figlet/fonts"
share_fonts.install resource("contrib"), resource("intl")
2011-05-02 21:30:50 +00:00
chmod 0666, %w[Makefile showfigfonts]
man6.mkpath
bin.mkpath
system "make", "prefix=#{prefix}",
"DEFAULTFONTDIR=#{share_fonts}",
"MANDIR=#{man}",
"install"
end
test do
system "#{bin}/figlet", "-f", "larry3d", "hello, figlet"
2011-05-02 21:30:50 +00:00
end
end