Skip to content

Commit

Permalink
t1lib 5.1.2 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#26001.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
silas authored and MikeMcQuaid committed Jan 18, 2014
1 parent 025188d commit 7c85c1d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Formula/t1lib.rb
@@ -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

0 comments on commit 7c85c1d

Please sign in to comment.