aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilas Sewell2014-01-17 19:58:34 -0500
committerMike McQuaid2014-01-18 09:27:30 +0000
commitc920de9de678be41daf98ed407a8897f394b4277 (patch)
treebbb3d203f469a08064ed0a63cd4d4ef55cd8be10
parent7acb9a0aacbe049506011f3f8c6e3b6e64fca592 (diff)
downloadhomebrew-c920de9de678be41daf98ed407a8897f394b4277.tar.bz2
t1lib: use share.install instead of cp_r
Closes #26005. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/t1lib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/t1lib.rb b/Library/Formula/t1lib.rb
index 5b3efcdd4..e0fb289d4 100644
--- a/Library/Formula/t1lib.rb
+++ b/Library/Formula/t1lib.rb
@@ -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