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:
parent
1da13f0e7d
commit
0a40fd6a58
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue