Date: Friday, February 3, 2023 @ 00:27:21
Author: felixonmars
Revision: 1392080
archrelease: copy trunk to community-x86_64
Added:
ruby-patron/repos/community-x86_64/PKGBUILD
(from rev 1392079, ruby-patron/trunk/PKGBUILD)
ruby-patron/repos/community-x86_64/ruby-patron-puma-5.patch
(from rev 1392079, ruby-patron/trunk/ruby-patron-puma-5.patch)
Deleted:
ruby-patron/repos/community-x86_64/PKGBUILD
ruby-patron/repos/community-x86_64/ruby-patron-puma-5.patch
--------------------------+
PKGBUILD | 125 ++++++++++++++++++++++-----------------------
ruby-patron-puma-5.patch | 44 +++++++--------
2 files changed, 85 insertions(+), 84 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-03 00:27:07 UTC (rev 1392079)
+++ PKGBUILD 2023-02-03 00:27:21 UTC (rev 1392080)
@@ -1,62 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=ruby-patron
-pkgver=0.13.3
-pkgrel=1
-pkgdesc='Ruby HTTP client library based on libcurl'
-arch=(x86_64)
-url='https://github.com/toland/patron'
-license=(MIT)
-depends=(ruby curl)
-makedepends=(ruby-rake-compiler ruby-rack ruby-rspec ruby-puma ruby-yard)
-options=(!emptydirs)
-source=(https://github.com/toland/patron/archive/v$pkgver/$pkgname-$pkgver.tar.gz
- $pkgname-puma-5.patch)
-sha256sums=('4ae57af4ea6d0eaaa5ccdbf78f6b3a0157109a7d7d2a72c7b048a16af9ef771a'
- '85977d0082234adb7b31308c4338f870a6ae30c3f2182c81d7c1736c33c0dc25')
-
-prepare() {
- cd patron-$pkgver
- patch -p1 -i ../$pkgname-puma-5.patch
- # we don't do version pinning
- sed -r -e 's|~>|>=|g' -e 's|git ls-files -z|find . -print0|' -i
patron.gemspec
-}
-
-build() {
- local _gemdir="$(gem env gemdir)"
- cd patron-$pkgver
- rake build
- gem install \
- --local \
- --verbose \
- --ignore-dependencies \
- --no-user-install \
- --install-dir "tmp_install/$_gemdir" \
- --bindir "tmp_install/usr/bin" \
- pkg/patron-$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
-}
-
-check() {
- local _gemdir="$(gem env gemdir)"
- cd patron-$pkgver
- # https://github.com/toland/patron/pull/193
- GEM_HOME="tmp_install/$_gemdir" rake spec || echo "Tests failed"
-}
-
-package() {
- cd patron-$pkgver
- cp -a tmp_install/* "$pkgdir"/
-
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: ruby-patron/repos/community-x86_64/PKGBUILD (from rev 1392079,
ruby-patron/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-03 00:27:21 UTC (rev 1392080)
@@ -0,0 +1,63 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=ruby-patron
+pkgver=0.13.3
+_commit=6828083e8db2d2c5f7ea1db7143a9e1a9d13ef78
+pkgrel=2
+pkgdesc='Ruby HTTP client library based on libcurl'
+arch=(x86_64)
+url='https://github.com/toland/patron'
+license=(MIT)
+depends=(ruby curl)
+makedepends=(git ruby-rake-compiler ruby-rack ruby-rspec ruby-puma ruby-yard)
+options=(!emptydirs)
+source=(git+https://github.com/toland/patron.git#commit=$_commit
+ $pkgname-puma-5.patch)
+sha256sums=('SKIP'
+ '85977d0082234adb7b31308c4338f870a6ae30c3f2182c81d7c1736c33c0dc25')
+
+prepare() {
+ cd patron
+ patch -p1 -i ../$pkgname-puma-5.patch
+ # we don't do version pinning
+ sed -r -e 's|~>|>=|g' -i patron.gemspec
+}
+
+build() {
+ local _gemdir="$(gem env gemdir)"
+ cd patron
+ rake build
+ gem install \
+ --local \
+ --verbose \
+ --ignore-dependencies \
+ --no-user-install \
+ --install-dir "tmp_install/$_gemdir" \
+ --bindir "tmp_install/usr/bin" \
+ pkg/patron-$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
+}
+
+check() {
+ local _gemdir="$(gem env gemdir)"
+ cd patron
+ # https://github.com/toland/patron/pull/193
+ GEM_HOME="tmp_install/$_gemdir" rake spec || echo "Tests failed"
+}
+
+package() {
+ cd patron
+ cp -a tmp_install/* "$pkgdir"/
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
Deleted: ruby-patron-puma-5.patch
===================================================================
--- ruby-patron-puma-5.patch 2023-02-03 00:27:07 UTC (rev 1392079)
+++ ruby-patron-puma-5.patch 2023-02-03 00:27:21 UTC (rev 1392080)
@@ -1,22 +0,0 @@
-From 213e722fd5b7eac4b633ce0247034ae1905c39b2 Mon Sep 17 00:00:00 2001
-From: Felix Yan <[email protected]>
-Date: Sun, 28 Aug 2022 12:17:13 +0300
-Subject: [PATCH] Update to puma 5
-
----
- patron.gemspec | 2 +-
- spec/support/test_server.rb | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/spec/support/test_server.rb b/spec/support/test_server.rb
-index b88aa43..ef8148c 100644
---- a/spec/support/test_server.rb
-+++ b/spec/support/test_server.rb
-@@ -21,6 +21,6 @@ def self.start(ssl = false, port = 9001 )
- else
- '0.0.0.0'
- end
-- Rack::Handler::Puma.run(APP, {:Port => port.to_i, :Verbose => true, :Host
=> host})
-+ Rack::Handler::Puma.run(APP, :Port => port.to_i, :Verbose => true, :Host
=> host)
- end
- end
Copied: ruby-patron/repos/community-x86_64/ruby-patron-puma-5.patch (from rev
1392079, ruby-patron/trunk/ruby-patron-puma-5.patch)
===================================================================
--- ruby-patron-puma-5.patch (rev 0)
+++ ruby-patron-puma-5.patch 2023-02-03 00:27:21 UTC (rev 1392080)
@@ -0,0 +1,22 @@
+From 213e722fd5b7eac4b633ce0247034ae1905c39b2 Mon Sep 17 00:00:00 2001
+From: Felix Yan <[email protected]>
+Date: Sun, 28 Aug 2022 12:17:13 +0300
+Subject: [PATCH] Update to puma 5
+
+---
+ patron.gemspec | 2 +-
+ spec/support/test_server.rb | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/spec/support/test_server.rb b/spec/support/test_server.rb
+index b88aa43..ef8148c 100644
+--- a/spec/support/test_server.rb
++++ b/spec/support/test_server.rb
+@@ -21,6 +21,6 @@ def self.start(ssl = false, port = 9001 )
+ else
+ '0.0.0.0'
+ end
+- Rack::Handler::Puma.run(APP, {:Port => port.to_i, :Verbose => true, :Host
=> host})
++ Rack::Handler::Puma.run(APP, :Port => port.to_i, :Verbose => true, :Host
=> host)
+ end
+ end