aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCody Boisclair2011-06-23 09:56:30 -0400
committerAdam Vandenberg2011-11-25 22:42:58 -0800
commit516537a36937cc3baedb5d222eaca2d4f22ef614 (patch)
tree24a88abbbf0878aaa936d2c9c4fd0f14b315eb71 /Library
parent3aa2446ca4832c73b873afe3f2f0ca03be1a37c1 (diff)
downloadhomebrew-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.rb28
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