diff options
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.1.3.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index 3933ce1f33ae..bbd6e0ca3957 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.2.tar.gz 603375 SHA256 9da41388127b7c02f9ac17945dad48332e62d663191bf51b2339c48222641c26 SHA512 f2435bb04d4ca51f65ce54134ff81e7fccb61df3f26ee890580f59b5eb65c6f7ca6db9fcd779baedca297a1456143741777cc9ba46b00e26c8b3965ab3db79e0 WHIRLPOOL e07c743a1025320c364800d3fece9e5d0b72e0f82ac648f459aaaeed44a46b187454ec4fdfcb532c87f6f62025632ebad5985356dbe056329e16eabd8eaec68c +DIST facter-3.1.3.tar.gz 603386 SHA256 b27bfeade320331a02a68d3d2b41491d5cfcbb889292a8e9e1a11bd8641ff7d9 SHA512 dff5b1c312590d7fda140a72d87cabe70619d52887bbdd072c9dfd22062115433645b5762e14fd5fdb46f011dc3afeb17e2ffeb569423aac539030bb12f6c3af WHIRLPOOL a9ddbc1e75196d9a40fcb083c16abae8be1dfaa8c0f69e4af8ad9972884188aa572abf96137f34120b4ab5baf788fbddb3aa881eb4ffe085802cd6e7ce46d2b2 diff --git a/dev-ruby/facter/facter-3.1.3.ebuild b/dev-ruby/facter/facter-3.1.3.ebuild new file mode 100644 index 000000000000..7e9cf4fde45c --- /dev/null +++ b/dev-ruby/facter/facter-3.1.3.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[nls] + >=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 +} |