diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-03-17 15:27:22 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-03-17 15:34:29 -0500 |
commit | cd8a8f81f1edd4a325f2f8a16384075eb9d449a2 (patch) | |
tree | 827e41d43c282c40a8649bcc3416f4c43830e918 /dev-ruby | |
parent | media-libs/giflib: Removed old. (diff) | |
download | gentoo-cd8a8f81f1edd4a325f2f8a16384075eb9d449a2.tar.gz gentoo-cd8a8f81f1edd4a325f2f8a16384075eb9d449a2.tar.bz2 gentoo-cd8a8f81f1edd4a325f2f8a16384075eb9d449a2.zip |
dev-ruby/facter: bup
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.1.5.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index 8622de093130..fab6f64a7b8f 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -6,3 +6,4 @@ DIST facter-3.0.2.tar.gz 508583 SHA256 2fee1ee938196790f24b7b876ff04a5d69c0ac149 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 +DIST facter-3.1.5.tar.gz 295069 SHA256 bbe2c25278be3e8a19b586ef4f961763cf12de86937f418adb667d41bc48534c SHA512 c3b082a1e83c84aa99be92fe62d26b966228fcab924471b697a666a0a8939e19159e3e0d6905680181e6e81d67551492c57aaac3f18f75842829db2721a9682f WHIRLPOOL 4811675bc0a024646e5ea7ac90714a27b0350c4ef06c396e16216fb9e69ead4dc7cf8a9a9b38f0518ca1b311337d3dad225e8b7a78345e6e645b5a84e7807b10 diff --git a/dev-ruby/facter/facter-3.1.5.ebuild b/dev-ruby/facter/facter-3.1.5.ebuild new file mode 100644 index 000000000000..53f9a1416e0a --- /dev/null +++ b/dev-ruby/facter/facter-3.1.5.ebuild @@ -0,0 +1,73 @@ +# 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 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://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)/\ $(get_libdir))/g" lib/CMakeLists.txt || die + sed -i "s/lib\")/$(get_libdir)\")/g" 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 + -DBLKID_LIBRARY=/$(get_libdir)/libblkid.so.1 + ) + 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 + if [[ $(get_libdir) == lib64 ]]; then + dodir /usr/lib64 + mv "${D}/usr/lib/"* "${D}/usr/lib64/" + rmdir "${D}/usr/lib" + fi +} |