aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-09-27 14:22:30 -0500
committerJack Nagel2014-09-27 14:22:40 -0500
commit27f08c6389ae57b8cc407bfdde7d982791b147e3 (patch)
tree9fbf3dcffaf971fbc08ba7cec88727224dc83769 /Library/Formula
parentf9cd61b5647b3b9d4ce7fdbce1e3bdcf784e8bf3 (diff)
downloadhomebrew-27f08c6389ae57b8cc407bfdde7d982791b147e3.tar.bz2
netpbm: install pkgconfig file
Closes #32391.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/netpbm.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/netpbm.rb b/Library/Formula/netpbm.rb
index 03498ecb2..7c6b212b1 100644
--- a/Library/Formula/netpbm.rb
+++ b/Library/Formula/netpbm.rb
@@ -44,12 +44,20 @@ class Netpbm < Formula
ENV.deparallelize
system "make"
system "make", "package", "pkgdir=#{buildpath}/stage"
+
cd 'stage' do
+ inreplace "pkgconfig_template" do |s|
+ s.gsub! "@VERSION@", File.read("VERSION").sub("Netpbm ", "").chomp
+ s.gsub! "@LINKDIR@", lib
+ s.gsub! "@INCLUDEDIR@", include
+ end
+
prefix.install %w{ bin include lib misc }
# do man pages explicitly; otherwise a junk file is installed in man/web
man1.install Dir['man/man1/*.1']
man5.install Dir['man/man5/*.5']
lib.install Dir['link/*.a']
+ (lib/"pkgconfig").install "pkgconfig_template" => "netpbm.pc"
end
(bin/'doc.url').unlink