From 2bc5c46ca2fee406a7108e5d43ef66af2d392889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor-bj=C3=B6rn=20Claesson?= Date: Fri, 27 Jan 2023 14:43:32 +0200 Subject: [PATCH 2/3] gnu: gdcm: Add bin output. gnu: gdcm: Add bin output. --- gnu/packages/bioinformatics.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 0fa7bb3746..9a3c0f7d42 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -18084,7 +18084,7 @@ (define-public gdcm (base32 "1rf0p7dnakjry0fa6ax1h762bn0l5n6ibfdxn077mjvwgpqan51l")))) (build-system cmake-build-system) - (outputs '("out" "doc")) + (outputs '("out" "bin" "doc")) (arguments (list #:phases @@ -18093,7 +18093,14 @@ (define-public gdcm ;; The build spams ‘Fontconfig error: No writable cache ;; directories’ in a seemingly endless loop otherwise. (lambda _ - (setenv "HOME" "/tmp")))) + (setenv "HOME" "/tmp"))) + (add-after 'install 'move-files + ;; Move utilities to bin output. + (lambda _ + (mkdir-p (string-append #$output:bin "/bin")) + (rename-file + (string-append #$output "/bin") + (string-append #$output:bin "/bin"))))) #:configure-flags #~(list "-DGDCM_BUILD_TESTING=true" (string-append "-DCMAKE_CTEST_ARGUMENTS=-E;" @@ -18105,9 +18112,13 @@ (define-public gdcm "|TestAnonymizer4" "|TestPrinter1" ;; Disable tests that download data from the internet. + "|gdcmscu-echo-dicomserver" + "|gdcmscu-store-dicomserver" + "|gdcmscu-find-dicomserver" "|TestSCUValidation" "|TestEcho" "|TestFind'") + "-DGDCM_BUILD_APPLICATIONS:BOOL=ON" "-DGDCM_DOCUMENTATION:BOOL=ON" "-DGDCM_PDF_DOCUMENTATION:BOOL=OFF" (string-append "-DGDCM_INSTALL_DOC_DIR=" -- 2.39.1