diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-07-19 21:05:29 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-07-19 21:05:29 -0500 |
commit | 572c1300b7dce3a246e323b86a7ca798ecaed684 (patch) | |
tree | a697cf11cd4c0206d9094a3651097fb063717013 /dev-ruby | |
parent | net-dns/unbound: bump. (diff) | |
download | gentoo-572c1300b7dce3a246e323b86a7ca798ecaed684.tar.gz gentoo-572c1300b7dce3a246e323b86a7ca798ecaed684.tar.bz2 gentoo-572c1300b7dce3a246e323b86a7ca798ecaed684.zip |
dev-ruby/facter: bup
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.3.0.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index dbe3f6ad140f..3a1fe2009cd8 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -3,3 +3,4 @@ DIST facter-2.4.6.gem 246272 SHA256 56ffc5fbcd550fcdb4788bc4d7fd0199bff69937d6df 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.8.tar.gz 324710 SHA256 bd393026640baf149507c11d36be144759889d4c90174d7c6bfb35e0a341fbca SHA512 2884c2c0bb3075b2552763dee7f33228b0e70b4eb46367f52c4cbf9e01930ddc5e58d062d06ced4174900fc3eae5214d80471a4fe499bf0f2ac0278640e0e8c7 WHIRLPOOL 465432940e068318da0028ce1c8ea3084392212cfc6a50449a3ba034fe721836c88ba16c2248b4b3f062a890087421c93a3d14574c8d03e1eafe4f4f82b49d0d +DIST facter-3.3.0.tar.gz 324839 SHA256 a143ec499f77c355a843fef7999c7fab13134ff0cbeb0ab403edc499e974d100 SHA512 a9a3dbceff5ecff85b3080dd744fd2502ce0c0306ca0e585b26d2df7c4fa90772237ecdec221b771212f99d291c52d8bc4162389b15a4a1260441a3cecf4fe23 WHIRLPOOL f2faffdf76062f90ed725133522e148a27538becd5c8f5059cd2b7704a6e43b8ea1510d016d39fa2f79fb9ea69d1e6001970bba87b983553425db9ff0a9a4733 diff --git a/dev-ruby/facter/facter-3.3.0.ebuild b/dev-ruby/facter/facter-3.3.0.ebuild new file mode 100644 index 000000000000..099be1414c33 --- /dev/null +++ b/dev-ruby/facter/facter-3.3.0.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="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 +} |