diff options
| author | Jack Nagel | 2013-03-24 21:09:38 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-24 21:12:30 -0500 |
| commit | 21ae58b8b4b1e85ed3a6bfb283530fc3e9ee3a3b (patch) | |
| tree | 65c3a234635c97f2a0affdf866942ce6492002e1 /Library/Formula/libspotify.rb | |
| parent | e527a029c3f7decb4c880296e693e793913cf4b2 (diff) | |
| download | homebrew-21ae58b8b4b1e85ed3a6bfb283530fc3e9ee3a3b.tar.bz2 | |
Fix some issues with generated pc files
- Use #opt_prefix instead of #prefix or HOMEBREW_PREFIX
- Use #version rather than hardcoded strings or @version
- Unify pc file method naming
- Use String#undent
Closes #18695.
Diffstat (limited to 'Library/Formula/libspotify.rb')
| -rw-r--r-- | Library/Formula/libspotify.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/libspotify.rb b/Library/Formula/libspotify.rb index 5df2b203c..fae30f80b 100644 --- a/Library/Formula/libspotify.rb +++ b/Library/Formula/libspotify.rb @@ -17,11 +17,11 @@ class Libspotify < Formula ln_s "libspotify.12.1.51.dylib", "libspotify.12.dylib" end - (lib+'pkgconfig/libspotify.pc').write pc_content + (lib+'pkgconfig/libspotify.pc').write pc_file end - def pc_content; <<-EOS.undent - prefix=#{HOMEBREW_PREFIX} + def pc_file; <<-EOS.undent + prefix=#{opt_prefix} exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include |
