[arch-commits] Commit in rubygems/repos (3 files)

Anatol Pomozov anatolik at archlinux.org
Tue Aug 20 22:04:49 UTC 2019


    Date: Tuesday, August 20, 2019 @ 22:04:49
  Author: anatolik
Revision: 360515

archrelease: copy trunk to testing-any

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

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 gemrc    |    5 +++++
 2 files changed, 47 insertions(+)

Copied: rubygems/repos/testing-any/PKGBUILD (from rev 360514, rubygems/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2019-08-20 22:04:49 UTC (rev 360515)
@@ -0,0 +1,42 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=rubygems
+pkgdesc='Package management framework for Ruby'
+pkgver=3.0.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=('7eed570a3179a93179aa7ece94a8fa70da7ee7b9a42efc8dd0780f6e21f8db56b0faa8f75ec848adbe088840cfd951e34d6ac67061bbdbcd1e2aea8228fc64ff'
+            '8cafd14d414ee3c16aa94f79072bc6c100262f925dc1300e785846c3fabbbbffc1356b8e2223af5684e3340c55032d41231179ffa948bb12e01dbae0f4131911')
+
+prepare() {
+  cd rubygems-${pkgver}
+}
+
+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 360514, rubygems/trunk/gemrc)
===================================================================
--- testing-any/gemrc	                        (rev 0)
+++ testing-any/gemrc	2019-08-20 22:04:49 UTC (rev 360515)
@@ -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


More information about the arch-commits mailing list