diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-08-11 12:41:34 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-08-11 12:43:36 -0500 |
commit | 7ebe216f8b9cb9a152e8f0d583a080542c671f39 (patch) | |
tree | 40be00b675353ee6d86af36f688681b3a18e9e15 /dev-ruby | |
parent | net-ftp/tlswrap: new revision that respects CFLAGS. (diff) | |
download | gentoo-7ebe216f8b9cb9a152e8f0d583a080542c671f39.tar.gz gentoo-7ebe216f8b9cb9a152e8f0d583a080542c671f39.tar.bz2 gentoo-7ebe216f8b9cb9a152e8f0d583a080542c671f39.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.4.0.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index 3a1fe2009cd8..b8f9e7cf2545 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -4,3 +4,4 @@ DIST facter-3.1.4.tar.gz 620501 SHA256 7ca1872edbdc5ffcd11dc292e5e0625c9e0d35aa7 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 +DIST facter-3.4.0.tar.gz 330464 SHA256 c8316e980a74002b263ed2ee9e271b51cff772d02be99a576ca96f292ac4c507 SHA512 5dfa6ee34c28598f78a93ff23c33a5db0b1aa85a4b1c19ccad94c6c20630267e5ee7c37e85fb7cbcec78754185dbe8194609d21d46eed609db6cb6d9403dc629 WHIRLPOOL 10b57f55eb1163515a7607964ce345e6d441fcd63c7ca503a34057845a4c3192684bbd2efca586727dd0bdb9ad54bdf0c33037f6077b42494be791139ee1ae17 diff --git a/dev-ruby/facter/facter-3.4.0.ebuild b/dev-ruby/facter/facter-3.4.0.ebuild new file mode 100644 index 000000000000..099be1414c33 --- /dev/null +++ b/dev-ruby/facter/facter-3.4.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 +} |