t1lib 5.1.2 (new formula)

Closes Homebrew/homebrew#26001.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
Silas Sewell 2014-01-17 15:59:02 -05:00 committed by Mike McQuaid
parent 025188d823
commit 7c85c1d7c5
1 changed files with 20 additions and 0 deletions

20
Formula/t1lib.rb Normal file
View File

@ -0,0 +1,20 @@
require 'formula'
class T1lib < Formula
homepage 'http://www.t1lib.org/'
url 'http://www.ibiblio.org/pub/Linux/libs/graphics/t1lib-5.1.2.tar.gz'
sha1 '4b4fc22c8688eefaaa8cfc990f0039f95f4287de'
def install
system './configure', "--prefix=#{prefix}"
system 'make', 'without_doc'
system 'make', 'install'
cp_r 'Fonts', "#{share}/t1lib/fonts"
end
test do
cp "#{share}/t1lib/fonts/type1/bchri.pfb", 'test.pfb'
system "#{bin}/type1afm", 'test.pfb'
assert File.exist? 'test.afm'
end
end