dev-ruby/facter: fixed ruby install

Package-Manager: portage-2.2.26
This commit is contained in:
Matthew Thode
2016-04-29 19:49:43 -05:00
parent 57fd94e7ba
commit 2aca4e8019

View File

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