From patchwork Thu Jul 28 04:10:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 41026 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 9717A27BBEB; Thu, 28 Jul 2022 05:11:32 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 13B4B27BBE9 for ; Thu, 28 Jul 2022 05:11:32 +0100 (BST) Received: from localhost ([::1]:42728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGurz-0001y3-80 for patchwork@mira.cbaines.net; Thu, 28 Jul 2022 00:11:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGurW-0001xb-9V for guix-patches@gnu.org; Thu, 28 Jul 2022 00:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGurW-00023w-1J for guix-patches@gnu.org; Thu, 28 Jul 2022 00:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGurV-0005eN-Tk for guix-patches@gnu.org; Thu, 28 Jul 2022 00:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56806] [PATCH 4/9] gnu: Add ocaml-xml-light. References: <9PX8REXHYFolHkT-TXF_SZcRFDEe1-1KwK9riBoz1tnsKV2raznmLO3YTlzbpdyJ9dBOqnpcaUomHmLfOWjytFrkLEvIW_upqCAA_-byN50=@protonmail.com> In-Reply-To: <9PX8REXHYFolHkT-TXF_SZcRFDEe1-1KwK9riBoz1tnsKV2raznmLO3YTlzbpdyJ9dBOqnpcaUomHmLfOWjytFrkLEvIW_upqCAA_-byN50=@protonmail.com> Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Jul 2022 04:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56806 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "56806@debbugs.gnu.org" <56806@debbugs.gnu.org> Received: via spool by 56806-submit@debbugs.gnu.org id=B56806.165898141521602 (code B ref 56806); Thu, 28 Jul 2022 04:11:01 +0000 Received: (at 56806) by debbugs.gnu.org; 28 Jul 2022 04:10:15 +0000 Received: from localhost ([127.0.0.1]:57314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGuqk-0005cK-PD for submit@debbugs.gnu.org; Thu, 28 Jul 2022 00:10:15 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:46551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGuqi-0005c0-S4 for 56806@debbugs.gnu.org; Thu, 28 Jul 2022 00:10:13 -0400 Date: Thu, 28 Jul 2022 04:10:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658981407; x=1659240607; bh=l7U+QD8715tl1DGV3S2EPjftczdeWOYkjNaS2x+/gZo=; h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc: Date:Subject:Reply-To:Feedback-ID:Message-ID; b=PWeIIXQeP0K00jDTstq6Bm2rvqONv4W87r/xaQlXU+y+jmPb5Ur7Lf/y1I/IyoM1e ApmE2b9fkhCPaB/r7Cb6YEP2ONhFQSILsbPeIhPFaFYxL2gSHAvhawluLw5SG4aF1I +fhLyEMbFuBw1UMiirHTUC5CRZw9EVsg0itUswL9mUg8Z1SZKSH+Q7mYhyODAae4VN 2jsBKSVkGQ+PfhD0pfQCZS335kfK64t/ZYrcVN3bIoA6SvnwwnMn5cZFlsYPqsvUcs xtp1rLx3KY6CEQaL60XxZSnIIQjOzGJUst1muDLEkLNiLp4xJdU9RJkVpSNfgdiNwq d2VOSC7RrVXnw== Message-ID: <4uEkvxdO9wKNr_NlJqIucgyi7X8nk4MjGUnza5ANlBqa8CQ1-41OsubmA3x5gvtTY9mYfq-O7347Ny_PuU57vbrlfeZSbgc65ZOsegiDB9E=@protonmail.com> Feedback-ID: 7805494:user:proton 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" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias X-getmail-retrieved-from-mailbox: Patches Empty Message From 2733ca5c0a423155a9db5f6dfbda678463f39647 Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Wed, 27 Jul 2022 23:32:04 -0400 Subject: [PATCH 4/9] gnu: Add ocaml-xml-light. * gnu/packages/ocaml.scm (ocaml-xml-light): New variable. --- gnu/packages/ocaml.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 8620d2bde3..3df81e498b 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -2812,6 +2812,45 @@ (define-public ocaml-bos run command line programs.") (license license:isc))) +(define-public ocaml-xml-light + (package + (name "ocaml-xml-light") + (version "2.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ncannasse/xml-light") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "089ywjz84y4p5iln94y54vh03b5fm2zrl2dld1398dyrby96dp6s")))) + (build-system ocaml-build-system) + (arguments + (list #:tests? #f ; There are no tests. + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'prefix + (lambda _ + (substitute* "Makefile" + (("`\\$\\(OCAMLC\\) -where`") + (string-append #$output "/lib/ocaml/site-lib/xml-light"))))) + (delete 'configure) ; no configure + (add-before 'install 'mkdir + (lambda _ + (mkdir-p (string-append #$output "/lib/ocaml/site-lib/xml-light")))) + (replace 'install + (lambda _ + (invoke "make" "install_ocamlfind")))))) + (home-page "https://github.com/ncannasse/xml-light") + (synopsis "Xml-Light is a minimal XML parser & printer for OCaml") + (description + "Xml-Light provides functions to parse an XML document into an OCaml data +structure, work with it, and print it back to an XML document. It also +supports DTD parsing and checking, and is entirely written in OCaml, hence it +does not require additional C libraries.") + (license license:lgpl2.1+))) ; with linking exception + (define-public ocaml-xmlm (package (name "ocaml-xmlm") -- 2.37.1