summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-08-16 14:13:45 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2017-08-16 14:13:45 -0500
commiteab676d427ea09665ff41296e55a638c700b8107 (patch)
treed36751cdad0887662c2ad4cf748956cfa48235b9 /dev-ruby/facter
parentsci-libs/symengine: fix library directory for multilib-strict (diff)
downloadgentoo-eab676d427ea09665ff41296e55a638c700b8107.tar.gz
gentoo-eab676d427ea09665ff41296e55a638c700b8107.tar.bz2
gentoo-eab676d427ea09665ff41296e55a638c700b8107.zip
dev-ruby/facter: bup to 3.8.0
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r--dev-ruby/facter/Manifest1
-rw-r--r--dev-ruby/facter/facter-3.8.0.ebuild88
2 files changed, 89 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest
index 413ace4a5e9f..6a6cb9030287 100644
--- a/dev-ruby/facter/Manifest
+++ b/dev-ruby/facter/Manifest
@@ -6,3 +6,4 @@ DIST facter-3.6.4.tar.gz 373722 SHA256 de12c53c74dd3f39633e61f62a900842d829cbe24
DIST facter-3.6.5.tar.gz 371967 SHA256 00e37c4c2cb0e8a95e3957239477e23c778c37d61d71f66bdab3e905ff969876 SHA512 d925a9f8e0c0a2b94f56b6683b99fc70b7d48ad3388001bc341abed5b9c4594701a1756430fa2fd6a9ac8a2d3ec73562f1f8b909d364dc8b1c1e3c81f15041d6 WHIRLPOOL ac4f5a1d52c8890a085f7f4aa6ee76a93c6af76021e4c1461164ba6d5536c0d1a371450247e40ecf5803533e27b25dbc6aa0b992d8444d65b0c76902703b6662
DIST facter-3.6.6.tar.gz 372137 SHA256 a06b6907d39a0974f39535a162a409a31bb9c4e99f9969aaa4cd1cb04062039f SHA512 a0b83b1a03ae1abc0822d69b190dcfbf269f8219b3c17c887517fafcc16d9cdabd0938a14103ce3ed66e13d4b528620694a9f7e2697d23fadb108c44686dd8af WHIRLPOOL adea4eeb562c0995b1c7dfa972c4e83bea9c480451be3f88d4957fcfa41bef0bef9163c385eb385b17cdc98bc463147e3d6d7ab5c5ef44354c73c765c3da380c
DIST facter-3.7.1.tar.gz 374576 SHA256 fe62b0a33c9edd3f945c1d3057e45172a26952439e0e922341d3844864b92320 SHA512 3b2d218d60f5ad9ef756a50540f638303b7a4eb0ea2afca10d2c41f4e6e3f6c2bb6337de417e4989664e32317b0f8db921fed68e813e4cebe10083c943b33fee WHIRLPOOL 342d3d26cb23116a469530f4e3621575650dbfce0b66f8e5debcd05d05736b24df14b20213b4540a0be2065b50e445385b4c3cc583c88490dce4b59b1408e806
+DIST facter-3.8.0.tar.gz 378859 SHA256 1a481a50a621e55fdf2b1b2da089315209ec40b255687ad66cbe8bf32cce5ab9 SHA512 e28771c7136c9b40e2f8b3509fbe07188d2640288705b5bd531521e476b8b8386e5003448b4c199c9d6cced8128ec113dcc9ae317cd4aa5319da906e605cfc4d WHIRLPOOL 212ac005ab67fddea50d7bee4deaec125eb85f1d0f11fbcfb709eb95b26bfc3fbc85430d260d3a72413c368c07b5b66325bf44bd1ced4aae1cb18733ec09fa40
diff --git a/dev-ruby/facter/facter-3.8.0.ebuild b/dev-ruby/facter/facter-3.8.0.ebuild
new file mode 100644
index 000000000000..9e7deeaa7329
--- /dev/null
+++ b/dev-ruby/facter/facter-3.8.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+inherit cmake-utils eutils multilib ruby-ng
+
+DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems"
+HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
+SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${S}/all/${P}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="debug test"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+
+BDEPEND="
+ >=sys-devel/gcc-4.8:*
+ >=dev-libs/leatherman-1.0.0
+ dev-cpp/cpp-hocon"
+CDEPEND="
+ dev-libs/openssl:*
+ sys-apps/util-linux
+ app-emulation/virt-what
+ net-misc/curl
+ >=dev-libs/boost-1.54[nls]
+ >=dev-cpp/yaml-cpp-0.5.1
+ !<app-admin/puppet-4.0.0"
+
+RDEPEND="${CDEPEND}"
+DEPEND="${BDEPEND}
+ ${CDEPEND}"
+
+src_prepare() {
+ # 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
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_VERBOSE_MAKEFILE=ON
+ -DCMAKE_BUILD_TYPE=None
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc
+ -DCMAKE_INSTALL_LOCALSTATEDIR=/var
+ -DUSE_JRUBY_SUPPORT=FALSE
+ -DBLKID_LIBRARY=/$(get_libdir)/libblkid.so.1
+ )
+ if use debug; then
+ mycmakeargs+=(
+ -DCMAKE_BUILD_TYPE=Debug
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+each_ruby_install() {
+ doruby "${BUILD_DIR}"/lib/facter.rb
+}
+
+src_test() {
+ cmake-utils_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+ ruby-ng_src_install
+
+ # 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
+}