aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-09 14:38:24 -0700
committerAdam Vandenberg2013-08-09 14:38:24 -0700
commit03593d0da0f6c85d6a1e518f3c40ca739ea5fde8 (patch)
tree0c9a034e8df6f440cc77c749a6823d30856bdbaf /Library/Formula
parent61227bf7ac209a93805d3ebde0224d6e8ded7fe6 (diff)
downloadhomebrew-03593d0da0f6c85d6a1e518f3c40ca739ea5fde8.tar.bz2
libraw: build packs out of separate folders
Downloading the two paths to the build root works, but clobbers libraw's own meta files. Build the packs out of separate folders to keep original meta files.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libraw.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/libraw.rb b/Library/Formula/libraw.rb
index 001eed832..4825dda66 100644
--- a/Library/Formula/libraw.rb
+++ b/Library/Formula/libraw.rb
@@ -26,14 +26,13 @@ class Libraw < Formula
depends_on 'little-cms2'
def install
- d = buildpath.dirname
- LibrawDemosaicGPL2.new.brew { d.install Dir['*'] }
- LibrawDemosaicGPL3.new.brew { d.install Dir['*'] }
+ LibrawDemosaicGPL2.new.brew { (buildpath/'gpl2').install Dir['*'] }
+ LibrawDemosaicGPL3.new.brew { (buildpath/'gpl3').install Dir['*'] }
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
- "--enable-demosaic-pack-gpl2=#{d}",
- "--enable-demosaic-pack-gpl3=#{d}"
+ "--enable-demosaic-pack-gpl2=#{buildpath}/gpl2",
+ "--enable-demosaic-pack-gpl3=#{buildpath}/gpl3"
system "make"
system "make install"
doc.install Dir['doc/*']