commit:     1e4744e4a226e36cbe75d2d042a4087048db5c0e
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 27 18:05:57 2017 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Thu Apr 27 18:06:16 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e4744e4

dev-ruby/facter: 3.6.4 bup

Package-Manager: Portage-2.3.3, Repoman-2.3.2

 dev-ruby/facter/Manifest            |  1 +
 dev-ruby/facter/facter-3.6.4.ebuild | 88 +++++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)

diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest
index e9e4612f540..ad3b6876608 100644
--- a/dev-ruby/facter/Manifest
+++ b/dev-ruby/facter/Manifest
@@ -3,3 +3,4 @@ DIST facter-3.1.4.tar.gz 620501 SHA256 
7ca1872edbdc5ffcd11dc292e5e0625c9e0d35aa7
 DIST facter-3.1.8.tar.gz 324710 SHA256 
bd393026640baf149507c11d36be144759889d4c90174d7c6bfb35e0a341fbca SHA512 
2884c2c0bb3075b2552763dee7f33228b0e70b4eb46367f52c4cbf9e01930ddc5e58d062d06ced4174900fc3eae5214d80471a4fe499bf0f2ac0278640e0e8c7
 WHIRLPOOL 
465432940e068318da0028ce1c8ea3084392212cfc6a50449a3ba034fe721836c88ba16c2248b4b3f062a890087421c93a3d14574c8d03e1eafe4f4f82b49d0d
 DIST facter-3.6.1.tar.gz 364596 SHA256 
cee28c3fb0134cfd90417c6facec795c1de724ea067911aa4f5b21b1c3785591 SHA512 
7cb01536c2682576a8074abf0d617de31f3c9b79eb7f753e8a2ea8b231a9dc4d2017a1e8cf383f6a664596799111803b40e3772f0559c6de74351b8bb75ec0f3
 WHIRLPOOL 
2eafcfdae1cf83592907624716e21b8f030f96a42b4fa613eacde99ea895a0eae06bb6571d4a197c418aa0db9ad8f04b56938fc8f490d05423824b321ee11b74
 DIST facter-3.6.3.tar.gz 370771 SHA256 
8c7491db7937a350d738985ee9b4ab370f074d82d89b6ed0115cc21e5adadcbe SHA512 
cdcc6bd848c664f395f656d57e0bd28b62cccfdaeccdc9cd364d90a96693c6c8cdc079aa70409297f0ecfdee041c28bad52b3cb4b8981e66de2887bc5eb1bf33
 WHIRLPOOL 
91d7b8df9e79455f65e89f7a4e17c1cd7076e08091af89a8eb2116bc4716a7b4d4163559cdbed55f356d2fafc6a86cd075de6e15d8b9103be62d6ec3f68b69f6
+DIST facter-3.6.4.tar.gz 373722 SHA256 
de12c53c74dd3f39633e61f62a900842d829cbe24b76e72b0c6e85000a99b8bc SHA512 
d5e03bb40da448805a56accc2fb972569f686a1e8c8b343d4e0defb5a00a982665496049174c225a8b04abb4d09112bd2117a8a96c9360bb2e36e4d569d86337
 WHIRLPOOL 
f7a05a044c7031f248a888458678b48fc8d7996a2d0bc588323bf6c76513ff4fc838f0299db19f212dd0b5ba094b8135558db7da7f4ff596267832354d369634

diff --git a/dev-ruby/facter/facter-3.6.4.ebuild 
b/dev-ruby/facter/facter-3.6.4.ebuild
new file mode 100644
index 00000000000..47f77c3cc1a
--- /dev/null
+++ b/dev-ruby/facter/facter-3.6.4.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+
+BDEPEND="
+       >=sys-devel/gcc-4.8:*
+       >=dev-libs/boost-1.54[nls]
+       >=dev-libs/leatherman-0.9.3
+       >=dev-cpp/yaml-cpp-0.5.1
+       dev-cpp/cpp-hocon"
+CDEPEND="
+       dev-libs/openssl:*
+       sys-apps/util-linux
+       app-emulation/virt-what
+       net-misc/curl
+       !<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
+       epatch_user
+}
+
+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
+}

Reply via email to