all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 57683@debbugs.gnu.org
Subject: [bug#57683] [PATCH] gnu: zuo: Use mirrored repository.
Date: Thu, 8 Sep 2022 19:27:50 +0200	[thread overview]
Message-ID: <f96c32ff8af7a83e5497e886c383af576f5a79eb.camel@gmail.com> (raw)

This makes it so that zuo follows our packaging guidelines on version numbers
and gives meaning to the home-page.

* gnu/packages/racket.scm (zuo)[version]: Use git-version.
[source]: Use “https://github.com/racket/zuo” as URL.
Adapt patches accordingly.
[arguments]: Drop phases.
---
 gnu/packages/racket.scm | 30 ++++++++++++++----------------
 1 file changed, 14 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm
index 10f93a1362..e3a9360a75 100644
--- a/gnu/packages/racket.scm
+++ b/gnu/packages/racket.scm
@@ -232,28 +232,26 @@ (define %racket-origin
 
 
 (define-public zuo
-  (let ((revision #f))
+  (let ((revision "1")
+        (commit "dcde608b20cf0d71e34300e21cbeeb0509f391a3"))
     (package
       (name "zuo")
-      (version (string-append %zuo-version
-                              "-racket"
-                              %racket-version
-                              (if revision "-guix" "")
-                              (or revision "")))
-      (source %racket-origin)
+      (version (git-version "1.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/racket/zuo")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32 "094jhhi5672qyq7ynrd2fzxc08rrcgs58pzrfn1dyw8rdrfkrdgg"))
+                (patches (search-patches "racket-zuo-bin-sh.patch"))
+                (patch-flags '("-p4"))))
       (outputs '("out" "debug"))
       (build-system gnu-build-system)
       (arguments
-       (list
-        #:out-of-source? #t
-        #:phases
-        #~(modify-phases %standard-phases
-            (add-after 'unpack 'chdir
-              (lambda args
-                (chdir "racket/src/zuo"))))))
+       (list #:out-of-source? #t))
       (home-page "https://github.com/racket/zuo")
-      ;; ^ This is downstream of https://github.com/racket/racket,
-      ;; but it's designed to be a friendly landing place
       (synopsis "Tiny Racket for build scripts")
       (description "Zuo is a tiny Racket with primitives for dealing
 with files and running processes.  It comes with a @command{make}-like
-- 
2.37.2





             reply	other threads:[~2022-09-08 18:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-08 17:27 Liliana Marie Prikler [this message]
2022-09-09 12:42 ` [bug#57683] [PATCH] gnu: zuo: Use mirrored repository Maxime Devos
2022-09-09 12:55   ` Liliana Marie Prikler
2022-09-19  2:06     ` Philip McGrath
2022-09-19 13:53       ` Maxime Devos
2022-09-19 18:33         ` Liliana Marie Prikler
2022-09-19 18:40           ` Maxime Devos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f96c32ff8af7a83e5497e886c383af576f5a79eb.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=57683@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.