From patchwork Wed Oct 27 04:51:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 34089 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 D54D627BBE1; Wed, 27 Oct 2021 05:54:55 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 27B5727BBE4 for ; Wed, 27 Oct 2021 05:54:54 +0100 (BST) Received: from localhost ([::1]:38878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfaxh-00037o-89 for patchwork@mira.cbaines.net; Wed, 27 Oct 2021 00:54:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfawv-0001uj-Ij for guix-patches@gnu.org; Wed, 27 Oct 2021 00:54:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfawv-0003oS-AR for guix-patches@gnu.org; Wed, 27 Oct 2021 00:54:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfawv-00059B-8v for guix-patches@gnu.org; Wed, 27 Oct 2021 00:54:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51428] [PATCH core-update-frozen 08/13] gnu: Add docbook-xsl-ns. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Oct 2021 04:54:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51428 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 51428@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 51428-submit@debbugs.gnu.org id=B51428.163531039619543 (code B ref 51428); Wed, 27 Oct 2021 04:54:05 +0000 Received: (at 51428) by debbugs.gnu.org; 27 Oct 2021 04:53:16 +0000 Received: from localhost ([127.0.0.1]:48124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfaw7-000553-Qd for submit@debbugs.gnu.org; Wed, 27 Oct 2021 00:53:16 -0400 Received: from mail-qk1-f180.google.com ([209.85.222.180]:41809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfaw4-00053E-79 for 51428@debbugs.gnu.org; Wed, 27 Oct 2021 00:53:12 -0400 Received: by mail-qk1-f180.google.com with SMTP id r15so1328160qkp.8 for <51428@debbugs.gnu.org>; Tue, 26 Oct 2021 21:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QvdsjXCb4TjZDSeSgrUMOH+pLZe0d5AfLZyvNS/E2NQ=; b=MVhQXnT7PtoUaG3Xq62+10imQD6cBY4fw4qQfg4/8uWYBFCjYo8Ssbty8ZfMze7+5S QC4GuTjbdmZ/o9JkyokizBQqtBRKwDzZWpYdB7lBnunCmgUsbk7KOb5Qtb43CRFdhIBo d9AKRhT3Ipgb9jxWJBJkAPui79H4O38X+kIQsLHcu/KLjg56pvyjWEWB4hQqQ0wWYAHD OvjVhLZXkne5zaHA785cVpgagO4F8aiTNwse529SP7lG+prz00lPntWtKCsxDq/HDLzN GxIVVNFAExaoS4sK3lBIJ3xyxGIh0LIXR911iEBSSVtxtK0qWW5YYKBj9xf46w2cFqdG eYGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QvdsjXCb4TjZDSeSgrUMOH+pLZe0d5AfLZyvNS/E2NQ=; b=LcML4kaoz4O/gfVA0L5TtSPne2L1MeKayxJV2B68EfeLPAM/pzp1IXoUK14XJNlw5k /cEB2ZecR1ccfTDdES9Y5InV9oEnNkhDhwrFLtq0t8nNN3USBju4KKFZhh46W12ebM1k o2u0LQaFyS/0GLwZxWM4oYBnaKx2ROfl2LjHcumEoyezsNEX6pP+ns5rkAIzJ2NVMSFW 7sAej43xqM/INuqLIIRYQ8aqpbIbn4p4saf3/FCmTN79kqA21CLnqCxnfjRdfl7V52/G GSBp+4n9GkutAVl5lQF4oN5RqzuEKg9Jk+tn6ywBiDCcGFdKFEGohLwqZV82j+jcyiU+ H+9A== X-Gm-Message-State: AOAM533mve+TSKYFbVUlBZlqiQ4pibsGOjy5vvTrXmB/keW3fqFz6XO4 FmlWnHduf1LAvxme9iLsfn5s61+4s9g= X-Google-Smtp-Source: ABdhPJxIWThHeaMHSQNsm8BSbOqqP28ppYcx8clQf7WCU95EkJrDkrDa4FDL2ElQ+ISNCEVCCuM4cw== X-Received: by 2002:a37:484:: with SMTP id 126mr1487204qke.197.1635310386530; Tue, 26 Oct 2021 21:53:06 -0700 (PDT) Received: from localhost.localdomain (dsl-10-133-98.b2b2c.ca. [72.10.133.98]) by smtp.gmail.com with ESMTPSA id bk13sm11868197qkb.58.2021.10.26.21.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 21:53:06 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 27 Oct 2021 00:51:39 -0400 Message-Id: <20211027045151.9889-8-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211027045151.9889-1-maxim.cournoyer@gmail.com> References: <20211027045151.9889-1-maxim.cournoyer@gmail.com> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/docbook.scm (docbook-xsl-ns): New variable. --- gnu/packages/docbook.scm | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm index ee12f7edeb..92ca706c56 100644 --- a/gnu/packages/docbook.scm +++ b/gnu/packages/docbook.scm @@ -41,6 +41,7 @@ (define-module (gnu packages docbook) #:use-module (guix packages) #:use-module (guix download) #:use-module ((guix build utils) #:select (alist-replace)) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (guix build-system python)) @@ -229,6 +230,61 @@ (define name-version "This package provides XSL style sheets for DocBook.") (license (license:x11-style "" "See 'COPYING' file.")))) +(define-public docbook-xsl-ns + (package + (name "docbook-xsl-ns") + (version "1.79.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/docbook/" + name "/" version "/" + name "-" version ".tar.bz2")) + (sha256 + (base32 + "170ggf5dgjar65kkn5n33kvjr3pdinpj66nnxfx8b2avw0k91jin")))) + (build-system copy-build-system) + (outputs '("out" "doc")) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; XXX: The copy-build-system doesn't seem to allow installing to a + ;; different output. + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (xml (string-append out "/xml/xsl/" ,name "-" ,version)) + (doc (string-append (assoc-ref %outputs "doc") + "/share/doc/" ,name "-" ,version)) + (select-rx (make-regexp + "(\\.xml$|\\.xsl$|\\.dtd$|\\.ent$)"))) + ;; Install catalog. + (install-file "catalog.xml" xml) + (install-file "VERSION.xsl" xml) + (substitute* (string-append xml "/catalog.xml") + (("rewritePrefix=\"./") + (string-append "rewritePrefix=\"file://" xml "/"))) + ;; Install style sheets. + (for-each (lambda (dir) + (for-each (lambda (f) + (install-file + f (string-append xml "/" (dirname f)))) + (find-files dir select-rx))) + '("assembly" "common" "eclipse" "epub" "epub3" "fo" + "highlighting" "html" "htmlhelp" "javahelp" "lib" + "manpages" "params" "profiling" "roundtrip" + "template" "website" + "xhtml" "xhtml-1_1" "xhtml5")) + ;; Install documentation. + (install-file "NEWS" doc) + (install-file "RELEASE-NOTES.html" doc) + (copy-recursively "slides" doc) + (copy-recursively "webhelp" doc))))))) + (home-page "https://docbook.org") + (synopsis "DocBook XSL namespaced style sheets for document authoring") + (description "This package provides the @emph{namespaced} XSL style sheets +for DocBook.") + (license (license:x11-style "" "See 'COPYING' file.")))) + (define-public docbook-dsssl (package (name "docbook-dsssl")