Date: Tuesday, December 15, 2020 @ 18:43:34 Author: bastelfreak Revision: 776062
Add ruby-cri 2.15.10-2 Added: ruby-cri/ ruby-cri/repos/ ruby-cri/trunk/ ruby-cri/trunk/PKGBUILD ruby-cri/trunk/Rakefile.patch ruby-cri/trunk/disable-coveralls.patch -------------------------+ PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++++++++++++ Rakefile.patch | 22 +++++++++++++++++ disable-coveralls.patch | 12 +++++++++ 3 files changed, 91 insertions(+) Added: ruby-cri/trunk/PKGBUILD =================================================================== --- ruby-cri/trunk/PKGBUILD (rev 0) +++ ruby-cri/trunk/PKGBUILD 2020-12-15 18:43:34 UTC (rev 776062) @@ -0,0 +1,57 @@ +# Maintainer: Tim Meusel <[email protected]> +# Contributor: Jeremy Audet <[email protected]> +# Contributor: Lucky <[email protected]> + +_gemname='cri' +pkgname="ruby-${_gemname}" +pkgver=2.15.10 +pkgrel=2 +pkgdesc='Library for building easy-to-use command-line tools with support for nested commands' +arch=('any') +url='https://github.com/ddfreyne/cri' +license=('MIT') +makedepends=('ruby-rdoc' 'ruby-yard' 'ruby-rake') +checkdepends=('ruby-minitest') +depends=('ruby') +options=(!emptydirs) +source=("${url}/archive/${pkgver}/${_gemname}-${pkgver}.tar.gz" 'Rakefile.patch' 'disable-coveralls.patch') + +sha512sums=('b18971cb2f7db6dff3e0f6074d770a062f021d35640e9f010a1e31e1bf2286ff60aafe145589fb16b3805a586eecee00fa14239967b9630efee23966c2f4e023' + '44d3db7dfda851d432ff293e178c31e513dfd902cbbf3c7862857b479562f091cd8afcac7c68a4fb4c825286fd6d62c5956be54eeb4e1640cf04bb7d1f71d764' + 'a6ff67046e306b199973754f5526367df5d4b1420ed1cb387a35756d1558eda92e0de481ebb83051cb0126f0c1565bcd4192c9808344a2cb8c212a66bbacb680') + +prepare() { + cd "${srcdir}/${_gemname}-${pkgver}" + + # The Rakefile and a helper file try to load a bunch of gems to report the CI status to a cloud provider + # Also it tries to execute a ruby linter for a legacy Ruby version + # all those tools aren't required to build and test the software, also we don't have them in the repos. + patch --forward --verbose --strip=1 --input='../Rakefile.patch' + patch --forward --verbose --strip=1 --input='../disable-coveralls.patch' +} + +build() { + cd "${srcdir}/${_gemname}-${pkgver}" + gem build "${_gemname}.gemspec" +} + +check() { + cd "${srcdir}/${_gemname}-${pkgver}" + rake test_unit + rake doc +} + +package() { + cd "${srcdir}/${_gemname}-${pkgver}" + local _gemdir="$(gem env gemdir)" + gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/" + install -Dm 644 README.md CODE_OF_CONDUCT.md NEWS.md -t "${pkgdir}/usr/share/doc/${pkgname}/" + mv doc/yardoc "${pkgdir}/usr/share/doc/${pkgname}/" + rm -rf "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/"{README.md,CODE_OF_CONDUCT.md,NEWS.md,.gitignore,.rubocop.yml,.travis.yml,test,LICENSE} + + rm -rf "${pkgdir}/${_gemdir}/cache" +} + +# vim: ts=2 sw=2 et: Added: ruby-cri/trunk/Rakefile.patch =================================================================== --- ruby-cri/trunk/Rakefile.patch (rev 0) +++ ruby-cri/trunk/Rakefile.patch 2020-12-15 18:43:34 UTC (rev 776062) @@ -0,0 +1,22 @@ +diff --git a/Rakefile b/Rakefile +index 968a3e8..52b3bca 100644 +--- a/Rakefile ++++ b/Rakefile +@@ -1,7 +1,6 @@ + # frozen_string_literal: true + + require 'rake/testtask' +-require 'rubocop/rake_task' + require 'yard' + + YARD::Rake::YardocTask.new(:doc) do |yard| +@@ -18,9 +17,3 @@ Rake::TestTask.new(:test_unit) do |t| + t.test_files = Dir['test/**/*_spec.rb'] + Dir['test/**/test_*.rb'] + t.libs << 'test' + end +- +-RuboCop::RakeTask.new(:test_style) +- +-task test: %i[test_unit test_style] +- +-task default: :test Added: ruby-cri/trunk/disable-coveralls.patch =================================================================== --- ruby-cri/trunk/disable-coveralls.patch (rev 0) +++ ruby-cri/trunk/disable-coveralls.patch 2020-12-15 18:43:34 UTC (rev 776062) @@ -0,0 +1,12 @@ +diff --git a/test/helper.rb b/test/helper.rb +index ee4fc27..afd3b01 100644 +--- a/test/helper.rb ++++ b/test/helper.rb +@@ -1,8 +1,5 @@ + # frozen_string_literal: true + +-require 'coveralls' +-Coveralls.wear! +- + require 'minitest' + require 'minitest/autorun'
