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/squirrel.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/squirrel.rb')
| -rw-r--r-- | Library/Formula/squirrel.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/squirrel.rb b/Library/Formula/squirrel.rb index 51ac4bdc9..e3fba8af1 100644 --- a/Library/Formula/squirrel.rb +++ b/Library/Formula/squirrel.rb @@ -13,11 +13,11 @@ class Squirrel < Formula doc.install Dir['doc/*.pdf'] doc.install %w[etc samples] # See: https://github.com/mxcl/homebrew/pull/9977 - (lib+'pkgconfig/libsquirrel.pc').write pkg_file + (lib+'pkgconfig/libsquirrel.pc').write pc_file end - def pkg_file; <<-EOS.undent - prefix=#{prefix} + def pc_file; <<-EOS.undent + prefix=#{opt_prefix} exec_prefix=${prefix} libdir=/${exec_prefix}/lib includedir=/${prefix}/include @@ -26,7 +26,7 @@ class Squirrel < Formula Name: libsquirrel Description: squirrel library - Version: 3.0.2 + Version: #{version} Requires: Libs: -L${libdir} -lsquirrel -lsqstdlib |
