aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/rednotebook.scm
blob: c7ece525e913c2fb02a2d038c2acc236eb66218e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Jesse Gibbons <jgibbons2357+guix@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages rednotebook)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix build-system python)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages python)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages webkit)
  #:use-module (gnu packages python-xyz))

(define-public rednotebook
  (package
    (name "rednotebook")
    (version "2.11.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/jendrikseipp/rednotebook")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "04c7a0wgmdl88v9386y1052c38ajbkryiwhqps5lx34d4g7r6hm1"))))
    (build-system python-build-system)
    (arguments
     ;; Tests fail to find the "_" function.
     ;; It should be defined in rednotebook/info.py if '_' is not a member of
     ;; 'builtins'. It is either not defined or not exported during the check
     ;; phase. The program does not have this problem after it is installed.
     ;; TODO: Fix tests.
     `(#:tests? #f
       #:imported-modules ((guix build glib-or-gtk-build-system)
                           ,@%python-build-system-modules)
       #:modules ((ice-9 match)
                  (guix build python-build-system)
                  ((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
                  (guix build utils))
       #:phases
       (modify-phases %standard-phases
         ;; Make sure rednotebook can find the typelibs and webkitgtk shared
         ;; libraries.
         (add-before 'wrap 'wrap-with-library-paths
           (lambda* (#:key inputs outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out"))
                   (gi-typelib-path (getenv "GI_TYPELIB_PATH"))
                   (webkitgtk-path (string-append
                                    (assoc-ref inputs "webkitgtk")
                                    "/lib")))
               (wrap-program (string-append out "/bin/rednotebook")
                 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
                 `("LD_LIBRARY_PATH" ":" prefix (,webkitgtk-path)))
               #t))))))
    (inputs
     `(("gtk+" ,gtk+)
       ("gtksourceview" ,gtksourceview-3)
       ("python-pyyaml" ,python-pyyaml)
       ("python-pygobject" ,python-pygobject)
       ("webkitgtk" ,webkitgtk)))
    ;; TODO: package the following for python3 (if possible), add them as
    ;; dependencies, and remove them from rednotebook source:
    ;; pygtkspellcheck, elib.intl, msgfmt, txt2tags
    ;; TODO: package and add pyenchant for python3 and add it as a dependency.
    (home-page "https://www.rednotebook.app")
    (synopsis "Daily journal with calendar, templates and keyword searching")
    (description
     "RedNotebook is a modern desktop journal.  It lets you format, tag and
search your entries.  You can also add pictures, links and customizable
templates, spell check your notes, and export to plain text, HTML, Latex or
PDF.")
    (license (list license:gpl2+     ; rednotebook, txt2tags
                   license:lgpl3+    ; elib.intl
                   license:gpl3+)))) ; pygtkspellcheck
class='msg-tooltip'>* gnu/packages/fonts.scm (font-jetbrains-mono)[arguments]: Don't replace the ‘install-license-files’ phase. Help it. Tobias Geerinckx-Rice 2020-10-04gnu: font-jetbrains-mono: Update to 2.002....* gnu/packages/fonts.scm (font-jetbrains-mono): Update to 2.002. Tobias Geerinckx-Rice 2020-10-04gnu: font-comic-neue: Update to 2.51....* gnu/packages/fonts.scm (font-comic-neue): Update to 2.51. Tobias Geerinckx-Rice 2020-09-25gnu: font-adobe-source-serif-pro: Update to 3.001R....* gnu/packages/fonts.scm (font-adobe-source-serif-pro): Update to 3.001R. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Jens Mølgaard 2020-09-25gnu: font-adobe-source-sans-pro: Update to 3.028R....* gnu/packages/fonts.scm (font-adobe-source-sans-pro): Update to 3.028R. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Jens Mølgaard 2020-09-06gnu: Update Iosevka fonts from 3.2.2 to 3.4.7...* gnu/packages/fonts.scm (font-iosevka, font-iosevka-slab, font-iosevka-term, font-iosevka-term-slab, font-iosevka-aile, font-iosevka-etoile, font-iosevka-sparkle): Update to 3.4.7. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr> simendsjo 2020-08-19gnu: font-fantasque-sans: Fix build....* gnu/packages/fonts.scm (font-fantasque-sans)[native-inputs]: Add woff2:bin. Danny Milosavljevic 2020-07-23gnu: Add font-catamaran....* gnu/packages/fonts.scm (font-catamaran): New variable. Arun Isaac 2020-07-21gnu: font-jetbrains-mono: Update to 2.001....* gnu/packages/fonts.scm (font-jetbrains-mono): Update to 2.001. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Michael Rohleder 2020-07-14gnu: font-gnu-freefont: Update to 13.0.03....* gnu/packages/fonts.scm (font-gnu-unifont): Update to 13.0.03. Efraim Flashner