summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2016-08-23 17:51:55 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2016-08-23 17:51:55 -0500
commitacdae7a9c415e80271b08a2581ee10156080ac15 (patch)
tree2ce685227e09d9f43fcbf632e84ff6be54c6e19c /dev-ruby/facter
parentdev-java/japitools: Various bug fixes and changes (diff)
downloadgentoo-acdae7a9c415e80271b08a2581ee10156080ac15.tar.gz
gentoo-acdae7a9c415e80271b08a2581ee10156080ac15.tar.bz2
gentoo-acdae7a9c415e80271b08a2581ee10156080ac15.zip
dev-ruby/facter: bup
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r--dev-ruby/facter/Manifest1
-rw-r--r--dev-ruby/facter/facter-3.4.1.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest
index b8f9e7cf2545..a531ef0e108f 100644
--- a/dev-ruby/facter/Manifest
+++ b/dev-ruby/facter/Manifest
@@ -5,3 +5,4 @@ DIST facter-3.1.6.tar.gz 324278 SHA256 6e55ce2fbf1cc451974dec80aaa96a05a03b37822
DIST facter-3.1.8.tar.gz 324710 SHA256 bd393026640baf149507c11d36be144759889d4c90174d7c6bfb35e0a341fbca SHA512 2884c2c0bb3075b2552763dee7f33228b0e70b4eb46367f52c4cbf9e01930ddc5e58d062d06ced4174900fc3eae5214d80471a4fe499bf0f2ac0278640e0e8c7 WHIRLPOOL 465432940e068318da0028ce1c8ea3084392212cfc6a50449a3ba034fe721836c88ba16c2248b4b3f062a890087421c93a3d14574c8d03e1eafe4f4f82b49d0d
DIST facter-3.3.0.tar.gz 324839 SHA256 a143ec499f77c355a843fef7999c7fab13134ff0cbeb0ab403edc499e974d100 SHA512 a9a3dbceff5ecff85b3080dd744fd2502ce0c0306ca0e585b26d2df7c4fa90772237ecdec221b771212f99d291c52d8bc4162389b15a4a1260441a3cecf4fe23 WHIRLPOOL f2faffdf76062f90ed725133522e148a27538becd5c8f5059cd2b7704a6e43b8ea1510d016d39fa2f79fb9ea69d1e6001970bba87b983553425db9ff0a9a4733
DIST facter-3.4.0.tar.gz 330464 SHA256 c8316e980a74002b263ed2ee9e271b51cff772d02be99a576ca96f292ac4c507 SHA512 5dfa6ee34c28598f78a93ff23c33a5db0b1aa85a4b1c19ccad94c6c20630267e5ee7c37e85fb7cbcec78754185dbe8194609d21d46eed609db6cb6d9403dc629 WHIRLPOOL 10b57f55eb1163515a7607964ce345e6d441fcd63c7ca503a34057845a4c3192684bbd2efca586727dd0bdb9ad54bdf0c33037f6077b42494be791139ee1ae17
+DIST facter-3.4.1.tar.gz 332857 SHA256 98a576c6891725d90686ff3a0afb94ef8562ddae8cae5e1ce2c0b0bdd4061e55 SHA512 5acee867cfbeab9d93521ab62f04aea233992c5a54bff342180de3c02929646b43ae198faf1c05465d8a6c9b2d5673cf2eb076be91dcb2754da175ce2c161f36 WHIRLPOOL 0632c73b882667aeeb4de7f37c16bc44ac53de94f41ef32abddd882cb0228160a30ab014d5d6b73a14b423596c89dca82aab09877a53384b84489ed8fa504802
diff --git a/dev-ruby/facter/facter-3.4.1.ebuild b/dev-ruby/facter/facter-3.4.1.ebuild
new file mode 100644
index 000000000000..33350a6e07f4
--- /dev/null
+++ b/dev-ruby/facter/facter-3.4.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="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://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${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-libs/leatherman-0.4.2
+ >=dev-cpp/yaml-cpp-0.5.1
+ dev-cpp/cpp-hocon
+ 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() {
+ # Remove the code that installs facter.rb to the wrong directory.
+ sed -i '/install(.*facter\.rb/d' lib/CMakeLists.txt || die
+ sed -i '/install(.*facter\.jar/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
+ doenvd "${FILESDIR}"/00facterdir
+}