t1lib: use share.install instead of cp_r

Closes Homebrew/homebrew#26005.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Silas Sewell 2014-01-17 19:58:34 -05:00 committed by Mike McQuaid
parent 1da13f0e7d
commit 0a40fd6a58

View file

@ -9,11 +9,11 @@ class T1lib < Formula
system './configure', "--prefix=#{prefix}"
system 'make', 'without_doc'
system 'make', 'install'
cp_r 'Fonts', "#{share}/t1lib/fonts"
share.install 'Fonts' => 'fonts'
end
test do
cp "#{share}/t1lib/fonts/type1/bchri.pfb", 'test.pfb'
cp "#{share}/fonts/type1/bchri.pfb", 'test.pfb'
system "#{bin}/type1afm", 'test.pfb'
assert File.exist? 'test.afm'
end