From patchwork Thu May 18 17:33:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 50129 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1785527BBE9; Thu, 18 May 2023 18:34:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1B81227BBE2 for ; Thu, 18 May 2023 18:34:25 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzhVr-00045k-GD; Thu, 18 May 2023 13:34:03 -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 1pzhVq-00045N-AT for guix-patches@gnu.org; Thu, 18 May 2023 13:34:02 -0400 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 1pzhVq-0005Qf-2P for guix-patches@gnu.org; Thu, 18 May 2023 13:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pzhVp-0001Cx-UI for guix-patches@gnu.org; Thu, 18 May 2023 13:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60824] [PATCH v2 1/2] gnu: perl-xml-xpath: Wrap xpath command. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 May 2023 17:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60824 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60824@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 60824-submit@debbugs.gnu.org id=B60824.16844311944574 (code B ref 60824); Thu, 18 May 2023 17:34:01 +0000 Received: (at 60824) by debbugs.gnu.org; 18 May 2023 17:33:14 +0000 Received: from localhost ([127.0.0.1]:54367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzhV4-0001Bi-7s for submit@debbugs.gnu.org; Thu, 18 May 2023 13:33:14 -0400 Received: from smtpm3.myservices.hosting ([185.26.105.234]:60190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzhV1-0001BY-GX for 60824@debbugs.gnu.org; Thu, 18 May 2023 13:33:12 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm3.myservices.hosting (Postfix) with ESMTP id 8D4282108A for <60824@debbugs.gnu.org>; Thu, 18 May 2023 19:33:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id DAAC18009C; Thu, 18 May 2023 19:33:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id x6yesrmzLU1u; Thu, 18 May 2023 19:33:08 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 18B1B8009B; Thu, 18 May 2023 19:33:08 +0200 (CEST) From: Bruno Victal Date: Thu, 18 May 2023 18:33:03 +0100 Message-Id: <1b22f02d1d3237a361262b9fcc8ecbf43e935c20.1684431164.git.mirai@makinata.eu> X-Mailer: git-send-email 2.39.2 In-Reply-To: <024ddbe123ad4d22ca508e1cb998da48fb16338b.1673745598.git.mirai@makinata.eu> References: <024ddbe123ad4d22ca508e1cb998da48fb16338b.1673745598.git.mirai@makinata.eu> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/xml.scm (perl-xml-xpath)[arguments]: Wrap xpath. [description]: Document xpath command presence. --- gnu/packages/xml.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) base-commit: 5b700945fb0b33eec410de8979cae2fbf0d4f118 diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 2bc4f66c01..3c94937f49 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -33,6 +33,7 @@ ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 David Larsson ;;; Copyright © 2021 Matthew James Kraai +;;; Copyright © 2023 Bruno Victal ;;; ;;; This file is part of GNU Guix. ;;; @@ -1044,6 +1045,16 @@ (define-public perl-xml-xpath (base32 "03yxj7w5a43ibbpiqsvb3lswj2b71dydsx4rs2fw0p8n0l3i3j8w")))) (build-system perl-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'wrap 'wrap-xpath + (lambda _ + (wrap-program (string-append #$output "/bin/xpath") + `("PERL5LIB" ":" prefix + ,(cons (string-append #$output "/lib/perl5/site_perl") + (string-split (getenv "PERL5LIB") #\:))))))))) (native-inputs (list perl-path-tiny)) (propagated-inputs @@ -1053,7 +1064,7 @@ (define-public perl-xml-xpath (description "This module aims to comply exactly to the @url{XPath specification, https://www.w3.org/TR/xpath} and yet allow extensions to be added in -the form of functions.") +the form of functions. It also provides the command @command{xpath}.") (license license:perl-license))) (define-public pugixml