From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 9rfJHOy2y2CeLQEAgWs5BA (envelope-from ) for ; Thu, 17 Jun 2021 22:56:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ACEmGOy2y2DAbAAA1q6Kng (envelope-from ) for ; Thu, 17 Jun 2021 20:56:12 +0000 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 EE5D02060B for ; Thu, 17 Jun 2021 22:56:09 +0200 (CEST) Received: from localhost ([::1]:41438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltz3Y-0001Up-OK for larch@yhetil.org; Thu, 17 Jun 2021 16:56:08 -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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623963370; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=vQBN5Dop8Y/JPD/bMavPYJ/HhNdZL4iOvMeLNsVbp+Q=; b=jD6rhR91DBKlQQf25k0nGGj8N5AwtrGBsWZcrWDB+GF2NBIh9uuiSs1AqcpOapTEFMEiDF q9BLSbf+odUX6k//7qP38ZqoiGuAsbRljePq1BruV/iZCBbTbbp9fi2mgXNNlErUbPrlGV Uj7+muluVQtEUTyFet2B71i3HLn5Jl0LcTbWfjY4H8YjKmuFU1XFGppUB5MaqNSUSvEqd7 GqFssAcLzXc0WejtRS26TicHzb4yWvPbbipRnF6+RzRpeOosnbAK7jf+HM6YSwxOb6m53R 95jfh2i8bkfbMgmLDFJAhxvweHwqrhYA+uEaIm3SlXWZdhx0nZ0prn84GorNGg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623963370; a=rsa-sha256; cv=none; b=gjTPrp0Svh9oUNgLouIHUtP7Lh73KiUO9TiobEkYUUc97Vyt1IhPQVquvdwSE90e0p+Fqt CC+0u4FfCCrdicweq7tTACjAPFFq6VUfCVywmZ2p4yyW5lXIWqxLY2UIYboI6H/WwMhfXC Qtt6nDEknCuLE8SD/4Mu7qI8UsZXSb8s8BVEOoKpoSK5pzi/mLIJdePv7aVMCy4kCeIGvT RI/TvjX61n2jwhtT3Z1WHNb7XyeP5kdJpFawFy/ZvMFJkkM/VSm4vzZjQHviMah8A+BYkT YsDWpIevikpX+evo+ZlQ03cgUL1P0qFzDd2IureVLhSOyqaRYCZSC0HIQUHJrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=gmNE3b1G; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=gmNE3b1G; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: EE5D02060B X-Spam-Score: -0.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: S+kGGwmZxEhd * gnu/packages/ocaml.scm (ocaml-calendar): New variable. --- gnu/packages/ocaml.scm | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) 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 =C2=A9 2020, 2021 pukkamustard ;;; Copyright =C2=A9 2021 aecepoglu ;;; Copyright =C2=A9 2021 Sharlatan Hellseher +;;; Copyright =C2=A9 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))) =20 +(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") base-commit: d7fe0414fc18b83d7a1c284b4b411def6a115100 --=20 2.32.0