diff options
| author | Harald Fernengel | 2012-01-21 15:29:19 +0100 | 
|---|---|---|
| committer | Jack Nagel | 2012-02-01 17:27:33 -0600 | 
| commit | cdad04630fbcd6554082a6ddb4cf3156af72f10a (patch) | |
| tree | 3963a606e129b7e373cdd132818baff2f48118a4 /Library/Formula/nss.rb | |
| parent | b35dde24db02ed332425ac7b3fe6cfb942c35410 (diff) | |
| download | homebrew-cdad04630fbcd6554082a6ddb4cf3156af72f10a.tar.bz2 | |
nss: install pkg-config file
Some configure scripts are checking for nss via pkg-config since most
Linux distros seem to add that to their package.
Closes #9705.
Note: upstream has been asked several times over the last few years to
provide pkg-config files, but nothing has come of it.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/nss.rb')
| -rw-r--r-- | Library/Formula/nss.rb | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/nss.rb b/Library/Formula/nss.rb index 199fc9846..db2e5ff94 100644 --- a/Library/Formula/nss.rb +++ b/Library/Formula/nss.rb @@ -44,6 +44,8 @@ class Nss < Formula      Dir['mozilla/dist/Darwin*/lib/*'].each do |file|        cp file, lib      end + +    (lib+'pkgconfig/nss.pc').write pkg_file    end    def test @@ -54,4 +56,19 @@ class Nss < Formula        system "certutil -L -d #{Dir.getwd}"      end    end + +  def pkg_file; <<-EOF +prefix=#{HOMEBREW_PREFIX} +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include/nss + +Name: NSS +Description: Mozilla Network Security Services +Version: 3.12.10 +Requires: nspr +Libs: -L${libdir} -lnss3 -lnssutil3 -lsmime3 -lssl3 +Cflags: -I${includedir} +EOF +  end  end  | 
