summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r--dev-ruby/facter/Manifest1
-rw-r--r--dev-ruby/facter/facter-3.5.0.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest
index 30d95e334bbe..1abda0e0a914 100644
--- a/dev-ruby/facter/Manifest
+++ b/dev-ruby/facter/Manifest
@@ -3,3 +3,4 @@ DIST facter-2.4.6.gem 246272 SHA256 56ffc5fbcd550fcdb4788bc4d7fd0199bff69937d6df
DIST facter-3.1.4.tar.gz 620501 SHA256 7ca1872edbdc5ffcd11dc292e5e0625c9e0d35aa7966d8803859da0d035c7fcf SHA512 2fcc990c8e26349b9fa87cd1f7c43dffd49ffacf03c3467e836ea0bcd7527e1d40b6240646fd7dd6346121ca802fe86e996e209d838db91e8fe55298fdab4e0e WHIRLPOOL 224b17990fc559fce3a7c9b31c14dd45033127b078d68fac024cb6db192573085187163932c9dacd8fd94a281bd8d58ac1c75229a8e3bce4c4f070ebc81ff0f3
DIST facter-3.1.8.tar.gz 324710 SHA256 bd393026640baf149507c11d36be144759889d4c90174d7c6bfb35e0a341fbca SHA512 2884c2c0bb3075b2552763dee7f33228b0e70b4eb46367f52c4cbf9e01930ddc5e58d062d06ced4174900fc3eae5214d80471a4fe499bf0f2ac0278640e0e8c7 WHIRLPOOL 465432940e068318da0028ce1c8ea3084392212cfc6a50449a3ba034fe721836c88ba16c2248b4b3f062a890087421c93a3d14574c8d03e1eafe4f4f82b49d0d
DIST facter-3.4.1.tar.gz 332857 SHA256 98a576c6891725d90686ff3a0afb94ef8562ddae8cae5e1ce2c0b0bdd4061e55 SHA512 5acee867cfbeab9d93521ab62f04aea233992c5a54bff342180de3c02929646b43ae198faf1c05465d8a6c9b2d5673cf2eb076be91dcb2754da175ce2c161f36 WHIRLPOOL 0632c73b882667aeeb4de7f37c16bc44ac53de94f41ef32abddd882cb0228160a30ab014d5d6b73a14b423596c89dca82aab09877a53384b84489ed8fa504802
+DIST facter-3.5.0.tar.gz 358507 SHA256 dca30a5f0e2d7644d085ae4c315f81a2950e407e828dbc01a72c021e4ba29266 SHA512 1a867bb04b10a5c9009f0930fc27c9be5b1bad4c2c80ec951d0f2297f3db0bc05789e820d6fe5c6ea99c944c2b9669cd7bb09dc895b773301b0d49333b8c9153 WHIRLPOOL 516940b18dfd39f881a2a871cfd63ff0ad5377f510bb58ec6ed3382e69b4b447f7d978c2dc91b6c43ea0e1b1756b36e781a2f3b3ffdd998cc24d9f6b676e0881
diff --git a/dev-ruby/facter/facter-3.5.0.ebuild b/dev-ruby/facter/facter-3.5.0.ebuild
new file mode 100644
index 000000000000..33350a6e07f4
--- /dev/null
+++ b/dev-ruby/facter/facter-3.5.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby21 ruby22"
+
+inherit cmake-utils 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"
+
+CDEPEND="
+ >=sys-devel/gcc-4.8:*
+ >=dev-libs/boost-1.54[nls]
+ >=dev-libs/leatherman-0.4.2
+ >=dev-cpp/yaml-cpp-0.5.1
+ dev-cpp/cpp-hocon
+ dev-libs/openssl:*
+ sys-apps/util-linux
+ app-emulation/virt-what
+ net-misc/curl
+ !<app-admin/puppet-4.0.0"
+
+RDEPEND+=" ${CDEPEND}"
+DEPEND+=" test? ( ${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
+}
+
+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
+}
+
+each_ruby_install() {
+ doruby "${BUILD_DIR}"/lib/facter.rb
+}
+
+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
+}