diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-25 15:29:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-25 15:29:32 +0000 |
commit | 4d9a6ab181225f091ebcdf6b8ddb9b2bc75260fd (patch) | |
tree | 1f9ecc467c8b4db158fc292c3a4cf3cd4a7d9ea0 /tool | |
parent | a6ed06e51306ffe7311640040dade563419cb953 (diff) |
* Makefile.in (pkgconfig-data): create pkg-config metadata file.
* tool/rbinstall.rb: install pkg-config metadata file.
* template/ruby.pc.in: template of pkg-config metadata file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 0e9f39adbb..f4ea9cc1ea 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -300,6 +300,8 @@ enable_shared = CONFIG["ENABLE_SHARED"] == 'yes' dll = CONFIG["LIBRUBY_SO"] lib = CONFIG["LIBRUBY"] arc = CONFIG["LIBRUBY_A"] +major = CONFIG["MAJOR"] +minor = CONFIG["MINOR"] install?(:local, :arch, :bin, :'bin-arch') do prepare "binary commands", bindir @@ -336,6 +338,14 @@ install?(:local, :arch, :lib) do end end +install?(:local, :arch, :data) do + pc = CONFIG["ruby_pc"] + if File.exist?(pc) + prepare "pkgconfig data", pkgconfigdir = File.join(libdir, "pkgconfig") + install pc, pkgconfigdir, :mode => $data_mode + end +end + install?(:ext, :arch, :'ext-arch') do prepare "extension objects", archlibdir noinst = %w[-* -*/] | (CONFIG["no_install_files"] || "").split |