diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-04-30 21:30:41 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-04-30 22:10:43 +0200 |
commit | 4d182e278a8d0e5a4062817e1d1457c581e8ea43 (patch) | |
tree | b98584524928ff8d3dd4774f7a12d69152d9d039 /dev-ruby/jeweler | |
parent | dev-ruby/kramdown: cleanup (diff) | |
download | gentoo-4d182e278a8d0e5a4062817e1d1457c581e8ea43.tar.gz gentoo-4d182e278a8d0e5a4062817e1d1457c581e8ea43.tar.bz2 gentoo-4d182e278a8d0e5a4062817e1d1457c581e8ea43.zip |
dev-ruby/jeweler: add ruby24 and fix bug 646864
Always depend on yard since it is used unconditionally in the Rakefile.
Closes: https://bugs.gentoo.org/646864
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-ruby/jeweler')
-rw-r--r-- | dev-ruby/jeweler/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/jeweler/jeweler-2.3.9.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-ruby/jeweler/Manifest b/dev-ruby/jeweler/Manifest index f7491da1d241..8d408576a837 100644 --- a/dev-ruby/jeweler/Manifest +++ b/dev-ruby/jeweler/Manifest @@ -1 +1,2 @@ DIST jeweler-2.3.7.gem 61952 BLAKE2B fff72e299131b3080c36002e90d36e89db8fcef85cb5e8cbb0976e4b06f0555117d2b6e6375d298f03683565a8d2826471a2f847f481f215d1ccdc231346e1e9 SHA512 4ca397c75059a28d623afbb22fc5b2b5627e7c3f078b2b77eb623d0b70f518fa58fce54526e12b417ffbf40e1b635dfbd57ff1d91264ed3ca7bb6917bb4ca784 +DIST jeweler-2.3.9.gem 61952 BLAKE2B 2c802f27db9a5018473792c184c56b1d2262ec4e30ba24da964bd8dfebecc7551ea50f4a4c0f823907a14afc5358036ff2efb0d9e8404befb2c451688f578b1e SHA512 d8e91702cf046cd16b5b0f718966adecaa7777f2ce526e3fac3be97f8e91ffa32362a9a96d1c8b390b400f38d0d7a59860437487459cb0490366ef2d38fec6f2 diff --git a/dev-ruby/jeweler/jeweler-2.3.9.ebuild b/dev-ruby/jeweler/jeweler-2.3.9.ebuild new file mode 100644 index 000000000000..e953d1d6e966 --- /dev/null +++ b/dev-ruby/jeweler/jeweler-2.3.9.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24" + +RUBY_FAKEGEM_TASK_DOC="-Ilib yard" +RUBY_FAKEGEM_DOCDIR="doc" + +# Tests and features also need the same set of dependencies present. +RUBY_FAKEGEM_TASK_TEST="-Ilib test" + +RUBY_FAKEGEM_EXTRADOC="ChangeLog.markdown README.markdown" + +RUBY_FAKEGEM_GEMSPEC="jeweler.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Rake tasks to manage gems, versioning and generate new projects" +HOMEPAGE="https://wiki.github.com/technicalpickles/jeweler" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_bdepend " + dev-ruby/yard + test? ( + dev-ruby/shoulda + dev-ruby/rr + dev-ruby/test-unit-rr + dev-ruby/test_construct + dev-ruby/test-unit:2 + ) +" + +ruby_add_rdepend " + dev-ruby/builder:* + >=dev-ruby/bundler-1.0 + >=dev-ruby/git-1.2.5 + >=dev-ruby/github_api-0.16.0 + >=dev-ruby/highline-1.6.15 + >=dev-ruby/nokogiri-1.5.10 + dev-ruby/psych:0 + dev-ruby/rake + dev-ruby/rdoc + dev-ruby/semver2 +" + +all_ruby_prepare() { + # Remove bundler support. + rm Gemfile || die + sed -i -e '/bundler/d' -e '/Bundler.setup/d' Rakefile test/test_helper.rb features/support/env.rb || die + + sed -i -e '/coverall/I s:^:#:' \ + -e '1i gem "test-unit"' test/test_helper.rb || die + + # Avoid a test that only passes in the git repository. + sed -i -e '/find the base repo/,/^ end/ s:^:#:' test/test_jeweler.rb || die + + # Avoid dependency on cucumber, make sure semver2 gem is used (puppet also provides "semver") + sed -i -e '/cucumber/,$ s:^:#:' \ + -e '1igem "semver2"' Rakefile || die + + # Loosen github_api requirement + sed -i -e '/github_api/ s/0.16.0/0.16/' ${RUBY_FAKEGEM_GEMSPEC} || die +} |