From b3ad963f671cb96899f83010c34cd2267efd98d8 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sat, 13 Mar 2021 13:02:42 -0500 Subject: [PATCH 04/50] gnu: bcunit: Enable documentation. * gnu/packages/linphone.scm (bcunit) [outputs]: New output "doc". [arguments]<#:configure-flags>[-DENABLE_DOC]: New flag. <#:phases>['seperate-outputs]: New phase. --- gnu/packages/linphone.scm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm index dc78636f5a..bbea6411f7 100644 --- a/gnu/packages/linphone.scm +++ b/gnu/packages/linphone.scm @@ -74,12 +74,25 @@ (sha256 (base32 "0npdwvanjkfg9vrqs5yi8vh6wliv50ycdli8pzavir84nb31nq1b")))) (build-system cmake-build-system) + (outputs '("out" "doc")) (arguments - '(#:tests? #f ; No test target + `(#:tests? #f ; No test target #:configure-flags (list "-DENABLE_STATIC=NO" - "-DENABLE_CURSES=ON"))) + "-DENABLE_CURSES=ON" + "-DENABLE_DOC=ON") + #:phases + (modify-phases %standard-phases + (add-after 'install 'seperate-outputs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc"))) + (mkdir-p (string-append doc "/share/doc")) + (rename-file + (string-append out "/share/doc/BCUnit") + (string-append doc "/share/doc/BCUnit"))) + #t))))) (native-inputs `(("perl" ,perl))) (inputs -- 2.31.0