From 76aab981123ace59f320f62ded3bd93e796ac2e7 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 15 Mar 2021 17:11:06 -0400 Subject: [PATCH 14/53] gnu: belcard: Seperate outputs. * gnu/packages/linphone.scm (belcard) [outputs]: New output "test". ['seperate-outputs]: New phase. --- gnu/packages/linphone.scm | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm index 25cfe6de94..aee6ce4611 100644 --- a/gnu/packages/linphone.scm +++ b/gnu/packages/linphone.scm @@ -247,10 +247,27 @@ IETF.") (sha256 (base32 "16x2xp8d0a115132zhy1kpxkyj86ia7vrsnpjdg78fnbvmvysc8m")))) (build-system cmake-build-system) + (outputs '("out" "test")) (arguments - `(#:tests? #f ; No test target - #:configure-flags - (list "-DENABLE_STATIC=OFF"))) ; Not required + `(#:tests? #f ; FIX-ME + #:configure-flags '("-DENABLE_STATIC=OFF") + #:phases + (modify-phases %standard-phases + (add-after 'install 'seperate-outputs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (test (assoc-ref outputs "test")) + (test-name (string-append ,name "_tester"))) + (for-each mkdir-p + `(,(string-append test "/bin") + ,(string-append test "/share"))) + (rename-file + (string-append out "/bin/" test-name) + (string-append test "/bin/" test-name)) + (rename-file + (string-append out "/share/" test-name) + (string-append test "/share/" test-name))) + #t))))) (native-inputs `(("python" ,python-wrapper))) (inputs -- 2.31.0