diff options
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r-- | dev-ruby/facter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.6.3.ebuild | 88 |
2 files changed, 89 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest index 1370ff297db2..590197bde39e 100644 --- a/dev-ruby/facter/Manifest +++ b/dev-ruby/facter/Manifest @@ -7,3 +7,4 @@ DIST facter-3.5.1.tar.gz 359241 SHA256 119412d4490902a3119eb54659bef76fc530f25ac DIST facter-3.6.0.tar.gz 364541 SHA256 58976dd9f806cf8fad329bdc5340d7f5644e61354b7e1dfeabbc0d534015a8ba SHA512 dd85b52581b15eb844007b42f6e46597f387b9f7df704e039eaa9484c92442a75a846f09e3e52a79844f76deee98661daf4df2d1900d2414a727e62431661fe3 WHIRLPOOL be4d558624b11fede768ee11b34b315cca236705b8e2b3657b9a839c7c7be9499b6ab363486decc0f4bf33e95931153fe7a5ff051c8c85ee2323db1a7d52392a DIST facter-3.6.1.tar.gz 364596 SHA256 cee28c3fb0134cfd90417c6facec795c1de724ea067911aa4f5b21b1c3785591 SHA512 7cb01536c2682576a8074abf0d617de31f3c9b79eb7f753e8a2ea8b231a9dc4d2017a1e8cf383f6a664596799111803b40e3772f0559c6de74351b8bb75ec0f3 WHIRLPOOL 2eafcfdae1cf83592907624716e21b8f030f96a42b4fa613eacde99ea895a0eae06bb6571d4a197c418aa0db9ad8f04b56938fc8f490d05423824b321ee11b74 DIST facter-3.6.2.tar.gz 364821 SHA256 0439f4015a61072b026fa09b2b42836e626692ac7e86a9ec8e302103314c9bf9 SHA512 e68ec5d091250bb31b561b4eacbf3d041b6db858593210d6db11e32c87c3bb389f80bd5a951d72d54300c5b0f1f7e1e5461ab685b9f836a344dd64b79da83cb3 WHIRLPOOL d656803daf435841b982c118d149ab9c94bc5b74bb7817036f1dfad1c868d9ff989dd2290c8e4b944b6b36760930e7dcd926301139d6af5c4649047c9e648b8e +DIST facter-3.6.3.tar.gz 370771 SHA256 8c7491db7937a350d738985ee9b4ab370f074d82d89b6ed0115cc21e5adadcbe SHA512 cdcc6bd848c664f395f656d57e0bd28b62cccfdaeccdc9cd364d90a96693c6c8cdc079aa70409297f0ecfdee041c28bad52b3cb4b8981e66de2887bc5eb1bf33 WHIRLPOOL 91d7b8df9e79455f65e89f7a4e17c1cd7076e08091af89a8eb2116bc4716a7b4d4163559cdbed55f356d2fafc6a86cd075de6e15d8b9103be62d6ec3f68b69f6 diff --git a/dev-ruby/facter/facter-3.6.3.ebuild b/dev-ruby/facter/facter-3.6.3.ebuild new file mode 100644 index 000000000000..475bfab3a9a0 --- /dev/null +++ b/dev-ruby/facter/facter-3.6.3.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" + +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 + # 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 + if [[ $(get_libdir) == lib64 ]]; then + dodir /usr/lib64 + mv "${D}/usr/lib/"* "${D}/usr/lib64/" + rmdir "${D}/usr/lib" + fi + doenvd "${FILESDIR}"/00facterdir +} |