Date: Friday, March 2, 2018 @ 22:44:12
  Author: anatolik
Revision: 317768

archrelease: copy trunk to testing-any

Added:
  rubygems/repos/testing-any/
  rubygems/repos/testing-any/PKGBUILD
    (from rev 317767, rubygems/trunk/PKGBUILD)
  rubygems/repos/testing-any/gemrc
    (from rev 317767, rubygems/trunk/gemrc)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 gemrc    |    5 +++++
 2 files changed, 43 insertions(+)

Copied: rubygems/repos/testing-any/PKGBUILD (from rev 317767, 
rubygems/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD                                (rev 0)
+++ testing-any/PKGBUILD        2018-03-02 22:44:12 UTC (rev 317768)
@@ -0,0 +1,38 @@
+# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com>
+
+pkgname=rubygems
+pkgdesc='Package management framework for Ruby'
+pkgver=2.7.6
+pkgrel=1
+arch=(any)
+url='https://rubygems.org/'
+license=(MIT)
+# To avoid circular dependency with ruby, move it to makedepends
+makedepends=(ruby)
+backup=(etc/gemrc)
+checkdepends=(rake)
+source=(rubygems-$pkgver.zip::https://github.com/rubygems/rubygems/archive/v${pkgver}.zip
+        gemrc)
+sha512sums=('48a8bbd89e76bb08bc499f8c5274537bc128a637e523f1abdc17d416d5fab84ddc83273b85ab2719ac88d66ae2c73d6ae58796443eb924dee74468f086032c31'
+            
'8cafd14d414ee3c16aa94f79072bc6c100262f925dc1300e785846c3fabbbbffc1356b8e2223af5684e3340c55032d41231179ffa948bb12e01dbae0f4131911')
+
+check() {
+  cd rubygems-${pkgver}
+
+  # disable as it requires a bund of ruby dependencies
+  #rake test
+}
+
+package() {
+  depends+=(ruby)
+  cd rubygems-${pkgver}
+
+  install -D -m644 ${srcdir}/gemrc "${pkgdir}/etc/gemrc"
+
+  local rubyver=$(ruby --version | sed -r 's|^ruby 
([[:digit:]]+\.[[:digit:]]+\.).*$|\1|')0
+
+  install -d "${pkgdir}/usr/lib/ruby/${rubyver}/"
+  install -D -m755 bin/gem "${pkgdir}/usr/bin/gem"
+  cp -r lib/* "${pkgdir}/usr/lib/ruby/${rubyver}/"
+  install -D -m644 MIT.txt "${pkgdir}/usr/share/licenses/rubygems/MIT.txt"
+}

Copied: rubygems/repos/testing-any/gemrc (from rev 317767, rubygems/trunk/gemrc)
===================================================================
--- testing-any/gemrc                           (rev 0)
+++ testing-any/gemrc   2018-03-02 22:44:12 UTC (rev 317768)
@@ -0,0 +1,5 @@
+# Read about the gemrc format at 
http://guides.rubygems.org/command-reference/#gem-environment
+
+# --user-install is used to install to $HOME/.gem/ by default since we want to 
separate
+#                pacman installed gems and gem installed gems
+gem: --user-install

Reply via email to