diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-02-11 16:09:52 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-02-11 16:09:52 +0000 |
commit | f78108598211053d41752a83e0345441bb9014ae (patch) | |
tree | dd2fc7ae0a1aea7bda4942ab0c453d1e55284b37 /dev-ruby/facter/facter-9999.ebuild | |
parent | dc45b83b28fb83e9659492066e347b8dc60bc9e3 (diff) |
gentoo resync : 11.02.2018
Diffstat (limited to 'dev-ruby/facter/facter-9999.ebuild')
-rw-r--r-- | dev-ruby/facter/facter-9999.ebuild | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/dev-ruby/facter/facter-9999.ebuild b/dev-ruby/facter/facter-9999.ebuild index 95b52c0fbfd3..c15426643a6a 100644 --- a/dev-ruby/facter/facter-9999.ebuild +++ b/dev-ruby/facter/facter-9999.ebuild @@ -1,22 +1,29 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 USE_RUBY="ruby21 ruby22 ruby23 ruby24" # git-r3 goes after ruby-ng so that it overrides src_unpack properly -inherit cmake-utils eutils multilib ruby-ng git-r3 +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/" -EGIT_REPO_URI="https://github.com/puppetlabs/facter.git" -EGIT_BRANCH="master" -S="${S}/${P}" LICENSE="Apache-2.0" SLOT="0" IUSE="debug test" -KEYWORDS="" +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/puppetlabs/facter.git" + EGIT_BRANCH="master" + S="${S}/${P}" +else + [[ "${PV}" = *_rc* ]] || \ + KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" + SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + S="${S}/all/${P}" +fi BDEPEND=" >=sys-devel/gcc-4.8:* @@ -31,6 +38,8 @@ CDEPEND=" >=dev-cpp/yaml-cpp-0.5.1 !<app-admin/puppet-4.0.0" +ruby_add_bdepend "test? ( dev-ruby/rake dev-ruby/rspec:2 dev-ruby/mocha:0.14 )" + RDEPEND="${CDEPEND}" DEPEND="${BDEPEND} ${CDEPEND}" @@ -44,6 +53,14 @@ src_prepare() { 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 + # be explicit about the version of rspec we test with and use the + # correct lib directory for tests + sed -i -e '/libfacter.*specs/ s/rspec/rspec-2/' \ + -e '/libfacter.*specs/ s/lib64/lib/' CMakeLists.txt || die + # be more lenient for software versions for tests + sed -i -e '/rake/ s/~> 10.1.0/>= 10/' \ + -e '/rspec/ s/2.11.0/2.11/' \ + -e '/mocha/ s/0.10.5/0.14.0/' lib/Gemfile || die # patches default cmake-utils_src_prepare |