summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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