From cdad04630fbcd6554082a6ddb4cf3156af72f10a Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Sat, 21 Jan 2012 15:29:19 +0100 Subject: 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 --- Library/Formula/nss.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3