From e93d96fc3126ea72885b2a8737b6208886f0d81a Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Tue, 3 Nov 2015 11:41:43 -0600 Subject: [PATCH] dev-ruby/facter: bup Package-Manager: portage-2.2.20.1 --- dev-ruby/facter/Manifest | 1 + dev-ruby/facter/facter-3.1.1.ebuild | 65 +++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 dev-ruby/facter/facter-3.1.1.ebuild diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index e875f3c13f477..1e33a63934af4 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -3,3 +3,4 @@ DIST facter-2.4.3.gem 245760 SHA256 3c1e49c32e6b07c1f802ec120e860f882938a5057c6f DIST facter-2.4.4.gem 245760 SHA256 4f7b592f9b6bc6ad8a9789e3ca0953fae07e6d06b10a9cb7599eb1e71a03646b SHA512 9d485d147cf726cd4a2943d1ee3475d2593067953102c11487e2916d59464407016a074b6eb31af4da37a3914588937d827d2cf4c64196650baefa2fb097bb89 WHIRLPOOL 574afae52fc7ad3cf8619abcd89eee4ca38e5ecc903e316bfc18aef708fa32e8b3487f315605a21ac9faf0ba66989c8d108d77a9104f74f79fc5e953dd8ccdd7 DIST facter-3.0.2.tar.gz 508583 SHA256 2fee1ee938196790f24b7b876ff04a5d69c0ac1492ff6935b003ae23500eced7 SHA512 57a5c40d2ad07911a2b9c242b22bcffbbf8eedc88e12d7d6e8f6cf044ef30034cae7230468a7b414c93d6008d8805be1621a8c6b1af2543539d979bd3df7d1e8 WHIRLPOOL 6b89ca76ba7d993e1b87fe840b76dda9b1d8534df06f9f45e3c24752b95b441e471899446018f66bb6db0d490bb4a76cd4ab146a5060755333072ab5a5767bd3 DIST facter-3.1.0.tar.gz 620224 SHA256 637a4e9cc3283374e11949b0450d0433fabcb2e2699c5d01921e8dad9cb457dd SHA512 ce5e5c62d55fa253ebc25467682f56bd32d6ca7b1a9feac31a3fe037d5c06205d753dd31c29c51da61355c6d8c1f301b9451d4a1078776e4f2216f81920270a6 WHIRLPOOL 4644cb7ce9a1bd0698932b630dd52bfa9a0b5ea5602de6518dc0a8d0cceee0c891fdae3fae6a8a0bd191e6b0dfdf6d06a4b4146b0cde681e5eb51847c2ee2860 +DIST facter-3.1.1.tar.gz 601017 SHA256 e60e02bf13020c5ddc59111204e282365eacbff325b62e5660772e17bf2476e5 SHA512 20d9dc6c4a650e7140b26143a4b6c4dda5e6bd8c445cfbdc40e270915a2027606ce1a6ea91c1b3ff470c4b7d27c2cf784a5a4b85cbefeda7a430804bc8001935 WHIRLPOOL 9c22bc0d6a0b35c9e455f352ccee77b44f8fea69d4f7f6aefae9339917cc42f88eb62f19f1d1e37dfa978c767babb2428deb90a022b1cdcfd75b72b9ac9e00ee diff --git a/dev-ruby/facter/facter-3.1.1.ebuild b/dev-ruby/facter/facter-3.1.1.ebuild new file mode 100644 index 0000000000000..31604763e41d6 --- /dev/null +++ b/dev-ruby/facter/facter-3.1.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby19 ruby20 ruby21 ruby22" + +inherit cmake-utils 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://downloads.puppetlabs.com/facter/${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 + >=dev-cpp/yaml-cpp-0.5.1 + dev-libs/openssl:* + sys-apps/util-linux + app-emulation/virt-what + net-misc/curl" + +RDEPEND+=" ${CDEPEND}" +DEPEND+=" test? ( ${CDEPEND} )" + +src_prepare() { + sed -i 's/\-Werror\ //g' "vendor/leatherman/cmake/cflags.cmake" || die + # Remove the code that installs facter.rb to the wrong directory. + sed -i 's/if(RUBY_VENDORDIR)/if(False)/g' lib/CMakeLists.txt || die + sed -i '/RUBY_VENDORDIR/d' lib/CMakeLists.txt || die + # make it support multilib + sed -i 's/\ lib)/\ lib${LIB_SUFFIX})/g' lib/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 + ) + 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 +}