homebrew-core/Formula/psftools.rb
Jack Nagel 98889db723 psftools: clean up test
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-06 01:07:47 -05:00

23 lines
683 B
Ruby

require 'formula'
class Psftools < Formula
url 'http://www.seasip.info/Unix/PSF/psftools-1.0.7.tar.gz'
homepage 'http://www.seasip.demon.co.uk/Unix/PSF/'
md5 '159022aae93a797dbc2a01014acbd115'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--mandir=#{man}"
system "make install"
end
def test
# The zip file has a fon in it, use fon2fnts to extrat to fnt
mktemp do
curl "http://www.zone38.net/font/pc8x8.zip", "-O"
system "/usr/bin/unzip pc8x8.zip"
system "#{bin}/fon2fnts pc8x8.fon"
raise unless File.exist? "PC8X8_9.fnt"
end
end
end