Commit | Line | Data |
---|---|---|
a438d540 | 1 | ;;; GNU Guix --- Functional package management for GNU |
e0c95301 | 2 | ;;; Copyright © 2014, 2015, 2017 Eric Bavier <bavier@member.fsf.org> |
17650569 | 3 | ;;; Copyright © 2017 Leo Famulari <leo@famulari.name> |
02eae558 | 4 | ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
a438d540 EB |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
9 | ;;; under the terms of the GNU General Public License as published by | |
10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
11 | ;;; your option) any later version. | |
12 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ;;; GNU General Public License for more details. | |
17 | ;;; | |
18 | ;;; You should have received a copy of the GNU General Public License | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
864068e2 | 21 | (define-module (gnu packages calcurse) |
a438d540 EB |
22 | #:use-module (guix packages) |
23 | #:use-module (guix licenses) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (gnu packages) | |
e0c95301 | 27 | #:use-module (gnu packages base) |
a438d540 EB |
28 | #:use-module (gnu packages ncurses)) |
29 | ||
30 | (define-public calcurse | |
31 | (package | |
32 | (name "calcurse") | |
e4740d7a | 33 | (version "4.3.0") |
a438d540 EB |
34 | (source |
35 | (origin | |
36 | (method url-fetch) | |
a2717e69 | 37 | (uri (string-append "https://calcurse.org/files/calcurse-" |
a438d540 EB |
38 | version ".tar.gz")) |
39 | (sha256 | |
40 | (base32 | |
e4740d7a | 41 | "16jzg0nasnxdlz23i121x41pq5kbxmjzk52c5d863rg117fc7v1i")))) |
a438d540 | 42 | (build-system gnu-build-system) |
a23dbbff | 43 | (inputs `(("ncurses" ,ncurses))) |
f9c3bd2e | 44 | (native-inputs `(("tzdata" ,tzdata-for-tests))) |
50aec635 EB |
45 | (arguments |
46 | ;; The ical tests all want to create a ".calcurse" directory, and may | |
47 | ;; fail with "cannot create directory '.calcurse': File exists" if run | |
48 | ;; concurently. | |
02eae558 TGR |
49 | `(#:configure-flags |
50 | (list (string-append "--docdir=" (assoc-ref %outputs "out") | |
51 | "/share/doc/" ,name "-" ,version)) | |
52 | #:parallel-tests? #f | |
a23dbbff LF |
53 | ;; Since this tzdata is only used for tests and not referenced by the |
54 | ;; built package, used the "fixed" obsolete version of tzdata and ensure | |
55 | ;; it does not sneak in to the closure. | |
f9c3bd2e | 56 | #:disallowed-references (,tzdata-for-tests) |
e0c95301 | 57 | #:phases (modify-phases %standard-phases |
02eae558 TGR |
58 | (add-after 'unpack 'respect-docdir |
59 | ;; doc/Makefile disregards ./configure's --docdir option. | |
60 | (lambda _ | |
61 | (substitute* "doc/Makefile.in" | |
62 | (("(docdir =) .*" _ match) | |
63 | (format "~a @docdir@\n" match))) | |
64 | #t)) | |
e0c95301 EB |
65 | (add-before 'check 'check-setup |
66 | (lambda* (#:key inputs #:allow-other-keys) | |
02eae558 | 67 | (setenv "TZDIR" ; for test/ical-007.sh |
e0c95301 EB |
68 | (string-append (assoc-ref inputs "tzdata") |
69 | "/share/zoneinfo"))))))) | |
a2717e69 | 70 | (home-page "https://www.calcurse.org") |
a438d540 EB |
71 | (synopsis "Text-based calendar and scheduling") |
72 | (description | |
35b9e423 EB |
73 | "Calcurse is a text-based calendar and scheduling application. It helps |
74 | keep track of events, appointments and everyday tasks. A configurable | |
a438d540 | 75 | notification system reminds user of upcoming deadlines, and the curses based |
35b9e423 | 76 | interface can be customized to suit user needs. All of the commands are |
a438d540 EB |
77 | documented within an online help system.") |
78 | (license bsd-2))) |