Date: Friday, February 3, 2023 @ 00:52:54
Author: felixonmars
Revision: 1392110
archrelease: copy trunk to community-any
Added:
ruby-shoulda-context/repos/community-any/PKGBUILD
(from rev 1392109, ruby-shoulda-context/trunk/PKGBUILD)
Deleted:
ruby-shoulda-context/repos/community-any/PKGBUILD
----------+
PKGBUILD | 131 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 65 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-03 00:52:43 UTC (rev 1392109)
+++ PKGBUILD 2023-02-03 00:52:54 UTC (rev 1392110)
@@ -1,66 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=ruby-shoulda-context
-pkgver=2.0.0
-pkgrel=3
-pkgdesc='Minitest & Test::Unit context framework'
-arch=(any)
-url='https://github.com/thoughtbot/shoulda-context'
-license=(MIT)
-depends=(ruby)
-checkdepends=(ruby-byebug ruby-m ruby-minitest ruby-mocha ruby-pry
ruby-pry-byebug ruby-rake
- ruby-snowglobe ruby-test-unit ruby-warnings_logger)
-options=(!emptydirs)
-source=(https://github.com/thoughtbot/shoulda-context/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('f83093bbc37b58a2d7e7dfad8ff7c426f4e8ba3ea6d17977750e18ff4e696df4')
-
-prepare() {
- cd shoulda-context-$pkgver
- sed 's|git ls-files -- exe/\*|find exe -type f|' -i shoulda-context.gemspec
- sed 's|git ls-files -- {test,spec,features}/\*|echo|' -i
shoulda-context.gemspec
- sed 's|git ls-files|find -type f|' -i shoulda-context.gemspec
- sed -i -e 's|~>|>=|' -e '/appraisal/d;/rubocop/d' Gemfile
- # Multiple hacks to avoid appraisal and rails
- sed -i 's/Tests::CurrentBundle.instance.appraisal_in_use?/true/' Rakefile
- sed -i
'/current_bundle/d;/assert_appraisal/d;/rails_application_with_shoulda_context/d'
test/test_helper.rb Rakefile
- rm Gemfile.lock
- rm test/shoulda/test_framework_detection_test.rb
test/shoulda/rerun_snippet_test.rb test/shoulda/railtie_test.rb
-}
-
-build() {
- local _gemdir="$(gem env gemdir)"
- cd shoulda-context-$pkgver
- gem build shoulda-context.gemspec
- gem install \
- --local \
- --verbose \
- --ignore-dependencies \
- --no-user-install \
- --install-dir "tmp_install/$_gemdir" \
- --bindir "tmp_install/usr/bin" \
- shoulda-context-$pkgver.gem
- find "tmp_install/$_gemdir/gems/" \
- -type f \
- \( \
- -iname "*.o" -o \
- -iname "*.c" -o \
- -iname "*.so" -o \
- -iname "*.time" -o \
- -iname "gem.build_complete" -o \
- -iname "Makefile" \
- \) \
- -delete
- rm -r tmp_install/$_gemdir/cache
-}
-
-check() {
- local _gemdir="$(gem env gemdir)"
- cd shoulda-context-$pkgver
- GEM_HOME="tmp_install/$_gemdir" rake
-}
-
-package() {
- cd shoulda-context-$pkgver
- cp -a tmp_install/* "$pkgdir"/
- install -Dm644 MIT-LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: ruby-shoulda-context/repos/community-any/PKGBUILD (from rev 1392109,
ruby-shoulda-context/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-03 00:52:54 UTC (rev 1392110)
@@ -0,0 +1,65 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=ruby-shoulda-context
+pkgver=2.0.0
+_commit=eff9fdde51db7681128336c682311b36867fb288
+pkgrel=4
+pkgdesc='Minitest & Test::Unit context framework'
+arch=(any)
+url='https://github.com/thoughtbot/shoulda-context'
+license=(MIT)
+depends=(ruby)
+makedepends=(git)
+checkdepends=(ruby-byebug ruby-m ruby-minitest ruby-mocha ruby-pry
ruby-pry-byebug ruby-rake
+ ruby-snowglobe ruby-test-unit ruby-warnings_logger ruby-rubocop)
+options=(!emptydirs)
+source=(git+https://github.com/thoughtbot/shoulda-context.git#commit=$_commit)
+sha256sums=('SKIP')
+
+prepare() {
+ cd shoulda-context
+ sed -i -e 's|~>|>=|' -e '/appraisal/d' -e 's/, "0.71.0"//' Gemfile
+ # Multiple hacks to avoid appraisal and rails
+ sed -i 's/Tests::CurrentBundle.instance.appraisal_in_use?/true/' Rakefile
+ sed -i
'/current_bundle/d;/assert_appraisal/d;/rails_application_with_shoulda_context/d'
test/test_helper.rb Rakefile
+ git rm Gemfile.lock
+ git rm test/shoulda/test_framework_detection_test.rb
test/shoulda/rerun_snippet_test.rb test/shoulda/railtie_test.rb
+}
+
+build() {
+ local _gemdir="$(gem env gemdir)"
+ cd shoulda-context
+ gem build shoulda-context.gemspec
+ gem install \
+ --local \
+ --verbose \
+ --ignore-dependencies \
+ --no-user-install \
+ --install-dir "tmp_install/$_gemdir" \
+ --bindir "tmp_install/usr/bin" \
+ shoulda-context-$pkgver.gem
+ find "tmp_install/$_gemdir/gems/" \
+ -type f \
+ \( \
+ -iname "*.o" -o \
+ -iname "*.c" -o \
+ -iname "*.so" -o \
+ -iname "*.time" -o \
+ -iname "gem.build_complete" -o \
+ -iname "Makefile" \
+ \) \
+ -delete
+ rm -r tmp_install/$_gemdir/cache
+}
+
+check() {
+ local _gemdir="$(gem env gemdir)"
+ cd shoulda-context
+ GEM_HOME="tmp_install/$_gemdir" rake
+}
+
+package() {
+ cd shoulda-context
+ cp -a tmp_install/* "$pkgdir"/
+ install -Dm644 MIT-LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}