summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-09-29 23:21:11 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2017-09-29 23:21:29 -0500
commite23613d3355a9895a11d364adafdeb28a1f0a436 (patch)
tree3966ee2e7f5e227f58514e19812c5acbe4d41b91 /dev-ruby/facter
parentnet-vpn/openvpn: stable 2.4.4 for ppc, bug #632108 (diff)
downloadgentoo-e23613d3355a9895a11d364adafdeb28a1f0a436.tar.gz
gentoo-e23613d3355a9895a11d364adafdeb28a1f0a436.tar.bz2
gentoo-e23613d3355a9895a11d364adafdeb28a1f0a436.zip
dev-ruby/facter: 3.9.2 bup
Package-Manager: Portage-2.3.8, 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.9.2.ebuild88
2 files changed, 89 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest
index 357d5cbd6eb3..04dee7ad8ca1 100644
--- a/dev-ruby/facter/Manifest
+++ b/dev-ruby/facter/Manifest
@@ -8,3 +8,4 @@ DIST facter-3.7.1.tar.gz 374576 SHA256 fe62b0a33c9edd3f945c1d3057e45172a26952439
DIST facter-3.8.0.tar.gz 378859 SHA256 1a481a50a621e55fdf2b1b2da089315209ec40b255687ad66cbe8bf32cce5ab9 SHA512 e28771c7136c9b40e2f8b3509fbe07188d2640288705b5bd531521e476b8b8386e5003448b4c199c9d6cced8128ec113dcc9ae317cd4aa5319da906e605cfc4d WHIRLPOOL 212ac005ab67fddea50d7bee4deaec125eb85f1d0f11fbcfb709eb95b26bfc3fbc85430d260d3a72413c368c07b5b66325bf44bd1ced4aae1cb18733ec09fa40
DIST facter-3.9.0.tar.gz 380715 SHA256 5567544487e7ec1f3bc2c393a9dc66449315accb53666049ae01b3a94afd2298 SHA512 ca818ba58fe232752a74faaa8377f706a49661e37ce85af7e6eaf735ecbcdcda4071618a6b8906b0444fea989b7b16cb85171b980a089cd57aaad37508a2b905 WHIRLPOOL 35e9fc01a9f86a0e85ec81a5ff5f434857b13eb45387e2ad14588a13ea930a72754b0f18c0d479bd41f2e127dcfb18cadc33f58da69bc221ca7dc3f47ac2325c
DIST facter-3.9.1.tar.gz 380762 SHA256 9e4a4aaafcadcdf01a86249a28a007e8bd5ea14bb41ace1e531ed3ccb9339a68 SHA512 a3b66bf40c062dbef644d60909a2c2afd0839c8a11fd02a0a15ccbbc1a1f216d9b0420a0f90dd44166487faa4e00843f2c0f3f057bb43bb30c22677dfac325a0 WHIRLPOOL c1e039cc1d3ae667b68dc54d1761c885a8ae0b22c690b8344a670c7d5c07c737fe45aa16a5341656c9fe04f4ce17b8b38737131b7c27f348655c2b220a936dd8
+DIST facter-3.9.2.tar.gz 380883 SHA256 f5441ed10d5c84493439151840bee23c69273f3cd877500d83cf973ba5b0348d SHA512 bc040826311bbff40f5a151ade315d9d47ef1e0f3faa570805e48ca55405265e66308230118b9cd59f701ecd76a7b0fd4d9200dd4ace838521223a162b105374 WHIRLPOOL deb9928bfe48314bbdb8debe22593a4cdcdfa926aade4dc9a96d09029f79f64e12aea6e7fd28b9df87b002a06caa72960003b54a8f0bf781fc7ecbe4efa9b601
diff --git a/dev-ruby/facter/facter-3.9.2.ebuild b/dev-ruby/facter/facter-3.9.2.ebuild
new file mode 100644
index 000000000000..247eed1af456
--- /dev/null
+++ b/dev-ruby/facter/facter-3.9.2.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 ~arm ~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
+}