psftools 1.0.7

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Cody Boisclair 2011-06-23 09:56:30 -04:00 committed by Adam Vandenberg
parent 3c3a1a2e23
commit 674eca30fb

28
Formula/psftools.rb Normal file
View file

@ -0,0 +1,28 @@
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"
if File.exist? "PC8X8_9.fnt"
puts "PC8X8_9.fnt was extracted"
else
puts "PC8X8_9.fnt was not extracted"
raise "PC8X8_9.fnt was not extracted"
end
end
end
end