1 |
commit: 2aca4e8019650fe6d7b553bea1db91c745743d89 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 00:49:43 2016 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 00:49:43 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2aca4e80 |
7 |
|
8 |
dev-ruby/facter: fixed ruby install |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-ruby/facter/{facter-3.1.6.ebuild => facter-3.1.6-r1.ebuild} | 8 ++++++-- |
13 |
1 file changed, 6 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/dev-ruby/facter/facter-3.1.6.ebuild b/dev-ruby/facter/facter-3.1.6-r1.ebuild |
16 |
similarity index 89% |
17 |
rename from dev-ruby/facter/facter-3.1.6.ebuild |
18 |
rename to dev-ruby/facter/facter-3.1.6-r1.ebuild |
19 |
index 2475f6d..49e34b7 100644 |
20 |
--- a/dev-ruby/facter/facter-3.1.6.ebuild |
21 |
+++ b/dev-ruby/facter/facter-3.1.6-r1.ebuild |
22 |
@@ -33,8 +33,8 @@ DEPEND+=" test? ( ${CDEPEND} )" |
23 |
|
24 |
src_prepare() { |
25 |
# Remove the code that installs facter.rb to the wrong directory. |
26 |
- sed -i 's/if(RUBY_VENDORDIR)/if(False)/g' lib/CMakeLists.txt || die |
27 |
- sed -i '/RUBY_VENDORDIR/d' lib/CMakeLists.txt || die |
28 |
+ sed -i '/install(.*facter\.rb/d' lib/CMakeLists.txt || die |
29 |
+ sed -i '/install(.*facter\.jar/d' lib/CMakeLists.txt || die |
30 |
# make it support multilib |
31 |
sed -i "s/\ lib)/\ $(get_libdir))/g" lib/CMakeLists.txt || die |
32 |
sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die |
33 |
@@ -58,6 +58,10 @@ src_configure() { |
34 |
cmake-utils_src_configure |
35 |
} |
36 |
|
37 |
+each_ruby_install() { |
38 |
+ doruby "${BUILD_DIR}"/lib/facter.rb |
39 |
+} |
40 |
+ |
41 |
src_install() { |
42 |
cmake-utils_src_install |
43 |
ruby-ng_src_install |