aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/squirrel.rb
diff options
context:
space:
mode:
authorJack Nagel2013-03-24 21:09:38 -0500
committerJack Nagel2013-03-24 21:12:30 -0500
commit21ae58b8b4b1e85ed3a6bfb283530fc3e9ee3a3b (patch)
tree65c3a234635c97f2a0affdf866942ce6492002e1 /Library/Formula/squirrel.rb
parente527a029c3f7decb4c880296e693e793913cf4b2 (diff)
downloadhomebrew-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.rb8
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