summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2017-03-09 13:04:20 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2017-03-09 13:04:20 -0600
commit1f43b2f2d0edefd1a072b999bac99df38b5e1a8d (patch)
treeb3355bc0f85269ce37b28cebccc89aa993bb579d /dev-ruby/facter
parentapp-emulation/qemu: update live-ebuild (diff)
downloadgentoo-1f43b2f2d0edefd1a072b999bac99df38b5e1a8d.tar.gz
gentoo-1f43b2f2d0edefd1a072b999bac99df38b5e1a8d.tar.bz2
gentoo-1f43b2f2d0edefd1a072b999bac99df38b5e1a8d.zip
dev-ruby/facter: 3.6.2 bup for Soap__
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r--dev-ruby/facter/Manifest1
-rw-r--r--dev-ruby/facter/facter-3.6.2.ebuild87
2 files changed, 88 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest
index 4acf2d03d430..1370ff297db2 100644
--- a/dev-ruby/facter/Manifest
+++ b/dev-ruby/facter/Manifest
@@ -6,3 +6,4 @@ DIST facter-3.5.0.tar.gz 358507 SHA256 dca30a5f0e2d7644d085ae4c315f81a2950e407e8
DIST facter-3.5.1.tar.gz 359241 SHA256 119412d4490902a3119eb54659bef76fc530f25ac4b40139b71037ac81637cb2 SHA512 2d5dcc39ecb31796c17da96ca1d61f4b6a5acde9c8865db0af038021e73b088b7ba01e090bbc89e0c158d39b9d5c887790bcd2b322d3c436b50b0b602a9bd320 WHIRLPOOL 348e0f3ab564f9c439b4fce3ff1930820d41e6f522d9e2100494eaa316135318d5159d9fdb5deb34b9439b9cf1a001b9ae2adb251c128c82933b7c86c058de7e
DIST facter-3.6.0.tar.gz 364541 SHA256 58976dd9f806cf8fad329bdc5340d7f5644e61354b7e1dfeabbc0d534015a8ba SHA512 dd85b52581b15eb844007b42f6e46597f387b9f7df704e039eaa9484c92442a75a846f09e3e52a79844f76deee98661daf4df2d1900d2414a727e62431661fe3 WHIRLPOOL be4d558624b11fede768ee11b34b315cca236705b8e2b3657b9a839c7c7be9499b6ab363486decc0f4bf33e95931153fe7a5ff051c8c85ee2323db1a7d52392a
DIST facter-3.6.1.tar.gz 364596 SHA256 cee28c3fb0134cfd90417c6facec795c1de724ea067911aa4f5b21b1c3785591 SHA512 7cb01536c2682576a8074abf0d617de31f3c9b79eb7f753e8a2ea8b231a9dc4d2017a1e8cf383f6a664596799111803b40e3772f0559c6de74351b8bb75ec0f3 WHIRLPOOL 2eafcfdae1cf83592907624716e21b8f030f96a42b4fa613eacde99ea895a0eae06bb6571d4a197c418aa0db9ad8f04b56938fc8f490d05423824b321ee11b74
+DIST facter-3.6.2.tar.gz 364821 SHA256 0439f4015a61072b026fa09b2b42836e626692ac7e86a9ec8e302103314c9bf9 SHA512 e68ec5d091250bb31b561b4eacbf3d041b6db858593210d6db11e32c87c3bb389f80bd5a951d72d54300c5b0f1f7e1e5461ab685b9f836a344dd64b79da83cb3 WHIRLPOOL d656803daf435841b982c118d149ab9c94bc5b74bb7817036f1dfad1c868d9ff989dd2290c8e4b944b6b36760930e7dcd926301139d6af5c4649047c9e648b8e
diff --git a/dev-ruby/facter/facter-3.6.2.ebuild b/dev-ruby/facter/facter-3.6.2.ebuild
new file mode 100644
index 000000000000..804466effd7b
--- /dev/null
+++ b/dev-ruby/facter/facter-3.6.2.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+
+BDEPEND="
+ >=sys-devel/gcc-4.8:*
+ >=dev-libs/boost-1.54[nls]
+ >=dev-libs/leatherman-0.9.3
+ >=dev-cpp/yaml-cpp-0.5.1
+ dev-cpp/cpp-hocon"
+CDEPEND="
+ dev-libs/openssl:*
+ sys-apps/util-linux
+ app-emulation/virt-what
+ net-misc/curl
+ !<app-admin/puppet-4.0.0"
+
+RDEPEND="${CDEPEND}"
+DEPEND="${BDEPEND}
+ ${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
+ # patches
+ epatch "${FILESDIR}/facter-3.5.0-jar.patch"
+ epatch_user
+}
+
+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
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+each_ruby_install() {
+ doruby "${BUILD_DIR}"/lib/facter.rb
+}
+
+src_test() {
+ cmake-utils_src_test
+}
+
+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
+}