diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2017-02-01 15:47:04 -0600 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2017-02-01 15:47:04 -0600 |
commit | 38930c5dfa2d56b429c3c411567b9da178c556a8 (patch) | |
tree | 079da105ee25fe094f3c3eb81e1cdb73d787b22c /dev-ruby | |
parent | dev-python/keystonemiddleware: bup (diff) | |
download | gentoo-38930c5dfa2d56b429c3c411567b9da178c556a8.tar.gz gentoo-38930c5dfa2d56b429c3c411567b9da178c556a8.tar.bz2 gentoo-38930c5dfa2d56b429c3c411567b9da178c556a8.zip |
dev-ruby/facter: bup
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.6.0.ebuild | 88 |
2 files changed, 89 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index 58aec1a32f05..e8a995fcfe2e 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -4,3 +4,4 @@ DIST facter-3.1.8.tar.gz 324710 SHA256 bd393026640baf149507c11d36be144759889d4c9 DIST facter-3.4.1.tar.gz 332857 SHA256 98a576c6891725d90686ff3a0afb94ef8562ddae8cae5e1ce2c0b0bdd4061e55 SHA512 5acee867cfbeab9d93521ab62f04aea233992c5a54bff342180de3c02929646b43ae198faf1c05465d8a6c9b2d5673cf2eb076be91dcb2754da175ce2c161f36 WHIRLPOOL 0632c73b882667aeeb4de7f37c16bc44ac53de94f41ef32abddd882cb0228160a30ab014d5d6b73a14b423596c89dca82aab09877a53384b84489ed8fa504802 DIST facter-3.5.0.tar.gz 358507 SHA256 dca30a5f0e2d7644d085ae4c315f81a2950e407e828dbc01a72c021e4ba29266 SHA512 1a867bb04b10a5c9009f0930fc27c9be5b1bad4c2c80ec951d0f2297f3db0bc05789e820d6fe5c6ea99c944c2b9669cd7bb09dc895b773301b0d49333b8c9153 WHIRLPOOL 516940b18dfd39f881a2a871cfd63ff0ad5377f510bb58ec6ed3382e69b4b447f7d978c2dc91b6c43ea0e1b1756b36e781a2f3b3ffdd998cc24d9f6b676e0881 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 diff --git a/dev-ruby/facter/facter-3.6.0.ebuild b/dev-ruby/facter/facter-3.6.0.ebuild new file mode 100644 index 000000000000..cc7467ce509d --- /dev/null +++ b/dev-ruby/facter/facter-3.6.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 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" + +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 +} |