[arch-commits] Commit in ruby-metadata-json-lint/repos/community-any (6 files)

Tim Meusel bastelfreak at gemini.archlinux.org
Mon Jun 27 15:28:21 UTC 2022


    Date: Monday, June 27, 2022 @ 15:28:21
  Author: bastelfreak
Revision: 1239697

archrelease: copy trunk to community-any

Added:
  ruby-metadata-json-lint/repos/community-any/PKGBUILD
    (from rev 1239696, ruby-metadata-json-lint/trunk/PKGBUILD)
  ruby-metadata-json-lint/repos/community-any/disable_rubocop.patch
    (from rev 1239696, ruby-metadata-json-lint/trunk/disable_rubocop.patch)
  ruby-metadata-json-lint/repos/community-any/dont_call_msl_via-bundler.patch
    (from rev 1239696, ruby-metadata-json-lint/trunk/dont_call_msl_via-bundler.patch)
Deleted:
  ruby-metadata-json-lint/repos/community-any/PKGBUILD
  ruby-metadata-json-lint/repos/community-any/disable_rubocop.patch
  ruby-metadata-json-lint/repos/community-any/dont_call_msl_via-bundler.patch

---------------------------------+
 PKGBUILD                        |  119 +++++++++++++++++++-------------------
 disable_rubocop.patch           |   50 +++++++--------
 dont_call_msl_via-bundler.patch |   62 +++++++++----------
 3 files changed, 117 insertions(+), 114 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-27 15:28:13 UTC (rev 1239696)
+++ PKGBUILD	2022-06-27 15:28:21 UTC (rev 1239697)
@@ -1,58 +0,0 @@
-# Maintainer: Tim Meusel <tim at bastelfreak.de>
-
-_gemname='metadata-json-lint'
-pkgname="ruby-${_gemname}"
-pkgver=3.0.2
-pkgrel=1
-pkgdesc='Tool to check the validity of Puppet metadata.json files'
-arch=('any')
-url="https://github.com/voxpupuli/${_gemname}"
-license=('Apache')
-depends=('ruby' 'ruby-json-schema' 'ruby-spdx-licenses' 'ruby-semantic_puppet')
-makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-rspec' 'ruby-bundler')
-options=('!emptydirs')
-source=("${url}/archive/${pkgver}/${_gemname}-${pkgver}.tar.gz" 'disable_rubocop.patch' 'dont_call_msl_via-bundler.patch')
-sha512sums=('fa97ca016707057339921161a4ffff2f648eae86464122a2fd3a20441c7bdff68d78c1a0cc301a9d18657cf96843e924b20319a6647c04966e8620d7c3239038'
-            '479a94337a0d3ec93f017780dedcbfec6173ab1ba3c20c402e889cf51d7309b892bb2c557ee3de4ad8d502742a44cb272420b997c3b90753c22c0a6cd590ca94'
-            'ed730430b39554b74586fd47c85581afa289a700a677b5c9189fca06ccedb10b31bdef424f692949ed3fa54b292d7a51bb07d838f80d4bcd1cfe80e6d69e398c')
-
-prepare() {
-  cd "${srcdir}/${_gemname}-${pkgver}"
-  # allow latest dependencies
-  sed --in-place 's|~>|>=|g' "${_gemname}.gemspec"
-
-  # drop development deps, they only cause dependency issues and aren't required
-  sed --in-place '/add_development_dependency/d' "${_gemname}.gemspec"
-
-  # disable rubocop
-  patch --forward --verbose --strip=1 --input=../disable_rubocop.patch
-
-  # we build with a release tar ball, not a git archive
-  sed --in-place 's|`git ls-files -z`.split("\\x0")|`find`.split("\\n")|' "${_gemname}.gemspec"
-  sed --in-place 's|grep(%r{^bin/})|grep(%r{^./bin/})|' "${_gemname}.gemspec"
-
-  # the tests work through bundle, which doesn't work during *our* build
-  patch --forward --verbose --strip=1 --input=../dont_call_msl_via-bundler.patch
-}
-
-build() {
-  cd "${srcdir}/${_gemname}-${pkgver}"
-  gem build "${_gemname}.gemspec"
-}
-
-check() {
-  cd "${srcdir}/${_gemname}-${pkgver}"
-  rake spec test:acceptance
-}
-
-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 HISTORY.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-
-  rm -rf "${pkgdir}/${_gemdir}/cache"
-}

