diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-05-20 13:14:42 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-05-20 13:18:48 -0500 |
commit | aeb3ed4a7725d99b2ffba7288690042cea3cf4da (patch) | |
tree | 25eb2070aa7c4ec8f99ec317fb3d9b0785107e12 /dev-ruby/facter | |
parent | dev-cpp/clucene: Fix build with gcc-6 (diff) | |
download | gentoo-aeb3ed4a7725d99b2ffba7288690042cea3cf4da.tar.gz gentoo-aeb3ed4a7725d99b2ffba7288690042cea3cf4da.tar.bz2 gentoo-aeb3ed4a7725d99b2ffba7288690042cea3cf4da.zip |
dev-ruby/facter: bup
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.1.7.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index d4035e856eaa..12ee9070cc5c 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -2,3 +2,4 @@ DIST facter-2.4.1.gem 236544 SHA256 4c8836066378d387c0561e4c3574865fa10d85d7474d DIST facter-2.4.6.gem 246272 SHA256 56ffc5fbcd550fcdb4788bc4d7fd0199bff69937d6df1e5a1f61c92d143d78fe SHA512 a0a2bef37451ab96ed331c79171f77d89b6db430b083e6888a306fa5b57a72986b7f600cad3e09b5f4706e54736d1d32ea25525fe18a6108cc95f315da16664a WHIRLPOOL fca6165c55d6123e1ab123e5d3459943fda845e696b111520fb6de682ab56fd51a9a4ca072e0a533496c0aedd83b2b26f827147ed01a30dbe72389250437301e DIST facter-3.1.4.tar.gz 620501 SHA256 7ca1872edbdc5ffcd11dc292e5e0625c9e0d35aa7966d8803859da0d035c7fcf SHA512 2fcc990c8e26349b9fa87cd1f7c43dffd49ffacf03c3467e836ea0bcd7527e1d40b6240646fd7dd6346121ca802fe86e996e209d838db91e8fe55298fdab4e0e WHIRLPOOL 224b17990fc559fce3a7c9b31c14dd45033127b078d68fac024cb6db192573085187163932c9dacd8fd94a281bd8d58ac1c75229a8e3bce4c4f070ebc81ff0f3 DIST facter-3.1.6.tar.gz 324278 SHA256 6e55ce2fbf1cc451974dec80aaa96a05a03b37822e69be9ac517d8006544be17 SHA512 9f6bcec76be8af68f4b4179835a8d4758a29fb772a6d041d7901f839004efdf0145507340c67d3c701284f7ac04e9bfcd1297f16bdbc0ec0184dcbd9ab9c0354 WHIRLPOOL 0d62d84565df2eab88253b5b8fc851751ec20d720675555c351b5b1a207587d99ab10f685ba62a2048fef8a56b0428ae881c46a9fda14c06d832899ad5d01ac9 +DIST facter-3.1.7.tar.gz 324569 SHA256 ebb703068daaf6ff880be8d14898709ccea44288874450e25a887ecb0a5e04ae SHA512 b2c7c76156c3b9a4b943188114c89f52fb8207e8776d3af826b6551b12d8cc2c679d4a51dd1318a8acb587e7fda08f80049b405ca8b306a1d787a6112f548de0 WHIRLPOOL 592cc981c9b5e3a2fe52743d9086a20e6a135f96052afb1adc27ee8897c469bb7f57b85d3fb0ec335eaa3c44a2e656268521e5232f23d7b866e1162dffbf30d6 diff --git a/dev-ruby/facter/facter-3.1.7.ebuild b/dev-ruby/facter/facter-3.1.7.ebuild new file mode 100644 index 000000000000..034eedb2441c --- /dev/null +++ b/dev-ruby/facter/facter-3.1.7.ebuild @@ -0,0 +1,74 @@ +# 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://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-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 +} |