aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-05-03 09:21:08 -0700
committerAdam Vandenberg2013-05-03 09:21:22 -0700
commit5b7c8427f13f164ec17910a5fda3ab7ea0766e14 (patch)
tree389c711156afacc01602bdadd2ba1152f2594e45 /Library/Formula
parente0eb17cd44f2623957a263ca1ab600fac771a92c (diff)
downloadhomebrew-5b7c8427f13f164ec17910a5fda3ab7ea0766e14.tar.bz2
unar: fix install paths
Install the framework to Frameworks, and symlink the headers from there to include, instead of making a copy.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/unar.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/unar.rb b/Library/Formula/unar.rb
index 55ef5ed8d..d7ca257e9 100644
--- a/Library/Formula/unar.rb
+++ b/Library/Formula/unar.rb
@@ -21,12 +21,9 @@ class Unar < Formula
bin.install "./Release/unar", "./Release/lsar"
- # Copy the headers from the Framework to include as well
- # TODO - should they just be symlinked?
- (include/'libXADMaster').mkpath
- copy Dir["./Release/XADMaster.framework/Headers/*"], "#{include}/libXADMaster/"
-
- lib.install "./Release/libXADMaster.a" , "./Release/XADMaster.framework"
+ lib.install "./Release/libXADMaster.a"
+ (prefix/'Frameworks').install "./Release/XADMaster.framework"
+ (include/'libXADMaster').install_symlink Dir["#{prefix}/Frameworks/XADMaster.framework/Headers/*"]
cd "./Extra" do
man1.install "lsar.1", "unar.1"