[arch-commits] Commit in ruby-nats-pure/repos/community-any (4 files)

Thore Bödecker foxxx0 at archlinux.org
Fri Jan 10 10:22:05 UTC 2020


    Date: Friday, January 10, 2020 @ 10:22:05
  Author: foxxx0
Revision: 551592

archrelease: copy trunk to community-any

Added:
  ruby-nats-pure/repos/community-any/LICENSE
    (from rev 551591, ruby-nats-pure/trunk/LICENSE)
  ruby-nats-pure/repos/community-any/PKGBUILD
    (from rev 551591, ruby-nats-pure/trunk/PKGBUILD)
Deleted:
  ruby-nats-pure/repos/community-any/LICENSE
  ruby-nats-pure/repos/community-any/PKGBUILD

----------+
 LICENSE  |   42 ++++++++++++++--------------
 PKGBUILD |   89 ++++++++++++++++++++++++++++++++++++-------------------------
 2 files changed, 74 insertions(+), 57 deletions(-)

Deleted: LICENSE
===================================================================
--- LICENSE	2020-01-10 10:22:02 UTC (rev 551591)
+++ LICENSE	2020-01-10 10:22:05 UTC (rev 551592)
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016-2017 Apcera Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.

Copied: ruby-nats-pure/repos/community-any/LICENSE (from rev 551591, ruby-nats-pure/trunk/LICENSE)
===================================================================
--- LICENSE	                        (rev 0)
+++ LICENSE	2020-01-10 10:22:05 UTC (rev 551592)
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016-2017 Apcera Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-10 10:22:02 UTC (rev 551591)
+++ PKGBUILD	2020-01-10 10:22:05 UTC (rev 551592)
@@ -1,36 +0,0 @@
-# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
-# Contributor: Tim Meusel <tim at bastelfreak.de>
-
-_gemname='nats-pure'
-pkgname="ruby-${_gemname}"
-pkgver=0.6.2
-pkgrel=2
-pkgdesc="Ruby client for the NATS messaging system"
-url="https://nats.io"
-arch=('any')
-license=('MIT')
-depends=('ruby')
-makedepends=('ruby-rdoc')
-options=('!emptydirs')
-source=("https://rubygems.org/gems/${_gemname}-${pkgver}.gem"
-        'LICENSE')
-noextract=("${_gemname}-${pkgver}.gem")
-sha512sums=('dca041d933497793a98d69f604909f47b94113c96ca0f3f76b2b23d0fe45a0722226903451147e1146c4f6143ba8a3bc57f1babca350cfa5df7ab1f61571655d'
-            'ec05133944c3dc861ae437ce8681f54a871b614ff020fd4db1b3b3eb75f9e612222b682d1cceb5a3335e479e3541072abd4abc8f272d2e4d8803f97fe9f58b08')
-
-package() {
-  local _gemdir="$(ruby -e'puts Gem.default_dir')"
-
-  gem install \
-    --ignore-dependencies \
-    --no-user-install \
-    -i "${pkgdir}${_gemdir}" \
-    -n "${pkgdir}/usr/bin" \
-    ${_gemname}-${pkgver}.gem
-
-  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
-
-  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-# vim: ts=2 sw=2 et:

Copied: ruby-nats-pure/repos/community-any/PKGBUILD (from rev 551591, ruby-nats-pure/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-01-10 10:22:05 UTC (rev 551592)
@@ -0,0 +1,53 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='nats-pure'
+pkgname="ruby-${_gemname}"
+pkgver=0.6.2
+pkgrel=3
+pkgdesc="Ruby client for the NATS messaging system"
+url="https://github.com/nats-io/nats-pure.rb"
+arch=('any')
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-rake' 'ruby-rspec' 'ruby-bundler' 'ruby-rdoc' 'ruby-test-unit')
+options=('!emptydirs')
+source=("${_gemname}-v${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha512sums=('98f498c9eafeaa4ac5543a4a322d6c44015a10adc338ee125efcfdb8fb609435c6d771f4d9709f8477c673f3e44ccda8ecad186dac47d278d7d47da0461fefba')
+
+
+prepare() {
+  cd "${srcdir}/${_gemname}.rb-${pkgver}"
+  :
+}
+
+build() {
+  cd "${srcdir}/${_gemname}.rb-${pkgver}"
+  mkdir -p pkg
+  gem build -o "pkg/${_gemname}-${pkgver}.gem"
+}
+
+check() {
+  cd "${srcdir}/${_gemname}.rb-${pkgver}"
+  # testsuite requires a running nats server to test against
+  #rake spec
+}
+
+package() {
+  cd "${srcdir}/${_gemname}.rb-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+
+  gem install \
+    --verbose \
+    --ignore-dependencies \
+    --no-user-install \
+    --install-dir "${pkgdir}/${_gemdir}" \
+    --bindir "${pkgdir}/usr/bin" \
+    "pkg/${_gemname}-${pkgver}.gem"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+
+  install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list