summary refs log tree commit diff
path: root/gnu/packages/linphone.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-04-08 14:03:00 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-04-08 20:05:05 +0200
commitbf95402f5deca9c7fc60cc2ad223ea48008233dc (patch)
treee3abd047f37e0c676a7c1eaa9210022d407fbe9c /gnu/packages/linphone.scm
parente335d055a01691d96d26308da47f150368e6c684 (diff)
downloadguix-bf95402f5deca9c7fc60cc2ad223ea48008233dc.tar.gz
gnu: ortp: Use G-expression.
* gnu/packages/linphone.scm (ortp)[arguments]: Use G-expression.
Diffstat (limited to 'gnu/packages/linphone.scm')
-rw-r--r--gnu/packages/linphone.scm48
1 files changed, 24 insertions, 24 deletions
diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm
index 135ec70541..bcd659abe5 100644
--- a/gnu/packages/linphone.scm
+++ b/gnu/packages/linphone.scm
@@ -409,31 +409,31 @@ such as conferencing.")
     (outputs '("out""tester"
                "doc"))                  ;1.5 MiB of HTML doc
     (arguments
-     `(#:tests? #f                      ;requires networking
-       #:configure-flags (list "-DENABLE_STATIC=NO"
+     (list
+      #:tests? #f                       ;requires networking
+      #:configure-flags '(list "-DENABLE_STATIC=NO"
                                "-DENABLE_TESTS=YES")
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'fix-version-strings
-           ;; See: https://gitlab.linphone.org/BC/public/ortp/-/issues/5.
-           (lambda _
-             (substitute* "CMakeLists.txt"
-               (("VERSION [0-9]+\\.[0-9]+\\.[0-9]+")
-                (string-append "VERSION " ,version))
-               (("\\$\\{ORTP_DOC_VERSION\\}")
-                ,version))))
-         (add-after 'install 'separate-outputs
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (doc (assoc-ref outputs "doc"))
-                    (doc-src (string-append out "/share/doc/ortp-" ,version))
-                    (doc-dest (string-append doc "/share/doc/ortp-" ,version))
-                    (tester (assoc-ref outputs "tester")))
-               (for-each mkdir-p (list (string-append doc "/share/doc")
-                                       (string-append tester "/bin")))
-               (rename-file doc-src doc-dest)
-               (rename-file (string-append out "/bin")
-                            (string-append tester "/bin"))))))))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-version-strings
+            ;; See: https://gitlab.linphone.org/BC/public/ortp/-/issues/5.
+            (lambda _
+              (substitute* "CMakeLists.txt"
+                (("VERSION [0-9]+\\.[0-9]+\\.[0-9]+")
+                 (string-append "VERSION " #$version))
+                (("\\$\\{ORTP_DOC_VERSION\\}")
+                 #$version))))
+          (add-after 'install 'separate-outputs
+            (lambda _
+              (let* ((doc-src
+                      (string-append #$output "/share/doc/ortp-" #$version))
+                     (doc-dest
+                      (string-append #$output:doc "/share/doc/ortp-" #$version)))
+                (for-each mkdir-p (list (string-append #$output:doc "/share/doc")
+                                        (string-append #$output:tester "/bin")))
+                (rename-file doc-src doc-dest)
+                (rename-file (string-append #$output "/bin")
+                             (string-append #$output:tester "/bin"))))))))
     (native-inputs
      `(("dot" ,graphviz)
        ("doxygen" ,doxygen)))