homebrew-core/Formula/t1lib.rb
Silas Sewell 0a40fd6a58 t1lib: use share.install instead of cp_r
Closes Homebrew/homebrew#26005.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-18 09:27:30 +00:00

20 lines
515 B
Ruby

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'
share.install 'Fonts' => 'fonts'
end
test do
cp "#{share}/fonts/type1/bchri.pfb", 'test.pfb'
system "#{bin}/type1afm", 'test.pfb'
assert File.exist? 'test.afm'
end
end