diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-04-08 14:03:00 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-04-08 20:05:05 +0200 |
commit | bf95402f5deca9c7fc60cc2ad223ea48008233dc (patch) | |
tree | e3abd047f37e0c676a7c1eaa9210022d407fbe9c /gnu/packages/linphone.scm | |
parent | e335d055a01691d96d26308da47f150368e6c684 (diff) |
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.scm | 48 |
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))) |