diff options
| author | Cody Boisclair | 2011-06-23 09:56:30 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-11-25 22:42:58 -0800 |
| commit | 516537a36937cc3baedb5d222eaca2d4f22ef614 (patch) | |
| tree | 24a88abbbf0878aaa936d2c9c4fd0f14b315eb71 /Library | |
| parent | 3aa2446ca4832c73b873afe3f2f0ca03be1a37c1 (diff) | |
| download | homebrew-516537a36937cc3baedb5d222eaca2d4f22ef614.tar.bz2 | |
psftools 1.0.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/psftools.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/psftools.rb b/Library/Formula/psftools.rb new file mode 100644 index 000000000..c5fb01d4c --- /dev/null +++ b/Library/Formula/psftools.rb @@ -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 |