Copied: ruby-metadata-json-lint/repos/community-any/PKGBUILD (from rev 1239696, ruby-metadata-json-lint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-27 15:28:21 UTC (rev 1239697)
@@ -0,0 +1,61 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='metadata-json-lint'
+pkgname="ruby-${_gemname}"
+pkgver=3.0.2
+pkgrel=2
+pkgdesc='Tool to check the validity of Puppet metadata.json files'
+arch=('any')
+url="https://github.com/voxpupuli/${_gemname}"
+license=('Apache')
+depends=('ruby' 'ruby-json-schema' 'ruby-spdx-licenses' 'ruby-semantic_puppet')
+makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-rspec' 'ruby-bundler')
+options=('!emptydirs')
+source=("${url}/archive/${pkgver}/${_gemname}-${pkgver}.tar.gz" 'disable_rubocop.patch' 'dont_call_msl_via-bundler.patch')
+sha512sums=('fa97ca016707057339921161a4ffff2f648eae86464122a2fd3a20441c7bdff68d78c1a0cc301a9d18657cf96843e924b20319a6647c04966e8620d7c3239038'
+            '479a94337a0d3ec93f017780dedcbfec6173ab1ba3c20c402e889cf51d7309b892bb2c557ee3de4ad8d502742a44cb272420b997c3b90753c22c0a6cd590ca94'
+            'ed730430b39554b74586fd47c85581afa289a700a677b5c9189fca06ccedb10b31bdef424f692949ed3fa54b292d7a51bb07d838f80d4bcd1cfe80e6d69e398c')
+
+prepare() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  # allow latest dependencies
+  sed --in-place 's|~>|>=|g' "${_gemname}.gemspec"
+
+  # drop development deps, they only cause dependency issues and aren't required
+  sed --in-place '/add_development_dependency/d' "${_gemname}.gemspec"
+
+  # disable rubocop
+  patch --forward --verbose --strip=1 --input=../disable_rubocop.patch
+
+  # we build with a release tar ball, not a git archive
+  sed --in-place 's|`git ls-files -z`.split("\\x0")|`find`.split("\\n")|' "${_gemname}.gemspec"
+  sed --in-place 's|grep(%r{^bin/})|grep(%r{^./bin/})|' "${_gemname}.gemspec"
+
+  # the tests work through bundle, which doesn't work during *our* build
+  patch --forward --verbose --strip=1 --input=../dont_call_msl_via-bundler.patch
+
+  # remove the builbdate from the gemspec to be reproducible
+  sed --in-place '/s.date/d' "${_gemname}.gemspec"
+}
+
+build() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  gem build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  rake spec test:acceptance
+}
+
+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 HISTORY.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+}

Deleted: disable_rubocop.patch
===================================================================
--- disable_rubocop.patch	2022-06-27 15:28:13 UTC (rev 1239696)
+++ disable_rubocop.patch	2022-06-27 15:28:21 UTC (rev 1239697)
@@ -1,25 +0,0 @@
-diff --git a/Rakefile b/Rakefile
-index 2969965..b3b271a 100644
---- a/Rakefile
-+++ b/Rakefile
-@@ -1,19 +1,5 @@
- desc 'Run all tests'
--task :test => %i[rubocop spec test:acceptance]
--
--require 'rubocop/rake_task'
--RuboCop::RakeTask.new(:rubocop) do |task|
--  # These make the rubocop experience maybe slightly less terrible
--  task.options = ['-D', '-S', '-E']
--
--  # Use Rubocop's Github Actions formatter if possible
--  if ENV['GITHUB_ACTIONS'] == 'true'
--    rubocop_spec = Gem::Specification.find_by_name('rubocop')
--    if Gem::Version.new(rubocop_spec.version) >= Gem::Version.new('1.2')
--      task.formatters << 'github'
--    end
--  end
--end
-+task :test => %i[spec test:acceptance]
- 
- namespace :test do
-   desc 'Acceptance suite under test/ which runs metadata-json-lint against sample files with expected output'

