diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-04-29 19:49:43 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-04-29 19:49:43 -0500 |
commit | 2aca4e8019650fe6d7b553bea1db91c745743d89 (patch) | |
tree | 472ddd796111d8697eeddf8eee23cb170db7720f /dev-ruby/facter | |
parent | net-fs/openafs: fix SRC_URI (diff) | |
download | gentoo-2aca4e8019650fe6d7b553bea1db91c745743d89.tar.gz gentoo-2aca4e8019650fe6d7b553bea1db91c745743d89.tar.bz2 gentoo-2aca4e8019650fe6d7b553bea1db91c745743d89.zip |
dev-ruby/facter: fixed ruby install
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r-- | dev-ruby/facter/facter-3.1.6-r1.ebuild (renamed from dev-ruby/facter/facter-3.1.6.ebuild) | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-ruby/facter/facter-3.1.6.ebuild b/dev-ruby/facter/facter-3.1.6-r1.ebuild index 2475f6d465a5..49e34b74314e 100644 --- a/dev-ruby/facter/facter-3.1.6.ebuild +++ b/dev-ruby/facter/facter-3.1.6-r1.ebuild @@ -33,8 +33,8 @@ DEPEND+=" test? ( ${CDEPEND} )" src_prepare() { # Remove the code that installs facter.rb to the wrong directory. - sed -i 's/if(RUBY_VENDORDIR)/if(False)/g' lib/CMakeLists.txt || die - sed -i '/RUBY_VENDORDIR/d' lib/CMakeLists.txt || die + sed -i '/install(.*facter\.rb/d' lib/CMakeLists.txt || die + sed -i '/install(.*facter\.jar/d' lib/CMakeLists.txt || die # make it support multilib sed -i "s/\ lib)/\ $(get_libdir))/g" lib/CMakeLists.txt || die sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die @@ -58,6 +58,10 @@ src_configure() { cmake-utils_src_configure } +each_ruby_install() { + doruby "${BUILD_DIR}"/lib/facter.rb +} + src_install() { cmake-utils_src_install ruby-ng_src_install |