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

George Rawlinson grawlinson at gemini.archlinux.org
Fri May 20 09:01:43 UTC 2022


    Date: Friday, May 20, 2022 @ 09:01:42
  Author: grawlinson
Revision: 1209323

archrelease: copy trunk to community-any

Added:
  cl-rt/repos/community-any/
  cl-rt/repos/community-any/PKGBUILD
    (from rev 1209322, cl-rt/trunk/PKGBUILD)
  cl-rt/repos/community-any/run-tests.lisp
    (from rev 1209322, cl-rt/trunk/run-tests.lisp)

----------------+
 PKGBUILD       |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 run-tests.lisp |   10 +++++++++
 2 files changed, 71 insertions(+)

Copied: cl-rt/repos/community-any/PKGBUILD (from rev 1209322, cl-rt/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-05-20 09:01:42 UTC (rev 1209323)
@@ -0,0 +1,61 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=cl-rt
+_pkgname="${pkgname#cl-}"
+pkgver=1990.12.19.r19.ga6a7503
+pkgrel=2
+pkgdesc='Common Lisp regression tester from MIT'
+arch=('any')
+url='http://git.kpe.io/?p=rt.git'
+license=('MIT')
+depends=('common-lisp' 'cl-asdf')
+makedepends=('git')
+#checkdepends=('sbcl')
+_commit='a6a7503a0b47953bc7579c90f02a6dba1f6e4c5a'
+source=(
+  "$pkgname::git+http://git.kpe.io/rt.git#commit=$_commit"
+  'run-tests.lisp'
+)
+b2sums=('SKIP'
+        '2a9602fe10824973ee233b4a11a4d0bce91189e324afe350fb14389e03f5b742231c98a6a0e4aea2c2bd43cd22bd91db63f6d7a41aa6c71d235f06afa8e49434')
+
+pkgver() {
+  cd "$pkgname"
+
+  # first known commit to receive latest version
+  local _pkgver=1990.12.19
+  local _pkgcommit='17ebaf0bbb7e594f0397286aac4b89ae6ebe61d3'
+
+  git tag "$_pkgver" "$_pkgcommit"
+
+  git describe --tags | sed -e 's/^v//' -e 's/-/.r/' -e 's/-/./g'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # license extraction
+  sed -n '/Copyright/,/SOFTWARE\./p' rt-doc.txt | \
+    sed -e 's/|//g' -e 's/[ \t]*$//' -e 's/^[ \t]*//' \
+    > LICENSE
+}
+
+# XXX 15/30 tests fail.
+#check() {
+#  cd "$pkgname"
+#
+#  sbcl --script ../run-tests.lisp
+#}
+
+package() {
+  cd "$pkgname"
+
+  # library
+  install -vDm644 -t "$pkgdir/usr/share/common-lisp/source/$_pkgname" ./*.{lisp,asd}
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" rt-doc.txt
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Copied: cl-rt/repos/community-any/run-tests.lisp (from rev 1209322, cl-rt/trunk/run-tests.lisp)
===================================================================
--- community-any/run-tests.lisp	                        (rev 0)
+++ community-any/run-tests.lisp	2022-05-20 09:01:42 UTC (rev 1209323)
@@ -0,0 +1,10 @@
+(require "asdf")
+
+(push (uiop/os:getcwd) asdf:*central-registry*)
+
+(asdf:load-system "rt")
+
+(with-input-from-string (*standard-input* (format nil "\"~A/tmpfile\"" (uiop/os:getcwd)))
+  (load #p"rt-test.lisp"))
+
+(uiop:quit (if (do-tests) 0 1))



More information about the arch-commits mailing list