From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sS+WJDJkhV93XgAA0tVLHw (envelope-from ) for ; Tue, 13 Oct 2020 08:24:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0LH0HzJkhV+7RgAAB5/wlQ (envelope-from ) for ; Tue, 13 Oct 2020 08:24:18 +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 54EDD940414 for ; Tue, 13 Oct 2020 08:24:17 +0000 (UTC) Received: from localhost ([::1]:60228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSFbU-0007Jp-B7 for larch@yhetil.org; Tue, 13 Oct 2020 04:24:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSFbH-0007In-T5 for guix-patches@gnu.org; Tue, 13 Oct 2020 04:24:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSFbG-0003JD-97 for guix-patches@gnu.org; Tue, 13 Oct 2020 04:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSFbG-0002Ne-6F for guix-patches@gnu.org; Tue, 13 Oct 2020 04:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43975] [PATCH 1/1] gnu: Add ccal. References: <20201013080915.23344-1-pengmeiyu@riseup.net> In-Reply-To: <20201013080915.23344-1-pengmeiyu@riseup.net> Resent-From: Peng Mei Yu Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Oct 2020 08:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43975 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43975@debbugs.gnu.org Cc: Peng Mei Yu Received: via spool by 43975-submit@debbugs.gnu.org id=B43975.16025773839070 (code B ref 43975); Tue, 13 Oct 2020 08:24:02 +0000 Received: (at 43975) by debbugs.gnu.org; 13 Oct 2020 08:23:03 +0000 Received: from localhost ([127.0.0.1]:45125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSFaI-0002ME-NN for submit@debbugs.gnu.org; Tue, 13 Oct 2020 04:23:02 -0400 Received: from mx1.riseup.net ([198.252.153.129]:44506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSFaG-0002La-Gq for 43975@debbugs.gnu.org; Tue, 13 Oct 2020 04:23:01 -0400 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4C9T7l4SYszFfp1; Tue, 13 Oct 2020 01:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1602577379; bh=c0uLhdB66SOiO2ibYDf2rWxyzNUca4Z48E0ipNwieT8=; h=From:To:Cc:Subject:Date:From; b=qHydvPXgPvnGS0d8m7icUoZLES/ChM1McVsMju8faVy+tIvt8PNx4Km/Mu0Ly4bFZ boDd6KzetfUIm3TA4QM8Rb8meWpVfaoizYCtiWiCAKUSotnhzsK0x3WPipk1chNvhy 1HqLnR9FdhARM+WVJaxCKSMgeeUsBXKliwkkW6kM= X-Riseup-User-ID: 45173F98C2F5BEFCBF660B69AD5692D635834E8A8176586FBEE767F6D710635A Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 4C9T7V1NZJz8tgd; Tue, 13 Oct 2020 01:22:45 -0700 (PDT) Received: from localhost.localdomain (localhost.lan [::1]) by dinosaur (OpenSMTPD) with ESMTP id 5976af39; Tue, 13 Oct 2020 08:22:32 +0000 (UTC) From: Peng Mei Yu Date: Tue, 13 Oct 2020 16:22:16 +0800 Message-Id: <20201013082216.25044-1-pengmeiyu@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=riseup.net header.s=squak header.b=qHydvPXg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (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-Spam-Score: 1.09 X-TUID: O0Sq5bnEWaN/ * gnu/packages/calendar.scm (ccal): New variable. --- gnu/packages/calendar.scm | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm index 9987ae1bf8..0123f75c1b 100644 --- a/gnu/packages/calendar.scm +++ b/gnu/packages/calendar.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Tanguy Le Carrour +;;; Copyright © 2020 Peng Mei Yu ;;; ;;; This file is part of GNU Guix. ;;; @@ -339,3 +340,43 @@ DebConf, FrOSCon, Grazer LinuxTage, and the CCC congresses. ConfClerk is targeted at mobile devices but works on any system running Qt.") (license (list license:gpl2+ license:lgpl3)))) ; or cc-by3.0 for src/icons/* + +(define-public ccal + (package + (name "ccal") + (version "2.5.3") + (source (origin + (method url-fetch) + (uri (string-append "http://ccal.chinesebay.com/ccal/ccal-" + version ".tar.gz")) + (sha256 + (base32 + "15nza1d1lvk3dp0wcl53wsd32yhbgyzznha092mh5kh5z74vsk1x")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "Makefile" + (("/usr/local/bin") + (string-append out "/bin")) + (("/usr/local/man") + (string-append out "/share/man")))) + #t)) + (add-after 'install 'install-manuals + (lambda _ + (invoke "make" "install-man")))) + ;; no tests + #:tests? #f)) + (home-page "http://ccal.chinesebay.com/ccal/ccal.htm") + (synopsis "Command line program for Chinese calendar") + (description "@code{ccal} is a command line program which writes a +Gregorian calendar together with Chinese calendar to standard output. Its +usage is similar to the cal program generally available on Unix platforms. In +addition to console output, it can also generate Encapsulated Postscript and +HTML table outputs for use in do-it-yourself calendars and web pages. It +supports both simplified and traditional Chinese characters.") + (license (list license:gpl2+ + license:lgpl2.1+)))) -- 2.28.0