From fa2c2e046afc47c0004a8928e60fc71c8971a26f Mon Sep 17 00:00:00 2001 From: Andrew Short Date: Thu, 5 Nov 2015 23:08:52 +1100 Subject: [PATCH] luabind: write pkg-config file Closes Homebrew/homebrew#45721. Signed-off-by: Dominyk Tiller --- Formula/luabind.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Formula/luabind.rb b/Formula/luabind.rb index 23b5792c32..f46be0d970 100644 --- a/Formula/luabind.rb +++ b/Formula/luabind.rb @@ -58,6 +58,22 @@ class Luabind < Formula end args << "--prefix=#{prefix}" system "bjam", *args + + (lib/"pkgconfig/luabind.pc").write pc_file + end + + def pc_file; <<-EOS.undent + prefix=#{HOMEBREW_PREFIX} + exec_prefix=${prefix} + libdir=${exec_prefix}/lib + includedir=${exec_prefix}/include + + Name: luabind + Description: Library for bindings between C++ and Lua + Version: 0.9.1 + Libs: -L${libdir} -lluabind + Cflags: -I${includedir} + EOS end test do