From patchwork Thu Jun 17 20:54:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 30335 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 969BB27BC81; Thu, 17 Jun 2021 21:56:12 +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_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 E399D27BC78 for ; Thu, 17 Jun 2021 21:56:11 +0100 (BST) Received: from localhost ([::1]:41438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltz3a-0001Up-UQ for patchwork@mira.cbaines.net; Thu, 17 Jun 2021 16:56:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltz3U-0001Ue-NS for guix-patches@gnu.org; Thu, 17 Jun 2021 16:56:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltz3S-0001yu-M9 for guix-patches@gnu.org; Thu, 17 Jun 2021 16:56:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltz3S-0008LN-JD for guix-patches@gnu.org; Thu, 17 Jun 2021 16:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49079] [PATCH] gnu: Add ocaml-calendar. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Jun 2021 20:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49079 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49079@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162396330431994 (code B ref -1); Thu, 17 Jun 2021 20:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jun 2021 20:55:04 +0000 Received: from localhost ([127.0.0.1]:55220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltz2V-0008Jx-Lz for submit@debbugs.gnu.org; Thu, 17 Jun 2021 16:55:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:57118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltz2T-0008JV-Dt for submit@debbugs.gnu.org; Thu, 17 Jun 2021 16:55:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltz2T-0001PW-47 for guix-patches@gnu.org; Thu, 17 Jun 2021 16:55:01 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:43828 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltz2Q-0001Gg-W0 for guix-patches@gnu.org; Thu, 17 Jun 2021 16:55:00 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1623963293; bh=YOcJRy1yMl+3naskacJhkHmdxWe+eOEW0SZHRwyJRLo=; h=From:To:Subject:Date; b=gmNE3b1GKb2MPF8HAASbyJcIbVrePk0PUIw6HAvzLDXmUnOMMZ9bNyhSpL82md9a8 V5XX+MVf8kK0RFM/p41+PPOpJPyZxpLRDRKl/swT/huwWV2l6Q1Ix5TB0l8DpJWBhg vw6buDI8dnSP9z2nQraFy+tNerrWAGm0tJzN5AEY= Message-Id: Date: Thu, 17 Jun 2021 22:54:52 +0200 MIME-Version: 1.0 Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 34 X-Spam_score: 3.4 X-Spam_bar: +++ X-Spam_report: (3.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, FROM_SUSPICIOUS_NTLD_FP=1.99, PDS_OTHER_BAD_TLD=1.997, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocaml.scm (ocaml-calendar): New variable. --- gnu/packages/ocaml.scm | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) base-commit: d7fe0414fc18b83d7a1c284b4b411def6a115100 diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index dcfe8ce391..35c6d4e45e 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2020, 2021 pukkamustard ;;; Copyright © 2021 aecepoglu ;;; Copyright © 2021 Sharlatan Hellseher +;;; Copyright © 2021 Xinglu Chen ;;; ;;; This file is part of GNU Guix. ;;; @@ -2045,6 +2046,52 @@ manipulate such data.") spans without being subject to operating system calendar time adjustments.") (license license:isc))) +(define-public ocaml-calendar + ;; No tags. + ;; Commit from 2019-02-03. + (let ((commit "a447a88ae3c1e9873e32d2a95d3d3e7c5ed4a7da") + (revision "0")) + (package + (name "ocaml-calendar") + ;; Makefile.in says 2.04. + (version (git-version "2.04" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ocaml-community/calendar") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "09d9gyqm3zkf3z2m9fx87clqihx6brf8rnzm4yq7c8kf1p572hmc")))) + (build-system gnu-build-system) + (arguments + '(#:test-target + "tests" + #:phases + (modify-phases %standard-phases + (add-before 'install 'set-environment-variables + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "OCAMLFIND_DESTDIR" + (string-append out "/lib/ocaml/site-lib")) + (setenv "OCAMLFIND_LDCONF" "ignore") + (mkdir-p (string-append + out "/lib/ocaml/site-lib/calendar")))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake))) + (propagated-inputs + `(("ocaml" ,ocaml) + ("ocamlfind" ,ocaml-findlib))) + (home-page "https://github.com/ocaml-community/calendar") + (synopsis "OCaml library for handling dates and times") + (description "This package provides types and operations over +dates and times.") + ;; With linking exception. + (license license:lgpl2.1+)))) + (define-public ocaml-cmdliner (package (name "ocaml-cmdliner")