summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-11-18 16:20:53 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2017-11-18 16:23:04 -0600
commitc0c94f4e8212f9572401f42834118554f4586748 (patch)
treefa90b1a34e2e61eb912d53b412490c0c21d8dcbc /dev-ruby
parentdev-python/pysaml2: bup to 4.5.0 (diff)
downloadgentoo-c0c94f4e8212f9572401f42834118554f4586748.tar.gz
gentoo-c0c94f4e8212f9572401f42834118554f4586748.tar.bz2
gentoo-c0c94f4e8212f9572401f42834118554f4586748.zip
dev-ruby/facter: fixing bug 637364
Package-Manager: Portage-2.3.14, Repoman-2.3.6
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/facter/facter-3.9.3.ebuild2
-rw-r--r--dev-ruby/facter/facter-9999.ebuild26
2 files changed, 16 insertions, 12 deletions
diff --git a/dev-ruby/facter/facter-3.9.3.ebuild b/dev-ruby/facter/facter-3.9.3.ebuild
index 247eed1af456..02ce8a5fad95 100644
--- a/dev-ruby/facter/facter-3.9.3.ebuild
+++ b/dev-ruby/facter/facter-3.9.3.ebuild
@@ -4,6 +4,7 @@
EAPI=6
USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+# git-r3 goes after ruby-ng so that it overrides src_unpack properly
inherit cmake-utils eutils multilib ruby-ng
DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems"
@@ -44,6 +45,7 @@ src_prepare() {
sed -i 's/\${LIBFACTER_INSTALL_DESTINATION}\///g' lib/facter.rb.in || die
# patches
default
+ cmake-utils_src_prepare
}
src_configure() {
diff --git a/dev-ruby/facter/facter-9999.ebuild b/dev-ruby/facter/facter-9999.ebuild
index 0fed77cf9e2c..95b52c0fbfd3 100644
--- a/dev-ruby/facter/facter-9999.ebuild
+++ b/dev-ruby/facter/facter-9999.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-USE_RUBY="ruby21 ruby22"
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
# git-r3 goes after ruby-ng so that it overrides src_unpack properly
-inherit cmake-utils multilib ruby-ng git-r3
+inherit cmake-utils eutils multilib ruby-ng git-r3
DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems"
HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
@@ -20,7 +20,7 @@ KEYWORDS=""
BDEPEND="
>=sys-devel/gcc-4.8:*
- >=dev-libs/leatherman-0.9.3
+ >=dev-libs/leatherman-1.0.0
dev-cpp/cpp-hocon"
CDEPEND="
dev-libs/openssl:*
@@ -36,15 +36,17 @@ DEPEND="${BDEPEND}
${CDEPEND}"
src_prepare() {
- pwd
# Remove the code that installs facter.rb to the wrong directory.
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
+ # make the require work
+ sed -i 's/\${LIBFACTER_INSTALL_DESTINATION}\///g' lib/facter.rb.in || die
+ # patches
default
- epatch "${FILESDIR}/facter-3.5.0-jar.patch"
+ cmake-utils_src_prepare
}
src_configure() {
@@ -80,10 +82,10 @@ src_test() {
src_install() {
cmake-utils_src_install
ruby-ng_src_install
- if [[ $(get_libdir) == lib64 ]]; then
- dodir /usr/lib64
- mv "${D}/usr/lib/"* "${D}/usr/lib64/"
- rmdir "${D}/usr/lib"
- fi
- doenvd "${FILESDIR}"/00facterdir
+
+ # need a variable file in env.d :(
+ diropts -m0755
+ dodir /etc/env.d
+ echo -n "FACTERDIR=/usr/$(get_libdir)" > "${D}/etc/env.d/00facterdir"
+ fperms 0644 /etc/env.d/00facterdir
}