dev-ruby/facter: fixed ruby install
authorMatthew Thode <prometheanfire@gentoo.org>
Sat, 30 Apr 2016 00:49:43 +0000 (19:49 -0500)
committerMatthew Thode <prometheanfire@gentoo.org>
Sat, 30 Apr 2016 00:49:43 +0000 (19:49 -0500)
Package-Manager: portage-2.2.26

dev-ruby/facter/facter-3.1.6-r1.ebuild [moved from dev-ruby/facter/facter-3.1.6.ebuild with 89% similarity]

similarity index 89%
rename from dev-ruby/facter/facter-3.1.6.ebuild
rename to dev-ruby/facter/facter-3.1.6-r1.ebuild
index 2475f6d465a5d37e499094a052e94aa9465c6756..49e34b74314e50295e7423f1f684b84c52523501 100644 (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