| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 |
|
| 21 | (define-module (gnu packages calcurse)
|
| 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)
|
| 27 | #:use-module (gnu packages base)
|
| 28 | #:use-module (gnu packages ncurses))
|
| 29 |
|
| 30 | (define-public calcurse
|
| 31 | (package
|
| 32 | (name "calcurse")
|
| 33 | (version "4.5.1")
|
| 34 | (source
|
| 35 | (origin
|
| 36 | (method url-fetch)
|
| 37 | (uri (string-append "https://calcurse.org/files/calcurse-"
|
| 38 | version ".tar.gz"))
|
| 39 | (sha256
|
| 40 | (base32 "0cgkd285x5pk62lmdx9fjxl46c5lj8wj2cqbxq7d99yb4il5fdjk"))))
|
| 41 | (build-system gnu-build-system)
|
| 42 | (inputs (list ncurses))
|
| 43 | (native-inputs (list tzdata-for-tests))
|
| 44 | (arguments
|
| 45 | |
| 46 | |
| 47 | |
| 48 | `(#:configure-flags
|
| 49 | (list (string-append "--docdir=" (assoc-ref %outputs "out")
|
| 50 | "/share/doc/" ,name "-" ,version))
|
| 51 | #:parallel-tests? #f
|
| 52 | |
| 53 | |
| 54 | |
| 55 | #:disallowed-references (,tzdata-for-tests)
|
| 56 | #:phases (modify-phases %standard-phases
|
| 57 | (add-after 'unpack 'respect-docdir
|
| 58 | |
| 59 | (lambda _
|
| 60 | (substitute* "doc/Makefile.in"
|
| 61 | (("(docdir =) .*" _ match)
|
| 62 | (format #f "~a @docdir@\n" match)))
|
| 63 | #t))
|
| 64 | (add-before 'check 'check-setup
|
| 65 | (lambda* (#:key inputs #:allow-other-keys)
|
| 66 | (setenv "TZDIR" |
| 67 | (search-input-directory inputs
|
| 68 | "share/zoneinfo")))))))
|
| 69 | (home-page "https://www.calcurse.org")
|
| 70 | (synopsis "Text-based calendar and scheduling")
|
| 71 | (description
|
| 72 | "Calcurse is a text-based calendar and scheduling application. It helps
|
| 73 | keep track of events, appointments and everyday tasks. A configurable
|
| 74 | notification system reminds user of upcoming deadlines, and the curses based
|
| 75 | interface can be customized to suit user needs. All of the commands are
|
| 76 | documented within an online help system.")
|
| 77 | (license bsd-2)))
|