From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id AHWcAvM3BWamLgEAqHPOHw:P1 (envelope-from ) for ; Thu, 28 Mar 2024 10:27:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AHWcAvM3BWamLgEAqHPOHw (envelope-from ) for ; Thu, 28 Mar 2024 10:27:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=m1KqAw87; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711618034; a=rsa-sha256; cv=none; b=YyWM6HojLiW7XeGA8Nc0yTvlx9ZLfe+yaLtG336hlI9W/NRuuIx91wy/3Mm5gLFSn//Zh6 Y0evL3l5Gp5OqvMpQOKIbYlP2S9ft5BURh5If3JIRqv2oYWTkoQ5Hvf3FfOcXM1POeu1Y/ yrH9WsPwtmjsixehcO5M36odKZwVdAvslqc/uuzZFvfgDl+sMHMd5D2Wct8SrKp3af5ft1 HGveaJ/gwkLyXrB2ts9UCgTclzCF1De7r79YO2SXMluTxQk6adFblnjnHSm9/ROi9yFbmm EVFvQ4xLdqFquGwiak6kX1vDXrl0utTVvGR/+x9ny0vAjXO1S1HBebE3ICxI6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=m1KqAw87; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711618034; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=D0q9NElmHBVy9BhsZ2feDtnEFIHh5PiBTrfZwoG12ZQ=; b=qEp2SBSCP+qyapTsiUF1oqvvC3HZ7sz3+czNt41OK19fT6GlxSWL6pemL47mvFLI+PBA/v bQjYvNmhUc3zSubjORTzZ4ZtFMLM+LUkIyl6tjVY/8hj+E9gz0Y8xVVNvmGvBSRY5S28cG sjb8IumIiwsa9Xj3orpEgdvA6E6kOBzzEUV2Vrslo9Mc4pgJDVB0LUT/aQcC7sW0h4DWs/ zUsl8tgY9Yx4HltJl+m2wy8O4IP5WP+iXBEqMjlKqdkf5lD/xXUh9MJmG/RQJkecLT+cag nBhlgv7lNMgIoCRzHhN/G6COE/KtJJ3SFg4uuVKxN76LivCNVLuEFfzC4fn46g== 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 6C63F243ED for ; Thu, 28 Mar 2024 10:27:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpm2K-00023G-5O; Thu, 28 Mar 2024 05:27:04 -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 1rpm2I-000233-1s for guix-patches@gnu.org; Thu, 28 Mar 2024 05:27: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 1rpm2H-0005Oj-Hd for guix-patches@gnu.org; Thu, 28 Mar 2024 05:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpm2I-00035L-4q for guix-patches@gnu.org; Thu, 28 Mar 2024 05:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70047] [PATCH] gnu: highlight: Update to 4.11. Resent-From: chris Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Mar 2024 09:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70047 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70047@debbugs.gnu.org Cc: chris X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171161800811777 (code B ref -1); Thu, 28 Mar 2024 09:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Mar 2024 09:26:48 +0000 Received: from localhost ([127.0.0.1]:39066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpm20-00033Z-Jo for submit@debbugs.gnu.org; Thu, 28 Mar 2024 05:26:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpm1w-00032j-JJ for submit@debbugs.gnu.org; Thu, 28 Mar 2024 05:26:43 -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 1rpm1p-0001zp-Sd for guix-patches@gnu.org; Thu, 28 Mar 2024 05:26:33 -0400 Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpm1n-0005Fn-4V for guix-patches@gnu.org; Thu, 28 Mar 2024 05:26:33 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id E497F3085BE4 for ; Thu, 28 Mar 2024 10:26:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1711617975; x=1713432376; bh=D0q9NElmHBVy9BhsZ2feDtnEFIHh5PiBTrfZwoG12ZQ=; b=m1KqAw87R2xg zYdK5Mt1ftXugWF1AWlXHxAXNoBZHOxKUVw/k3Yhjgugd4bLK87j5069NH6QeBSr WThbeMgFm422EU7caBGGmLV3SLUicp1XIr2LtMcN59AkWffQN6Mk30Ig+5L2jU1e Js3HKVHdErJf+/H/Io+jWvr3NQKiTgy7cJKT0+Tym579KCPzE8bf3QGEG23hmeI8 H/75paZ+y6Aj7VZ8NRWjttiNvphAVP2hbuBcOYJWTxu1UV3onumB4Sbr8eelj++g ao6W4cC0vP+mK8kAezXYKcNhOL/tqJwZgkwCb7HHot4EuxhYLXg1HU6jaUoIU5G5 q+yCI8E4wKsc2b/gT6Lq41UwomvKXY391zRpu0ycV57XNHSjIuUElAAUtSlsYnHT HZnEg2ZfwXJ+N7TK6GqMreVtI6y0YLeB7k9sSiG50QSJ2qMKLDNonnOZPLtP6xZH zcLkJsc1ymHSd8Q9aVXb6co+tZnVP1LgTmxAG3AnRDDsej0m44cIkvuUPCQAOGa7 p7SFOV5Q4Hif139KRUaCzTVV2rzvUKThQ1gpx3tVOIApFgmlkGA+Exs6sP1UVeJK q3ElNj5pHV0mM5t2K0V6287LK5wijbvBQlAe/zaly++U02+xPFYkHD0WtDQPOfr7 mh4qGrvjQHeLnKPMxsxgVBLhXCc1LIo= X-Virus-Scanned: amavis at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id FytllDIydq0o for ; Thu, 28 Mar 2024 10:26:15 +0100 (CET) Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id C02303085BE1 for ; Thu, 28 Mar 2024 10:26:15 +0100 (CET) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 3CCF420D8CC9 for ; Thu, 28 Mar 2024 10:26:15 +0100 (CET) From: chris Date: Thu, 28 Mar 2024 02:24:39 -0700 Message-ID: <2e0f9a03e955cc28f5b67e7edcc8680eed5bc587.1711617879.git.chris@bumblehead.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.103.80.155; envelope-from=chris@bumblehead.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_PDS_PRO_TLD=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -1.35 X-Migadu-Queue-Id: 6C63F243ED X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -1.35 X-TUID: gyKTaUb+m76X * (highlight): Update to 4.11. `guix lint highlight` moved the "arguments" nesting, otherwise few changes. The source is changed to gitlab and the php not-found homepage url is changed to an available html url Change-Id: I0c402fcea5708c4882b52309b3e072301f0a5614 --- gnu/packages/pretty-print.scm | 163 +++++++++++++++++----------------- 1 file changed, 81 insertions(+), 82 deletions(-) diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm index b95f56729a..13668712d1 100644 --- a/gnu/packages/pretty-print.scm +++ b/gnu/packages/pretty-print.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2022 Zhu Zihao ;;; Copyright © 2022, 2023 Maxim Cournoyer ;;; Copyright © 2023 gemmaro +;;; Copyright © 2024 chris ;;; ;;; This file is part of GNU Guix. ;;; @@ -352,93 +353,91 @@ (define-public source-highlight (define-public highlight (package (name "highlight") - (version "4.8") + (version "4.11") (outputs (list "out" "gui")) - (source (origin - (method url-fetch) - (uri (string-append "http://www.andre-simon.de/zip/highlight-" - version ".tar.bz2")) - (sha256 - (base32 - "1iggdw4c8pfz1z1c51fyd6x79y1mnc82b6lfkg3vbb44739m5cjs")) - (patches (search-patches "highlight-gui-data-dir.patch")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/saalen/highlight") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xb9jm7249qnbain4l94nakgxsmia4w4x246dagr669fkmffcdmg")) + (patches (search-patches "highlight-gui-data-dir.patch")))) (build-system gnu-build-system) (arguments - (list #:tests? #f ;no tests - #:make-flags #~(let ((confdir (string-append %output - "/share/highlight/config/"))) - (list (string-append "PREFIX=" %output) - (string-append "HL_CONFIG_DIR=" confdir) - (string-append "conf_dir=" confdir))) - #:phases #~(modify-phases %standard-phases - (delete 'configure) ;no configure script - (add-after 'unpack 'fix-search-for-lua - (lambda _ - (let ((ver #$(version-major+minor (package-version - lua)))) - (substitute* "src/makefile" - (("(LUA_PKG_NAME=).*" _ assignment) - (string-append assignment "lua-" ver "\n"))) - (substitute* "src/gui-qt/highlight.pro" - (("(PKGCONFIG \\+= lua)" _ assignment) - (string-append assignment "-" ver))) - (substitute* "extras/swig/makefile" - (("lua") - (string-append "lua-" ver)))))) - (add-after 'build 'build-gui - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (data (string-append out - "/share/highlight/")) - (conf (string-append out "/etc/highlight/")) - (doc (string-append out - "/share/doc/highlight/")) - (gui (assoc-ref outputs "gui")) - (gui-data (string-append gui - "/share/highlight/"))) - ;; modified version of gui task in makefile - (invoke "make" - "-C" - "./src" - "-f" - "./makefile" - (string-append "HL_DATA_DIR=" data) - (string-append "HL_CONFIG_DIR=" conf) - (string-append "HL_DOC_DIR=" doc) - (string-append "GUI_DATA_DIR=" gui-data) - "gui-qt")))) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (invoke "make" "install" - (string-append "PREFIX=" out))))) - (add-after 'install 'install-perl-bindings - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (data (string-append out - "/share/highlight/")) - (conf (string-append out "/etc/highlight/")) - (perldir (string-append out - "/lib/perl5/site_perl/" - #$(package-version perl))) - (autodir (string-append perldir - "/auto/highlight"))) - (with-directory-excursion "extras/swig" - (invoke "make" "perl" - (string-append "hl_data_dir=" data) - (string-append "hl_conf_dir=" conf)) - (invoke "perl" "-I" "." "testmod.pl") - (install-file "highlight.pm" perldir) - (install-file "highlight.so" autodir))))) - (add-after 'install 'install-gui - (lambda* (#:key outputs #:allow-other-keys) - (let ((gui (assoc-ref outputs "gui"))) - (mkdir-p (string-append gui "/bin")) - (invoke "make" "install-gui" - (string-append "PREFIX=" gui)))))))) + (list + #:tests? #f ;no tests + #:make-flags #~(let ((confdir (string-append %output + "/share/highlight/config/"))) + (list (string-append "PREFIX=" %output) + (string-append "HL_CONFIG_DIR=" confdir) + (string-append "conf_dir=" confdir))) + #:phases #~(modify-phases %standard-phases + (delete 'configure) ;no configure script + (add-after 'unpack 'fix-search-for-lua + (lambda _ + (let ((ver #$(version-major+minor (package-version lua)))) + (substitute* "src/makefile" + (("(LUA_PKG_NAME=).*" _ assignment) + (string-append assignment "lua-" ver "\n"))) + (substitute* "src/gui-qt/highlight.pro" + (("(PKGCONFIG \\+= lua)" _ assignment) + (string-append assignment "-" ver))) + (substitute* "extras/swig/makefile" + (("lua") + (string-append "lua-" ver)))))) + (add-after 'build 'build-gui + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (data (string-append out "/share/highlight/")) + (conf (string-append out "/etc/highlight/")) + (doc (string-append out "/share/doc/highlight/")) + (gui (assoc-ref outputs "gui")) + (gui-data (string-append gui "/share/highlight/"))) + ;; modified version of gui task in makefile + (invoke "make" + "-C" + "./src" + "-f" + "./makefile" + (string-append "HL_DATA_DIR=" data) + (string-append "HL_CONFIG_DIR=" conf) + (string-append "HL_DOC_DIR=" doc) + (string-append "GUI_DATA_DIR=" gui-data) + "gui-qt")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" "install" + (string-append "PREFIX=" out))))) + (add-after 'install 'install-perl-bindings + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (data (string-append out "/share/highlight/")) + (conf (string-append out "/etc/highlight/")) + (perldir (string-append out + "/lib/perl5/site_perl/" + #$(package-version perl))) + (autodir (string-append perldir + "/auto/highlight"))) + (with-directory-excursion "extras/swig" + (invoke "make" "perl" + (string-append "hl_data_dir=" data) + (string-append "hl_conf_dir=" conf)) + (invoke "perl" "-I" "." "testmod.pl") + (install-file "highlight.pm" perldir) + (install-file "highlight.so" autodir))))) + (add-after 'install 'install-gui + (lambda* (#:key outputs #:allow-other-keys) + (let ((gui (assoc-ref outputs "gui"))) + (mkdir-p (string-append gui "/bin")) + (invoke "make" "install-gui" + (string-append "PREFIX=" gui)))))))) (inputs (list lua boost perl qtbase-5)) (native-inputs (list pkg-config swig)) - (home-page "http://www.andre-simon.de/doku/highlight/en/highlight.php") + (home-page "http://www.andre-simon.de/doku/highlight/en/highlight.html") (synopsis "Convert code to documents with syntax highlighting") (description "Highlight converts source code to HTML, XHTML, RTF, LaTeX, base-commit: c2c1098585b10f42bed7647f2130a2727c0488f8 -- 2.41.0