Skip to content

Commit

Permalink
dev-ruby/facter: bup
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.20.1
  • Loading branch information
prometheanfire committed Nov 3, 2015
1 parent 41d96f3 commit e93d96f
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-ruby/facter/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -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
65 changes: 65 additions & 0 deletions dev-ruby/facter/facter-3.1.1.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit e93d96f

Please sign in to comment.