diff options
| author | Jack Nagel | 2012-05-07 23:23:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-05-07 23:48:04 -0500 |
| commit | bb3d53a6bdcfea099b8e7bec846ff7272f26f73c (patch) | |
| tree | 0e830f0497c51d2957291a72f309cb4616790d13 /Library/Formula/psftools.rb | |
| parent | 169e114ba7c2047c7fb2712407c20d77308c346a (diff) | |
| download | homebrew-bb3d53a6bdcfea099b8e7bec846ff7272f26f73c.tar.bz2 | |
psftools: use a subformula to download test file
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/psftools.rb')
| -rw-r--r-- | Library/Formula/psftools.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/psftools.rb b/Library/Formula/psftools.rb index edce24b71..d70979932 100644 --- a/Library/Formula/psftools.rb +++ b/Library/Formula/psftools.rb @@ -1,5 +1,10 @@ require 'formula' +class Pc8x8Font < Formula + url 'http://www.zone38.net/font/pc8x8.zip' + sha1 '4dbd149bb97b5b4f3464fcbda2387a479b09acb7' +end + 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/' @@ -14,10 +19,10 @@ class Psftools < Formula 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" + Pc8x8Font.new.brew do + system "#{bin}/fon2fnts pc8x8.fon" + raise unless File.exist? "PC8X8_9.fnt" + end end end end |
