gnu: fish: Update to 2.7.1.
[jackhill/guix/guix.git] / gnu / packages / syndication.scm
CommitLineData
bbcfd80a 1;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
15abcabe
EF
2;;;
3;;; GNU Guix is free software; you can redistribute it and/or modify it
4;;; under the terms of the GNU General Public License as published by
5;;; the Free Software Foundation; either version 3 of the License, or (at
6;;; your option) any later version.
7;;;
8;;; GNU Guix is distributed in the hope that it will be useful, but
9;;; WITHOUT ANY WARRANTY; without even the implied warranty of
10;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11;;; GNU General Public License for more details.
12;;;
13;;; You should have received a copy of the GNU General Public License
14;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
15
16(define-module (gnu packages syndication)
17 #:use-module ((guix licenses) #:prefix license:)
18 #:use-module (guix download)
19 #:use-module (guix packages)
20 #:use-module (guix build-system gnu)
d9f15d7e 21 #:use-module (gnu packages)
15abcabe
EF
22 #:use-module (gnu packages curl)
23 #:use-module (gnu packages databases)
0c6f4bec 24 #:use-module (gnu packages documentation)
15abcabe
EF
25 #:use-module (gnu packages gettext)
26 #:use-module (gnu packages ncurses)
27 #:use-module (gnu packages perl)
28 #:use-module (gnu packages pkg-config)
29 #:use-module (gnu packages ruby)
30 #:use-module (gnu packages xml)
0c6f4bec
EF
31 #:use-module (gnu packages web)
32 #:use-module (srfi srfi-1))
15abcabe
EF
33
34(define-public newsbeuter
35 (package
36 (name "newsbeuter")
37 (version "2.9")
38 (source
39 (origin
40 (method url-fetch)
41 (uri (string-append "https://newsbeuter.org/downloads/newsbeuter-"
42 version ".tar.gz"))
bbcfd80a
EF
43 (patches (search-patches "newsbeuter-CVE-2017-12904.patch"
44 "newsbeuter-CVE-2017-14500.patch"))
15abcabe
EF
45 (sha256
46 (base32
47 "1j1x0hgwxz11dckk81ncalgylj5y5fgw5bcmp9qb5hq9kc0vza3l"))))
48 (build-system gnu-build-system)
49 (arguments
50 '(#:phases
51 (modify-phases %standard-phases
52 (replace 'configure
53 (lambda _
54 (substitute* "config.sh"
55 ;; try to remove this at the next release
56 (("ncursesw5") "ncursesw6"))
57 #t)))
58 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
59 #:test-target "test"))
60 (native-inputs
7c90d0f4 61 `(("gettext" ,gettext-minimal)
15abcabe
EF
62 ("perl" ,perl)
63 ("pkg-config" ,pkg-config)
64 ("ruby" ,ruby))) ; for tests
65 (inputs
66 `(("curl" ,curl)
67 ("json-c" ,json-c)
68 ("ncurses" ,ncurses)
69 ("stfl" ,stfl)
70 ("sqlite" ,sqlite)
71 ("libxml2" ,libxml2)))
72 (home-page "https://newsbeuter.org/")
73 (synopsis "Text mode rss feed reader with podcast support")
74 (description "Newsbeuter is an innovative RSS feed reader for the text
75console. It supports OPML import/exports, HTML rendering, podcast (podbeuter),
76offline reading, searching and storing articles to your filesystem, and many
77more features. Its user interface is coherent, easy to use, and might look
78common to users of @command{mutt} and @command{slrn}.")
79 (license (list license:gpl2+ ; filter/*
80 license:x11))))
0c6f4bec
EF
81
82(define-public newsboat
83 (package
84 (inherit newsbeuter)
85 (name "newsboat")
86 (version "2.10.1")
87 (source
88 (origin
89 (method url-fetch)
90 (uri (string-append "https://newsboat.org/releases/" version
91 "/newsboat-" version ".tar.xz"))
92 (sha256
93 (base32
94 "1xgqkhpjbq916g9hkaxs0s2fz8bg103pzjx75ziq5ba688l9imj4"))))
95 (arguments
96 '(#:phases (modify-phases %standard-phases
97 (delete 'configure) ; no configure
98 (add-after 'build 'build-documentation
99 (lambda _ (zero? (system* "make" "doc")))))
100 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))
101 ;; see https://github.com/newsboat/newsboat/issues/43
102 "WARNFLAGS=-Wno-sign-compare")
103 #:test-target "test"))
104 (native-inputs
105 `(("asciidoc" ,asciidoc)
106 ,@(alist-delete "ruby" (package-native-inputs newsbeuter))))
107 (home-page "https://newsboat.org/")
108 (description "Newsboat is a fork of Newsbeuter, an RSS/Atom feed reader for
109the text console. It supports OPML import/exports, HTML rendering, podcast
110(podboat), offline reading, searching and storing articles to your filesystem,
111and many more features. Its user interface is coherent, easy to use, and might
112look common to users of @command{mutt} and @command{slrn}.")))