unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#60738] [PATCH] gnu: pantalaimon: Install documentation and use gexps.
@ 2023-01-11 19:03 Morgan.J.Smith
  2023-01-29 16:25 ` Michael Rohleder
  2023-02-11 20:57 ` bug#60738: " Nicolas Goaziou
  0 siblings, 2 replies; 3+ messages in thread
From: Morgan.J.Smith @ 2023-01-11 19:03 UTC (permalink / raw)
  To: 60738; +Cc: Morgan Smith

From: Morgan Smith <Morgan.J.Smith@outlook.com>

* gnu/packages/matrix.scm (pantalaimon)[arguments]: Turn into gexps.  Add
install-doc phase
---
 gnu/packages/matrix.scm | 37 +++++++++++++++++++++++--------------
 1 file changed, 23 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index d5e0060c04..2ed7a9a782 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -36,6 +36,7 @@ (define-module (gnu packages matrix)
   #:use-module (gnu packages xml)
   #:use-module (guix build-system python)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix packages))
 
@@ -248,20 +249,28 @@ (define-public pantalaimon
          "16ask8v00654q307c55q5gnm8hrj40gibpab5zl52v4i0bgl9j68"))))
     (build-system python-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'downgrade-appdirs-requirement
-           (lambda _
-             (substitute* "setup.py"
-               ;; FIXME: Remove this once appdirs is updated.
-               ;; Upgrading python-appdirs requires rebuilting 3000+ packages,
-               ;; when 1.4.4 is a simple maintenance fix from 1.4.3.
-               (("appdirs >= 1.4.4") "appdirs >= 1.4.3"))))
-         (replace 'check
-           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
-             (when tests?
-               (add-installed-pythonpath inputs outputs)
-               (invoke "pytest" "-vv" "tests")))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'downgrade-appdirs-requirement
+            (lambda _
+              (substitute* "setup.py"
+                ;; FIXME: Remove this once appdirs is updated.
+                ;; Upgrading python-appdirs requires rebuilting 3000+ packages,
+                ;; when 1.4.4 is a simple maintenance fix from 1.4.3.
+                (("appdirs >= 1.4.4") "appdirs >= 1.4.3"))))
+          (add-after 'install 'install-doc
+            (lambda _
+              (with-directory-excursion "docs/man"
+                (let ((man (string-append #$output "/share/man")))
+                  (install-file "panctl.1" (string-append man "/man1"))
+                  (install-file "pantalaimon.5" (string-append man "/man5"))
+                  (install-file "pantalaimon.8" (string-append man "/man8"))))))
+          (replace 'check
+            (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+              (when tests?
+                (add-installed-pythonpath inputs outputs)
+                (invoke "pytest" "-vv" "tests")))))))
     (native-inputs
      (list python-aioresponses
            python-faker
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#60738] [PATCH] gnu: pantalaimon: Install documentation and use gexps.
  2023-01-11 19:03 [bug#60738] [PATCH] gnu: pantalaimon: Install documentation and use gexps Morgan.J.Smith
@ 2023-01-29 16:25 ` Michael Rohleder
  2023-02-11 20:57 ` bug#60738: " Nicolas Goaziou
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Rohleder @ 2023-01-29 16:25 UTC (permalink / raw)
  To: Morgan.J.Smith; +Cc: 60738

[-- Attachment #1: Type: text/plain, Size: 96 bytes --]

This looks good to me, thank you!

-- 
Listen and silent are spelled with the same letters.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#60738: [PATCH] gnu: pantalaimon: Install documentation and use gexps.
  2023-01-11 19:03 [bug#60738] [PATCH] gnu: pantalaimon: Install documentation and use gexps Morgan.J.Smith
  2023-01-29 16:25 ` Michael Rohleder
@ 2023-02-11 20:57 ` Nicolas Goaziou
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2023-02-11 20:57 UTC (permalink / raw)
  To: Morgan.J.Smith; +Cc: 60738-done

Hello,

Morgan.J.Smith@outlook.com writes:

> * gnu/packages/matrix.scm (pantalaimon)[arguments]: Turn into gexps.  Add
> install-doc phase

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-11 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 19:03 [bug#60738] [PATCH] gnu: pantalaimon: Install documentation and use gexps Morgan.J.Smith
2023-01-29 16:25 ` Michael Rohleder
2023-02-11 20:57 ` bug#60738: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).