[arch-commits] Commit in cl-trivial-gray-streams/repos/community-any (3 files)

George Rawlinson grawlinson at gemini.archlinux.org
Fri May 13 02:14:16 UTC 2022


    Date: Friday, May 13, 2022 @ 02:14:16
  Author: grawlinson
Revision: 1199865

archrelease: copy trunk to community-any

Added:
  cl-trivial-gray-streams/repos/community-any/PKGBUILD
    (from rev 1199864, cl-trivial-gray-streams/trunk/PKGBUILD)
  cl-trivial-gray-streams/repos/community-any/run-tests.lisp
    (from rev 1199864, cl-trivial-gray-streams/trunk/run-tests.lisp)
Deleted:
  cl-trivial-gray-streams/repos/community-any/PKGBUILD

----------------+
 PKGBUILD       |  102 +++++++++++++++++++++++++++++++------------------------
 run-tests.lisp |   16 ++++++++
 2 files changed, 75 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-13 02:13:35 UTC (rev 1199864)
+++ PKGBUILD	2022-05-13 02:14:16 UTC (rev 1199865)
@@ -1,43 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-
-pkgname=cl-trivial-gray-streams
-_pkgname="${pkgname#cl-}"
-pkgver=r70.g2b3823e
-pkgrel=1
-pkgdesc='Compatibility layer for Gray Streams'
-arch=('any')
-url='https://trivial-gray-streams.common-lisp.dev'
-license=('MIT')
-depends=('common-lisp' 'cl-asdf')
-makedepends=('git' 'sbcl')
-_commit='2b3823edbc78a450db4891fd2b566ca0316a7876'
-source=("$pkgname::git+https://github.com/trivial-gray-streams/trivial-gray-streams#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  printf 'r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
-
-package() {
-  cd "$pkgname"
-
-  # create directories
-  install -vd \
-    "$pkgdir/usr/share/common-lisp/source/$_pkgname" \
-    "$pkgdir/usr/share/common-lisp/systems"
-
-  # library
-  cp -vr test ./*.{lisp,asd} "$pkgdir/usr/share/common-lisp/source/$_pkgname"
-  pushd "$pkgdir/usr/share/common-lisp/systems"
-  ln -s "../source/$_pkgname/$_pkgname.asd" .
-  ln -s "../source/$_pkgname/$_pkgname-test.asd" .
-  popd
-
-  # documentation
-  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README
-
-  # license
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING
-}

Copied: cl-trivial-gray-streams/repos/community-any/PKGBUILD (from rev 1199864, cl-trivial-gray-streams/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-13 02:14:16 UTC (rev 1199865)
@@ -0,0 +1,59 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=cl-trivial-gray-streams
+_pkgname="${pkgname#cl-}"
+pkgver=2.0.0.r47.g2b3823e
+pkgrel=1
+pkgdesc='Compatibility layer for Gray Streams'
+arch=('any')
+url='https://trivial-gray-streams.common-lisp.dev'
+license=('MIT')
+depends=('common-lisp' 'cl-asdf')
+makedepends=('git')
+checkdepends=('sbcl')
+_commit='2b3823edbc78a450db4891fd2b566ca0316a7876'
+source=(
+  "$pkgname::git+https://github.com/trivial-gray-streams/trivial-gray-streams#commit=$_commit"
+  'run-tests.lisp'
+)
+b2sums=('SKIP'
+        '7af6a2946854fcaa07f5ca24d3c1738b8a9eb6762c4fb8f900a3abc3b22913b50d90b29c9676837153ffc2cc8f14833718dd5e40cf8b72b47ff37e999a89efba')
+
+pkgver() {
+  cd "$pkgname"
+
+  # first known commit to receive latest version
+  local _pkgcommit='99f579bd352156ad6dadcf347696a0a34a9e0f82'
+  local _pkgver='2.0.0'
+  git tag "$_pkgver" "$_pkgcommit"
+
+  git describe --tags | sed -e 's/^v//' -e 's/-/.r/' -e 's/-/./g'
+}
+
+check() {
+  cd "$pkgname"
+
+  sbcl --script ../run-tests.lisp
+}
+
+package() {
+  cd "$pkgname"
+
+  # create directories
+  install -vd \
+    "$pkgdir/usr/share/common-lisp/source/$_pkgname" \
+    "$pkgdir/usr/share/common-lisp/systems"
+
+  # library
+  cp -vr test ./*.{lisp,asd} "$pkgdir/usr/share/common-lisp/source/$_pkgname"
+  pushd "$pkgdir/usr/share/common-lisp/systems"
+  ln -s "../source/$_pkgname/$_pkgname.asd" .
+  ln -s "../source/$_pkgname/$_pkgname-test.asd" .
+  popd
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING
+}

Copied: cl-trivial-gray-streams/repos/community-any/run-tests.lisp (from rev 1199864, cl-trivial-gray-streams/trunk/run-tests.lisp)
===================================================================
--- run-tests.lisp	                        (rev 0)
+++ run-tests.lisp	2022-05-13 02:14:16 UTC (rev 1199865)
@@ -0,0 +1,16 @@
+;; run tests for trivial-gray-streams
+;; sourced from debian
+;; https://salsa.debian.org/common-lisp-team/trivial-gray-streams
+(require "asdf")
+
+(push (uiop/os:getcwd) asdf:*central-registry*)
+
+(asdf:load-system "trivial-gray-streams-test")
+
+(let ((failed-tests (trivial-gray-streams-test::failed-test-names (trivial-gray-streams-test::run-tests))))
+  ;; Filter out some expected failures (as of 2018-03-24)
+  (setq failed-tests (delete "stream-advance-to-column" failed-tests
+                             :test #'string=))
+  (unless (null failed-tests)
+    (format t "The following test(s) failed: ~{~A~^ ~}" failed-tests)
+    (uiop:quit 1)))



More information about the arch-commits mailing list