aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libspotify.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/libspotify.rb')
-rw-r--r--Library/Formula/libspotify.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/Library/Formula/libspotify.rb b/Library/Formula/libspotify.rb
index 6d3782bf4..300f2bf35 100644
--- a/Library/Formula/libspotify.rb
+++ b/Library/Formula/libspotify.rb
@@ -6,17 +6,10 @@ class Libspotify <Formula
homepage 'http://developer.spotify.com/en/libspotify/overview/'
md5 'a97552130df26b1aa2228adcf8d4210b'
- def inc
- include + 'libspotify'
- end
- def pc
- lib+'pkgconfig/libspotify.pc'
- end
-
def install
prefix.install 'share'
- inc.install "libspotify.framework/Versions/#{version}/Headers/api.h"
- lib.install "libspotify.framework/Versions/#{version}/libspotify" => 'libspotify.0.0.4.dylib'
+ (include+'libspotify').install "libspotify.framework/Versions/#{version}/Headers/api.h"
+ (include+'libspotify').install "libspotify.framework/Versions/#{version}/libspotify" => 'libspotify.0.0.4.dylib'
doc.install Dir['doc/*']
cd lib
@@ -27,7 +20,7 @@ class Libspotify <Formula
"#{HOMEBREW_PREFIX}/lib/libspotify.#{version}.dylib",
"libspotify.dylib"
- pc.write pc_content
+ (lib+'pkgconfig/libspotify.pc').write pc_content
end
def pc_content; <<-EOS.undent