Copied: ruby-metadata-json-lint/repos/community-any/disable_rubocop.patch (from rev 1239696, ruby-metadata-json-lint/trunk/disable_rubocop.patch)
===================================================================
--- disable_rubocop.patch	                        (rev 0)
+++ disable_rubocop.patch	2022-06-27 15:28:21 UTC (rev 1239697)
@@ -0,0 +1,25 @@
+diff --git a/Rakefile b/Rakefile
+index 2969965..b3b271a 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -1,19 +1,5 @@
+ desc 'Run all tests'
+-task :test => %i[rubocop spec test:acceptance]
+-
+-require 'rubocop/rake_task'
+-RuboCop::RakeTask.new(:rubocop) do |task|
+-  # These make the rubocop experience maybe slightly less terrible
+-  task.options = ['-D', '-S', '-E']
+-
+-  # Use Rubocop's Github Actions formatter if possible
+-  if ENV['GITHUB_ACTIONS'] == 'true'
+-    rubocop_spec = Gem::Specification.find_by_name('rubocop')
+-    if Gem::Version.new(rubocop_spec.version) >= Gem::Version.new('1.2')
+-      task.formatters << 'github'
+-    end
+-  end
+-end
++task :test => %i[spec test:acceptance]
+ 
+ namespace :test do
+   desc 'Acceptance suite under test/ which runs metadata-json-lint against sample files with expected output'

Deleted: dont_call_msl_via-bundler.patch
===================================================================
--- dont_call_msl_via-bundler.patch	2022-06-27 15:28:13 UTC (rev 1239696)
+++ dont_call_msl_via-bundler.patch	2022-06-27 15:28:21 UTC (rev 1239697)
@@ -1,31 +0,0 @@
-diff --git a/tests/test.sh b/tests/test.sh
-index aeecb34..eccaab5 100755
---- a/tests/test.sh
-+++ b/tests/test.sh
-@@ -31,7 +31,7 @@ test_bin() {
-   local expect=$1; shift
-   local RESULT=-1
-   cd $name;
--  bundle exec metadata-json-lint $* metadata.json >last_output 2>&1
-+   ../../bin/metadata-json-lint $* metadata.json >last_output 2>&1
-   RESULT=$?
-   if [ $RESULT -ne $expect ]; then
-     fail "Failing Test '${name}' (unexpected exit code '${RESULT}' instead of '${expect}') (bin)"
-@@ -66,7 +66,7 @@ test_rake() {
-   local RESULT=-1;
- 
-   cd $name;
--  bundle exec rake $rake_task >last_rake_output 2>&1
-+  rake $rake_task >last_rake_output 2>&1
-   RESULT=$?
-   if [ $RESULT -ne $expect ]; then
-     fail "Failing Test '${name}' (rake: ${rake_task})"
-@@ -152,7 +152,7 @@ test "duplicate-requirement" $FAILURE
- 
- # Test running without specifying file to parse
- cd perfect
--bundle exec metadata-json-lint
-+../../bin/metadata-json-lint
- if [ $? -ne 0 ]; then
-     fail "Failing Test 'running without specifying metadata.json' (bin)"
- else

Copied: ruby-metadata-json-lint/repos/community-any/dont_call_msl_via-bundler.patch (from rev 1239696, ruby-metadata-json-lint/trunk/dont_call_msl_via-bundler.patch)
===================================================================
--- dont_call_msl_via-bundler.patch	                        (rev 0)
+++ dont_call_msl_via-bundler.patch	2022-06-27 15:28:21 UTC (rev 1239697)
@@ -0,0 +1,31 @@
+diff --git a/tests/test.sh b/tests/test.sh
+index aeecb34..eccaab5 100755
+--- a/tests/test.sh
++++ b/tests/test.sh
+@@ -31,7 +31,7 @@ test_bin() {
+   local expect=$1; shift
+   local RESULT=-1
+   cd $name;
+-  bundle exec metadata-json-lint $* metadata.json >last_output 2>&1
++   ../../bin/metadata-json-lint $* metadata.json >last_output 2>&1
+   RESULT=$?
+   if [ $RESULT -ne $expect ]; then
+     fail "Failing Test '${name}' (unexpected exit code '${RESULT}' instead of '${expect}') (bin)"
+@@ -66,7 +66,7 @@ test_rake() {
+   local RESULT=-1;
+ 
+   cd $name;
+-  bundle exec rake $rake_task >last_rake_output 2>&1
++  rake $rake_task >last_rake_output 2>&1
+   RESULT=$?
+   if [ $RESULT -ne $expect ]; then
+     fail "Failing Test '${name}' (rake: ${rake_task})"
+@@ -152,7 +152,7 @@ test "duplicate-requirement" $FAILURE
+ 
+ # Test running without specifying file to parse
+ cd perfect
+-bundle exec metadata-json-lint
++../../bin/metadata-json-lint
+ if [ $? -ne 0 ]; then
+     fail "Failing Test 'running without specifying metadata.json' (bin)"
+ else



More information about the arch-commits mailing list