luabind: write pkg-config file

Closes Homebrew/homebrew#45721.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Andrew Short 2015-11-05 23:08:52 +11:00 committed by Dominyk Tiller
parent d177b69c42
commit fa2c2e046a

View file

@ -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