2011-06-23 13:56:30 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-05-08 04:23:22 +00:00
|
|
|
class Pc8x8Font < Formula
|
|
|
|
url 'http://www.zone38.net/font/pc8x8.zip'
|
|
|
|
sha1 '4dbd149bb97b5b4f3464fcbda2387a479b09acb7'
|
|
|
|
end
|
|
|
|
|
2011-06-23 13:56:30 +00:00
|
|
|
class Psftools < Formula
|
|
|
|
homepage 'http://www.seasip.demon.co.uk/Unix/PSF/'
|
2013-01-29 05:05:52 +00:00
|
|
|
url 'http://www.seasip.info/Unix/PSF/psftools-1.0.7.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '4e8b2e7686532a25c18cacaeb90a8f0ed57a30c6'
|
2011-06-23 13:56:30 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2013-01-29 05:05:52 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2011-06-23 13:56:30 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-01-29 05:05:52 +00:00
|
|
|
test do
|
2011-06-23 13:56:30 +00:00
|
|
|
# The zip file has a fon in it, use fon2fnts to extrat to fnt
|
2013-01-29 05:05:52 +00:00
|
|
|
Pc8x8Font.new.brew do
|
|
|
|
system "#{bin}/fon2fnts", "pc8x8.fon"
|
|
|
|
raise unless File.exist? "PC8X8_9.fnt"
|
2011-06-23 13:56:30 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|