diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2017-07-19 13:50:19 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2017-07-19 15:54:53 -0500 |
commit | 4681664538cb295a59930d42cfc395771c3f8208 (patch) | |
tree | 0ebcfbc4d61443672b68f666ca030be2639ee227 /dev-ruby | |
parent | dev-python/python-heatclient: cleanup (diff) | |
download | gentoo-4681664538cb295a59930d42cfc395771c3f8208.tar.gz gentoo-4681664538cb295a59930d42cfc395771c3f8208.tar.bz2 gentoo-4681664538cb295a59930d42cfc395771c3f8208.zip |
dev-ruby/facter: bup 3.7.1
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.7.1.ebuild | 88 |
2 files changed, 89 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index 8af1894dfa1e..ae8bac8baf50 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -7,3 +7,4 @@ DIST facter-3.6.3.tar.gz 370771 SHA256 8c7491db7937a350d738985ee9b4ab370f074d82d DIST facter-3.6.4.tar.gz 373722 SHA256 de12c53c74dd3f39633e61f62a900842d829cbe24b76e72b0c6e85000a99b8bc SHA512 d5e03bb40da448805a56accc2fb972569f686a1e8c8b343d4e0defb5a00a982665496049174c225a8b04abb4d09112bd2117a8a96c9360bb2e36e4d569d86337 WHIRLPOOL f7a05a044c7031f248a888458678b48fc8d7996a2d0bc588323bf6c76513ff4fc838f0299db19f212dd0b5ba094b8135558db7da7f4ff596267832354d369634 DIST facter-3.6.5.tar.gz 371967 SHA256 00e37c4c2cb0e8a95e3957239477e23c778c37d61d71f66bdab3e905ff969876 SHA512 d925a9f8e0c0a2b94f56b6683b99fc70b7d48ad3388001bc341abed5b9c4594701a1756430fa2fd6a9ac8a2d3ec73562f1f8b909d364dc8b1c1e3c81f15041d6 WHIRLPOOL ac4f5a1d52c8890a085f7f4aa6ee76a93c6af76021e4c1461164ba6d5536c0d1a371450247e40ecf5803533e27b25dbc6aa0b992d8444d65b0c76902703b6662 DIST facter-3.7.0.tar.gz 374550 SHA256 b5b507df89757982309c089f10bde333124fa11eba7de6aec3639b51570d28b3 SHA512 c2c1e08526625fc031a79c57fa8d3e7d7ce4271c84ba11e1a721bdc421103ef70144e0a85b612bb5936bfc3c275a562ddc40fda675083a03c5d8b46779304a7e WHIRLPOOL 0400b3cc42d5e1fa298b68d865839562b6e356c2ade764d683110f754e214e373356420e6b4ed54b1014a4dcf0c03185eedf53c7d1ee24145d8da3f4e4d167a5 +DIST facter-3.7.1.tar.gz 374576 SHA256 fe62b0a33c9edd3f945c1d3057e45172a26952439e0e922341d3844864b92320 SHA512 3b2d218d60f5ad9ef756a50540f638303b7a4eb0ea2afca10d2c41f4e6e3f6c2bb6337de417e4989664e32317b0f8db921fed68e813e4cebe10083c943b33fee WHIRLPOOL 342d3d26cb23116a469530f4e3621575650dbfce0b66f8e5debcd05d05736b24df14b20213b4540a0be2065b50e445385b4c3cc583c88490dce4b59b1408e806 diff --git a/dev-ruby/facter/facter-3.7.1.ebuild b/dev-ruby/facter/facter-3.7.1.ebuild new file mode 100644 index 000000000000..cc659bb14f6a --- /dev/null +++ b/dev-ruby/facter/facter-3.7.1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +inherit cmake-utils eutils 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/leatherman-1.0.0 + dev-cpp/cpp-hocon" +CDEPEND=" + dev-libs/openssl:* + sys-apps/util-linux + app-emulation/virt-what + net-misc/curl + >=dev-libs/boost-1.54[nls] + >=dev-cpp/yaml-cpp-0.5.1 + !<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 + # make the require work + sed -i 's/\${LIBFACTER_INSTALL_DESTINATION}\///g' lib/facter.rb.in || die + # patches + 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 + + # need a variable file in env.d :( + diropts -m0755 + dodir /etc/env.d + echo -n "FACTERDIR=/usr/$(get_libdir)" > "${D}/etc/env.d/00facterdir" + fperms 0644 /etc/env.d/00facterdir +} |