From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YB5WISIbumPU9wAAbAwnHQ (envelope-from ) for ; Sun, 08 Jan 2023 02:23:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gElHISIbumONlwAA9RJhRA (envelope-from ) for ; Sun, 08 Jan 2023 02:23:46 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2BE0313D23 for ; Sun, 8 Jan 2023 02:23:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEKOv-0001jZ-JL; Sat, 07 Jan 2023 20:23:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEKOu-0001ix-D0 for guix-patches@gnu.org; Sat, 07 Jan 2023 20:23:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEKOu-0003c0-5Q for guix-patches@gnu.org; Sat, 07 Jan 2023 20:23:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEKOu-0003P5-0E for guix-patches@gnu.org; Sat, 07 Jan 2023 20:23:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60640] Gnu: Add gdcm Resent-From: =?UTF-8?Q?Tor-bj=C3=B6rn?= Claesson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Jan 2023 01:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60640 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 60640@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167314095112989 (code B ref -1); Sun, 08 Jan 2023 01:23:03 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jan 2023 01:22:31 +0000 Received: from localhost ([127.0.0.1]:59404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEKOM-0003NK-FG for submit@debbugs.gnu.org; Sat, 07 Jan 2023 20:22:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:46254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEF5L-0005zR-3f for submit@debbugs.gnu.org; Sat, 07 Jan 2023 14:42:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEF5K-0007Xg-V1 for guix-patches@gnu.org; Sat, 07 Jan 2023 14:42:30 -0500 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEF5J-0006dC-8v for guix-patches@gnu.org; Sat, 07 Jan 2023 14:42:30 -0500 Received: by mail-lf1-x12e.google.com with SMTP id bu8so6841193lfb.4 for ; Sat, 07 Jan 2023 11:42:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=WOflghYWxO2QAkOfDKFWzbK4LOLT2l/uVh3lZmbdUnI=; b=Zv/Ia/38fnwU8H1rIYs/Uya8sKTcOkoUBHW3ANn5cccOeA5vO/ZrRrmTKn4nWHGNfF F8zeSlOZoKWzhSFnil8xaDQtkv4O/3FLTJqp7z39FQen9J/eObRIHVacHG7l3Piqm1Sq 92YIs11JzCmavy3Y5XHsW2gvImez1/VKIih+VPy4cuxi3s0piZSnTDKYX/s0TE3oRIwl JH9T78z7mRKuDSrHlSCtBrPFVGidwz7yu1ILep6X6K/BPGOkJoDciTkHtWF4y7TscJQN OqDDDl69g4qtSuyPu64zJZ0w1Ytm90dY0drwJhD9yxq6hvkmARV2c1baL9oNR+8K+aXM a+zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WOflghYWxO2QAkOfDKFWzbK4LOLT2l/uVh3lZmbdUnI=; b=LG+fSM8zYUHZBhRTy9ND9dKYjvj9ZdtAxcFs/tFRy5FePxIoc381rVp03fcSsyvDDU fatdc+mx86yirhXxf6Mew2gg+NqUm/y6WSh0oTDqV1mhIyNmSeh8Msm/OgSlkzlD0xmb AeYIgP8Owdvr+jdiQSqKmHd1L9rxHjk7fb+pvJWUkgzR1Z3PvoFwLiUstRESqzvnbWJA Lzd4b0xCqhMac5j1UK0bl7Dpw8hzdwwMolcu2JdhgkqeAYPBgMnkswqCDGNm85BaB/tF XEtjvMRozg9NsimHp1q169KCv2ZjZbmhy/fgjQTJ4E91iOEuysVlKsgojHyvgkpCefQ7 Ay1w== X-Gm-Message-State: AFqh2kqRvsRxzJqu2yNTzRwZV/GDbTip2WRt6ZWXopQ+esQ6xOwBxTk6 /O3AtrHdHFyvyT0Tt3gx3Dj+/NJLpBI= X-Google-Smtp-Source: AMrXdXtPJsls9He0GH4aVit+pDXhkRA/5YKwJ9ryQ02Lm0Oa6cysPeF7XsvF2llghaNJsNycvFl5Xg== X-Received: by 2002:a05:6512:3b87:b0:4a4:68b7:d623 with SMTP id g7-20020a0565123b8700b004a468b7d623mr19607866lfv.10.1673120546284; Sat, 07 Jan 2023 11:42:26 -0800 (PST) Received: from barbar (212-90-81-204.bb.dnainternet.fi. [212.90.81.204]) by smtp.gmail.com with ESMTPSA id m3-20020a056512114300b004cb454bf010sm703864lfg.267.2023.01.07.11.42.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 11:42:25 -0800 (PST) User-agent: mu4e 1.8.13; emacs 28.2 From: =?UTF-8?Q?Tor-bj=C3=B6rn?= Claesson Date: Sat, 07 Jan 2023 21:40:42 +0200 Message-ID: <877cxyp1wf.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=tclaesson@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 07 Jan 2023 20:22:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673141026; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=WOflghYWxO2QAkOfDKFWzbK4LOLT2l/uVh3lZmbdUnI=; b=S5UB6/Zr/vxHhDkvD87EOPZPc1LxpV5rkgGrzQVuJPQZWk2tQUD+aUFdTtz84xL/S3GuOy BSpSNNG4E5pB5HHQd9PkxPDRDCtfwWGvxTP7Wga85JkBwZISmotE7Ta15gZiq1rL8JTeZT DdvtpxBRFrX8hFk00kKkqf4knPdToAimlUfW1PxC3MkAm5c5+iL+2GbVX1D92nIq+Ea2Lb 8Xl4EpKPmRGjnTH8OW67e7Ao83VriSaQuDJoPvRN5KQ047GSPNNlhvyNEJUqQJpza95oTl KlkaESoOuC3RMxs+cAPhTircbVafKG1c1zFQRCzl/aOZ2yJqHMwwdffSxjUfrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="Zv/Ia/38"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673141026; a=rsa-sha256; cv=none; b=cCIx0GSH9wumrDSRVjaL893dBhv6Sk+O02PDxfS2lp25kqDyd92uX+Kl6qY+t8aaLVB/XX tVj+oaECXgAvsirNfgNvoBzv/B7jEI4W35Ln0arNRr7SAA6oIHQnZzY7L/dv447FBTTLZz 5MkhvM3n7mLdNiUqIXVCfiYQBDJZSRf3QNmje9YO/cDEvMDIOYkpe4PI+Dof/PCHpWIvXZ e4d5Nwl3G474CZPZMcFyvimSbIgN/yHR2AYDNV05SswtmlI4Y890lEs2ik7uL6m1HcIbHs Th1Mr6pMsKuuhvdOrysmcK5vVcEbVEE5xDADR7moDzF2vdlNgb9IzZkp44hOIg== X-Spam-Score: 5.74 X-Migadu-Queue-Id: 2BE0313D23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="Zv/Ia/38"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 5.74 X-TUID: 8wSmlUsuGRll gnu/packages/image-processing.scm | 72 +++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 70c820e76b..271593b5f9 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -99,6 +99,7 @@ (define-module (gnu packages image-processing) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) #:use-module (gnu packages video) + #:use-module (gnu packages web) #:use-module (gnu packages xiph) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -1776,3 +1777,74 @@ (define-public charls to have them encoded to JPEG-LS, or JPEG-LS streams, which CharLS will decode to images.") (license license:bsd-3))) + +(define-public gdcm + (package + (name "gdcm") + (version "3.0.20") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/malaterre/GDCM/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1w78cmm9q7aavs7svdkl4dgilcqk4yazci9m6x7icrssb7cj991i")))) + (build-system cmake-build-system) + (outputs '("out" "doc")) + (arguments + (list #:tests? #f + #:phases #~(modify-phases %standard-phases + (add-before 'configure 'set-LDFLAGS + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "LDFLAGS" + (string-append "-Wl,-rpath=" + #$output "/lib")))) + (add-before 'build 'patch-gdcm-charls.h + (lambda _ + (substitute* "../source/Utilities/gdcm_charls.h" + (("# include ") + "# include ")) #t))) + #:configure-flags #~(list "-DCMAKE_SKIP_RPATH:BOOL=YES" + "-DCMAKE_BUILD_TYPE:STRING=Release" + "-DCMAKE_C_FLAGS=-fvisibility=hidden" + "-DCMAKE_CXX_FLAGS=-fvisibility=hidden" + "-DGDCM_BUILD_SHARED_LIBS:BOOL=ON" + "-DGDCM_DOCUMENTATION:BOOL=ON" + "-DGDCM_USE_SYSTEM_EXPAT:BOOL=ON" + "-DGDCM_USE_SYSTEM_ZLIB:BOOL=ON" + "-DGDCM_USE_SYSTEM_CHARLS:BOOL=ON" + "-DGDCM_USE_SYSTEM_POPPLER:BOOL=ON" + "-DGDCM_USE_SYSTEM_LIBXML2:BOOL=ON" + "-DGDCM_USE_SYSTEM_JSON:BOOL=ON" + "-DGDCM_USE_SYSTEM_UUID:BOOL=ON" + "-DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON" + "-DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON" + "-DGDCM_PDF_DOCUMENTATION:BOOL=OFF" + "-DGCM_BUILD_TESTING:BOOL=OFF" + "-DGDCM_BUILD_APPLICATIONS:BOOL=OFF" + "-DGDCM_USE_SYSTEM_PAPYRUS3:BOOL=OFF" + "-DGDCM_USE_SYSTEM_SOCKETXX:BOOL=OFF" + "-DGDCM_USE_SYSTEM_LJPEG:BOOL=OFF"))) + (inputs (list openssl + expat + charls + poppler + libxml2 + json-c + openjpeg + `(,util-linux "lib") + zlib)) + (native-inputs (list git pkg-config doxygen graphviz)) + (home-page "https://gdcm.sourceforge.net") + (synopsis + "C++ library dedicated to reading/parsing and writing DICOM medical files") + (description + "Grassroots DICOM (GDCM) is an implementation of the DICOM standard +designed to be open source so that researchers may access clinical data +directly. GDCM includes a file format definition and a network communications +protocol, both of which should be extended to provide a full set of tools for +a researcher or small medical imaging vendor to interface with an existing +medical database.") + (license license:bsd-3))) -- 2.38.1