diff options
author | Matthew Thode <mthode@mthode.org> | 2015-09-15 13:37:23 -0500 |
---|---|---|
committer | Matthew Thode <mthode@mthode.org> | 2015-09-15 13:37:23 -0500 |
commit | 175d7b2aa339771dbe0e2f9f9d188dd48d7237d8 (patch) | |
tree | af744dcef4667622ac2fdd939880a2e3e3eecb44 /dev-ruby | |
parent | app-admin/puppet: bup (diff) | |
download | gentoo-175d7b2aa339771dbe0e2f9f9d188dd48d7237d8.tar.gz gentoo-175d7b2aa339771dbe0e2f9f9d188dd48d7237d8.tar.bz2 gentoo-175d7b2aa339771dbe0e2f9f9d188dd48d7237d8.zip |
dev-ruby/facter: bup
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.1.0.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index f3ec4dcb2b31..e875f3c13f47 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -2,3 +2,4 @@ DIST facter-2.4.1.gem 236544 SHA256 4c8836066378d387c0561e4c3574865fa10d85d7474d DIST facter-2.4.3.gem 245760 SHA256 3c1e49c32e6b07c1f802ec120e860f882938a5057c6f3733594b7ff8a80ee58f SHA512 a834c50d0ac14a751ccd0d5da3f8d64a83173e82991e2a3cd70bf47c023ee0b0517baed3726398a1075043b1237a91cc8389d58acbb2bbf79c76b5e2ecd3aedb WHIRLPOOL daa82ef6b2f6eb2f640a106528e67f5631748ee4232fbe9c595146b25ac6ca01048d3fc7a5cf519469bec597b6cc6dc6a4d6b2b779b7c77972fbb8efc952c32b 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 diff --git a/dev-ruby/facter/facter-3.1.0.ebuild b/dev-ruby/facter/facter-3.1.0.ebuild new file mode 100644 index 000000000000..d27a6ebb5948 --- /dev/null +++ b/dev-ruby/facter/facter-3.1.0.ebuild @@ -0,0 +1,64 @@ +# 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 '/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 +} |