forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
DIST facter-2.4.1.gem 236544 SHA256 4c8836066378d387c0561e4c3574865fa10d85d7474d472b049ecc7d5e4c67fa SHA512 5690f059961ba981d2e174f45ebdbb4e9b75aad3599cbc896f1c3d25f9b12c36500e09be70c36ebf27aed602c22d811604c344c7ccc71ecb200d4aeb78f28a4b WHIRLPOOL 1b6b4079b0449c646e06e9fd868b1de29a61facdacea956b032fbbef94e8c4c85594f50021b3f78a3668c5a0f6d29c448bd97c34fdb8a215de2ee74b164af6fd | ||
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-2.4.5.gem 247296 SHA256 582ee6d237ed6e1bfaf07705c04f4c42b8f00435f2e5439c2edbe5f35cfc6f6c SHA512 6be9d0832897f7f93e5d2e6d8f548f430ccd28031bfb3391bd7f2a46c0a0f91594776a36430a02865a932a105e9ad31ebf812c10315db5afa373d7ca819d20b7 WHIRLPOOL b7f0a510649707ee4511079e0609673f28ee496a5f3bb05c44d14e41dfa5a76463fbd4adff88ad8a504bf182c2fac637a8e73524d310093521532096ab99d6f4 | ||
DIST facter-3.0.2.tar.gz 508583 SHA256 2fee1ee938196790f24b7b876ff04a5d69c0ac1492ff6935b003ae23500eced7 SHA512 57a5c40d2ad07911a2b9c242b22bcffbbf8eedc88e12d7d6e8f6cf044ef30034cae7230468a7b414c93d6008d8805be1621a8c6b1af2543539d979bd3df7d1e8 WHIRLPOOL 6b89ca76ba7d993e1b87fe840b76dda9b1d8534df06f9f45e3c24752b95b441e471899446018f66bb6db0d490bb4a76cd4ab146a5060755333072ab5a5767bd3 | ||
DIST facter-3.1.2.tar.gz 603375 SHA256 9da41388127b7c02f9ac17945dad48332e62d663191bf51b2339c48222641c26 SHA512 f2435bb04d4ca51f65ce54134ff81e7fccb61df3f26ee890580f59b5eb65c6f7ca6db9fcd779baedca297a1456143741777cc9ba46b00e26c8b3965ab3db79e0 WHIRLPOOL e07c743a1025320c364800d3fece9e5d0b72e0f82ac648f459aaaeed44a46b187454ec4fdfcb532c87f6f62025632ebad5985356dbe056329e16eabd8eaec68c | ||
DIST facter-3.1.3.tar.gz 603386 SHA256 b27bfeade320331a02a68d3d2b41491d5cfcbb889292a8e9e1a11bd8641ff7d9 SHA512 dff5b1c312590d7fda140a72d87cabe70619d52887bbdd072c9dfd22062115433645b5762e14fd5fdb46f011dc3afeb17e2ffeb569423aac539030bb12f6c3af WHIRLPOOL a9ddbc1e75196d9a40fcb083c16abae8be1dfaa8c0f69e4af8ad9972884188aa572abf96137f34120b4ab5baf788fbddb3aa881eb4ffe085802cd6e7ce46d2b2 | ||
DIST facter-3.1.4.tar.gz 620501 SHA256 7ca1872edbdc5ffcd11dc292e5e0625c9e0d35aa7966d8803859da0d035c7fcf SHA512 2fcc990c8e26349b9fa87cd1f7c43dffd49ffacf03c3467e836ea0bcd7527e1d40b6240646fd7dd6346121ca802fe86e996e209d838db91e8fe55298fdab4e0e WHIRLPOOL 224b17990fc559fce3a7c9b31c14dd45033127b078d68fac024cb6db192573085187163932c9dacd8fd94a281bd8d58ac1c75229a8e3bce4c4f070ebc81ff0f3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
USE_RUBY="ruby20 ruby21 ruby22" | ||
RUBY_FAKEGEM_TASK_DOC="" | ||
RUBY_FAKEGEM_RECIPE_TEST="rspec" | ||
RUBY_FAKEGEM_EXTRADOC="README.md" | ||
RUBY_FAKEGEM_BINWRAP="facter" | ||
|
||
inherit ruby-fakegem | ||
|
||
DESCRIPTION="A cross-platform Ruby library for retrieving facts from operating systems" | ||
HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
IUSE="+dmi +pciutils +virt" | ||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" | ||
|
||
CDEPEND=" | ||
app-emulation/virt-what | ||
sys-apps/net-tools | ||
sys-apps/lsb-release | ||
dmi? ( sys-apps/dmidecode ) | ||
pciutils? ( sys-apps/pciutils )" | ||
|
||
RDEPEND+=" ${CDEPEND}" | ||
DEPEND+=" test? ( ${CDEPEND} )" | ||
|
||
ruby_add_bdepend "test? ( dev-ruby/mocha:1.0 )" | ||
|
||
all_ruby_prepare() { | ||
# Provide explicit path since /sbin is not in the default PATH on | ||
# Gentoo. | ||
sed -i -e 's:arp -an:/sbin/arp -an:' lib/facter/util/ec2.rb spec/unit/util/ec2_spec.rb || die | ||
|
||
# Ensure the correct version of mocha is used without using bundler. | ||
sed -i -e '1igem "mocha", "~>1.0"' spec/spec_helper.rb || die | ||
|
||
# Avoid because tests try to access outside stuff, e.g. /sys/block | ||
sed -i -e '/should load facts on the facter search path only once/,/^ end/ s:^:#:' spec/unit/util/loader_spec.rb || die | ||
|
||
# Allow specs to work with newer rspec 2.x versions. | ||
sed -i -e '1irequire "rspec-expectations"' spec/puppetlabs_spec/matchers.rb || die | ||
|
||
# Avoid specs specific to macosx requiring cfpropertylist which is | ||
# not available anymore. | ||
rm spec/unit/util/macosx_spec.rb || die | ||
sed -i -e '/macosx/ s:^:#:' \ | ||
-e '/on Darwin/,/^ end/ s:^:#:' spec/unit/virtual_spec.rb || die | ||
sed -i -e '/Facter::Processors::Darwin/,/^end/ s:^:#:' spec/unit/processors/os_spec.rb || die | ||
} | ||
|
||
all_ruby_install() { | ||
all_fakegem_install | ||
|
||
# Create the directory for custom facts. | ||
keepdir /etc/facter/facts.d | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
USE_RUBY="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[nls] | ||
>=dev-cpp/yaml-cpp-0.5.1 | ||
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() { | ||
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 | ||
} |