From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YF+nKsKAuWSbbQAASxT56A (envelope-from ) for ; Thu, 20 Jul 2023 20:45:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mD2/KcKAuWQAdwEAG6o9tA (envelope-from ) for ; Thu, 20 Jul 2023 20:45:22 +0200 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 32EE24B959 for ; Thu, 20 Jul 2023 20:45:22 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b="TGhZ/RwG"; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689878722; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pZoJupIJHCQuBQRJ9yx9DvtGu51fUaanBkVXyhMwPeU=; b=kJ8KFRwqg9lduegX6GQSjKdzI1DbSuH4i9nG7OCLZkChl+LauM7EntdETWrhVcSvw+edOQ a6z0JfqqS0GEqLUeDc54Xq4ISq6qQC4InN84bphWkI1wnXiGid2ZLVbtRwqQXiz2IeovDy jHAGpRuA0FaXbzT1cdv5VbeOndzPRxe8PGpF/t5Er0ljes0G9t91TqFQT2tjZ+80OfoGl5 80Hgz39EFGt7ujfAtIeOkLjTD/2Jx0QyWg6O9XMDjaosDU9o7ZZitGyV292cIwm5tEKaMZ NIljiUkoHvXfD1g8/Ov7xUzlKN8Y+9EQz+rWMjqcqxey+aiUk+B5WTISkLuRJQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689878722; a=rsa-sha256; cv=none; b=cwoQDtfmk/ojjtAl54f8e//iF4NNvsK1ULk5E8lM+3xGZvvVw5D3gaVLduuqn4D0qpXcCw aZcruFgONmfQhqE6zLJ2Mqs1/bO/Nz+pRLPK7FYJkuATBmHQbO3nlKKzpuzRLCfAvFuYj9 U6h+tiZNhNAQIv9nw0vHci30VrTb2Ym3pQU9GneIw/JOL5E2eiuEavBps28qz7KS5IbyRg OaEv51UmWtvLvXhAenMq3b8ck3VHTCBQX/fPMBuzb6tme8Xnq7ndKsUa451VLRxsHATL+w hWxiWIfwVYjramGJA+yiCX5lKIpO7kC6ssY1Ij+7+wWlSlv2K15vtUNADf+WbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b="TGhZ/RwG"; 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=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMYeJ-0002Av-Le; Thu, 20 Jul 2023 14:45:15 -0400 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 1qMYe6-0002A4-56 for guix-patches@gnu.org; Thu, 20 Jul 2023 14:45:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMYe5-0003C3-TF for guix-patches@gnu.org; Thu, 20 Jul 2023 14:45:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMYe5-0002cV-OH for guix-patches@gnu.org; Thu, 20 Jul 2023 14:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64751] [PATCH core-updates 3/4] gnu: imagemagick: Update package style References: <20230720183731.7296-1-saku@laesvuori.fi> In-Reply-To: <20230720183731.7296-1-saku@laesvuori.fi> Resent-From: Saku Laesvuori Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Jul 2023 18:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64751 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64751@debbugs.gnu.org Cc: Saku Laesvuori Received: via spool by 64751-submit@debbugs.gnu.org id=B64751.16898786559991 (code B ref 64751); Thu, 20 Jul 2023 18:45:01 +0000 Received: (at 64751) by debbugs.gnu.org; 20 Jul 2023 18:44:15 +0000 Received: from localhost ([127.0.0.1]:59882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMYdK-0002az-CA for submit@debbugs.gnu.org; Thu, 20 Jul 2023 14:44:14 -0400 Received: from vmi571514.contaboserver.net ([75.119.130.101]:56176 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMYdI-0002aq-21 for 64751@debbugs.gnu.org; Thu, 20 Jul 2023 14:44:13 -0400 Received: from X-kone.lan (88-113-24-127.elisa-laajakaista.fi [88.113.24.127]) by mail.laesvuori.fi (Postfix) with ESMTPSA id 85C7034012E; Thu, 20 Jul 2023 20:44:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1689878652; bh=yb8pkLwkliIL5isjjHAcvzr6S9BcVjmMGSPjT7snhrw=; h=From:To:Cc:Subject:Date; b=TGhZ/RwG2RFmAev9ZrbfOouJmjmPSd7ugnOU/qk4vQMgQ7n+/DsmSWm2CGvvLc5J/ xuffv8YD8mkLcuM+XmPmi939sDUSblLo0iw4MiLS3V5x3Y44DCUtPKPerTjXKd1/09 wqNHysmjWDEKDPYfRoqFNHgRG1qxRw0wAek0BYpM= Date: Thu, 20 Jul 2023 21:41:26 +0300 Message-ID: <20230720184404.14172-1-saku@laesvuori.fi> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Reply-to: Saku Laesvuori X-ACL-Warn: , Saku Laesvuori via Guix-patches From: Saku Laesvuori via Guix-patches via 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 X-Migadu-Spam-Score: -6.16 X-Spam-Score: -6.16 X-Migadu-Queue-Id: 32EE24B959 X-Migadu-Scanner: mx1.migadu.com X-TUID: kL9StS28j5jk * gnu/packages/imagemagick.scm (imagemagick/stable)[arguments]: Use G-exps. [inputs]: Use new style. (imagemagick)[inputs]: Use new style. --- gnu/packages/imagemagick.scm | 105 +++++++++++++++++------------------ 1 file changed, 50 insertions(+), 55 deletions(-) diff --git a/gnu/packages/imagemagick.scm b/gnu/packages/imagemagick.scm index 55e100a71c..82ac9f5107 100644 --- a/gnu/packages/imagemagick.scm +++ b/gnu/packages/imagemagick.scm @@ -68,69 +68,65 @@ (define-public imagemagick/stable (version "6.9.11-48") (source (origin (method url-fetch) - (uri (string-append "mirror://imagemagick/ImageMagick-" - version ".tar.xz")) + (uri (string-append "mirror://imagemagick/ImageMagick-" version + ".tar.xz")) (sha256 (base32 "0m8nkmywkqwyrr01q7aiakj6mi4rb2psjgzv8n0x82x3s1rpfyql")))) (build-system gnu-build-system) (arguments - `(#:configure-flags '("--with-frozenpaths" "--without-gcc-arch" + (list + #:configure-flags ''("--with-frozenpaths" "--without-gcc-arch" - ;; Do not embed the build date in binaries. - "--enable-reproducible-build") + ;; Do not embed the build date in binaries. + "--enable-reproducible-build") - ;; FIXME: The test suite succeeded before version 6.9.6-2. - ;; Try enabling it again with newer releases. - #:tests? #f - #:phases (modify-phases %standard-phases - (add-before - 'build 'pre-build - (lambda* (#:key outputs #:allow-other-keys) - (substitute* "Makefile" - ;; Clear the `LIBRARY_PATH' setting, which otherwise - ;; interferes with our own use. - (("^LIBRARY_PATH[[:blank:]]*=.*$") - "") + ;; FIXME: The test suite succeeded before version 6.9.6-2. + ;; Try enabling it again with newer releases. + #:tests? #f + #:phases #~(modify-phases %standard-phases + (add-before 'build 'pre-build + (lambda* _ + (substitute* "Makefile" + ;; Clear the `LIBRARY_PATH' setting, which otherwise + ;; interferes with our own use. + (("^LIBRARY_PATH[[:blank:]]*=.*$") + "") - ;; Since the Makefile overrides $docdir, modify it to - ;; refer to what we want. - (("^DOCUMENTATION_PATH[[:blank:]]*=.*$") - (let ((doc (assoc-ref outputs "doc"))) - (string-append "DOCUMENTATION_PATH = " - doc "/share/doc/" - ,name "-" - ,(package-version this-package) "\n")))) - #t)) - (add-before - 'configure 'strip-configure-xml - (lambda _ - (substitute* "config/configure.xml.in" - ;; Do not record 'configure' arguments in the - ;; configure.xml file that gets installed: That would - ;; include --docdir, and thus retain a reference to the - ;; 'doc' output. - (("@CONFIGURE_ARGS@") - "not recorded")) - #t))))) + ;; Since the Makefile overrides $docdir, modify it to + ;; refer to what we want. + (("^DOCUMENTATION_PATH[[:blank:]]*=.*$") + (string-append "DOCUMENTATION_PATH = " + #$output:doc + "/share/doc/imagemagick-" + #$(package-version this-package) + "\n"))))) + (add-before 'configure 'strip-configure-xml + (lambda _ + (substitute* "config/configure.xml.in" + ;; Do not record 'configure' arguments in the + ;; configure.xml file that gets installed: That would + ;; include --docdir, and thus retain a reference to the + ;; 'doc' output. + (("@CONFIGURE_ARGS@") + "not recorded"))))))) ;; TODO: Add Jasper etc. - (inputs `(("fftw" ,fftw) - ("graphviz" ,graphviz) - ("ghostscript" ,ghostscript) - ("lcms" ,lcms) - ("libx11" ,libx11) - ("zlib" ,zlib) - ("libxml2" ,libxml2) - ("libtiff" ,libtiff) - ("libpng" ,libpng) - ("libjpeg" ,libjpeg-turbo) - ("pango" ,pango) - ("freetype" ,freetype) - ("bzip2" ,bzip2) - ("xz" ,xz))) + (inputs (list fftw + graphviz + ghostscript + lcms + libx11 + zlib + libxml2 + libtiff + libpng + libjpeg-turbo + pango + freetype + bzip2 + xz)) (native-inputs (list pkg-config)) - (outputs '("out" - "doc")) ; 26 MiB of HTML documentation + (outputs '("out" "doc")) ;26 MiB of HTML documentation (home-page "https://www.imagemagick.org/") (synopsis "Create, edit, compose, or convert bitmap images") (description @@ -158,8 +154,7 @@ (define-public imagemagick (base32 "0didbs10i9zb4dgripa851j7fivxb9jar7l3vvxz6i4kn6xvdv7r")) (patches (search-patches "imagemagick-Fix-tests.patch")))) - (inputs (cons `("libwebp" ,libwebp) - (package-inputs imagemagick/stable))) + (inputs (cons libwebp (package-inputs imagemagick/stable))) (arguments (append (package-arguments imagemagick/stable) '(#:tests? #t))))) -- 2.41.0