~ruther/guix-local

91188daed72ae38998b310750e5e3dec30406b57 — Jake Forster 1 year, 1 month ago 44e1f5d
gnu: gdcm: Fix reference in exported target.

* gnu/packages/bioinformatics.scm (gdcm)
[arguments]<#:phases>{refer-to-charls}: New phase.

Change-Id: I0671b71471c123b041156940640f0f745464052d
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 9 insertions(+), 0 deletions(-)

M gnu/packages/bioinformatics.scm
M gnu/packages/bioinformatics.scm => gnu/packages/bioinformatics.scm +9 -0
@@ 25264,6 25264,15 @@ module capable of computing base-level alignments for very large sequences.")
              "-DGDCM_USE_SYSTEM_ZLIB=ON")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'refer-to-charls
            (lambda _
              ;; Resolve the absolute path to libcharls.so instead of exporting
              ;; a bare '-lcharls' reference in GDCM targets.
              (substitute* "CMakeLists.txt"
                (("set\\(GDCM_CHARLS_LIBRARIES charls\\)")
                 (string-append
                  "find_library(CHARLS_LIBRARY NAMES charls REQUIRED)\n"
                  "  set(GDCM_CHARLS_LIBRARIES ${CHARLS_LIBRARY})")))))
          (add-before 'build 'set-HOME
            ;; The build with documentation spams ‘Fontconfig error: No writable
            ;; cache directories’ in a seemingly endless loop otherwise.