gnu: newsbeuter: Deprecate in favour of newsboat.
[jackhill/guix/guix.git] / gnu / packages / syndication.scm
CommitLineData
bbcfd80a 1;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
9d8fb0e3 2;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
15abcabe
EF
3;;;
4;;; GNU Guix is free software; you can redistribute it and/or modify it
5;;; under the terms of the GNU General Public License as published by
6;;; the Free Software Foundation; either version 3 of the License, or (at
7;;; your option) any later version.
8;;;
9;;; GNU Guix is distributed in the hope that it will be useful, but
10;;; WITHOUT ANY WARRANTY; without even the implied warranty of
11;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12;;; GNU General Public License for more details.
13;;;
14;;; You should have received a copy of the GNU General Public License
15;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
16
17(define-module (gnu packages syndication)
18 #:use-module ((guix licenses) #:prefix license:)
19 #:use-module (guix download)
20 #:use-module (guix packages)
21 #:use-module (guix build-system gnu)
d9f15d7e 22 #:use-module (gnu packages)
15abcabe
EF
23 #:use-module (gnu packages curl)
24 #:use-module (gnu packages databases)
0c6f4bec 25 #:use-module (gnu packages documentation)
15abcabe
EF
26 #:use-module (gnu packages gettext)
27 #:use-module (gnu packages ncurses)
15abcabe 28 #:use-module (gnu packages pkg-config)
f26fa354
TGR
29 #:use-module (gnu packages web)
30 #:use-module (gnu packages xml))
0c6f4bec
EF
31
32(define-public newsboat
33 (package
0c6f4bec 34 (name "newsboat")
9d8fb0e3 35 (version "2.10.2")
0c6f4bec 36 (source
9d8fb0e3
TGR
37 (origin
38 (method url-fetch)
39 (uri (string-append "https://newsboat.org/releases/" version
40 "/newsboat-" version ".tar.xz"))
41 (sha256
42 (base32
43 "1x4nxx1kvmrcm8jy73dvg56h4z15y3sach2vr13cw8rsbi7v99px"))))
44 (build-system gnu-build-system)
45 (native-inputs
46 `(("gettext" ,gettext-minimal)
47 ("pkg-config" ,pkg-config)
48 ;; For building documentation.
49 ("asciidoc" ,asciidoc)))
50 (inputs
51 `(("curl" ,curl)
52 ("json-c" ,json-c-0.12) ; check whether json-c-0.12 can be removed
53 ("libxml2" ,libxml2)
54 ("ncurses" ,ncurses)
55 ("stfl" ,stfl)
56 ("sqlite" ,sqlite)))
0c6f4bec 57 (arguments
9d8fb0e3
TGR
58 '(#:phases
59 (modify-phases %standard-phases
60 (delete 'configure) ; no configure script
61 (add-after 'build 'build-documentation
62 (lambda _
63 (zero? (system* "make" "doc")))))
64 #:make-flags
65 (list (string-append "prefix=" (assoc-ref %outputs "out")))
0c6f4bec 66 #:test-target "test"))
0c6f4bec 67 (home-page "https://newsboat.org/")
9d8fb0e3
TGR
68 (synopsis "Text-mode RSS and Atom feed reader with podcast support")
69 (description "Newsboat is a feed reader for @dfn{RSS} and @dfn{Atom}, XML
70formats widely used to transmit, publish, and syndicate news or blog articles.
71It's designed for use on text terminals, and to have a coherent and easy-to-use
72interface that might look familiar to @command{mutt} or @command{slrn} users.
73
74Newsboat supports OPML import/exports, HTML rendering, podcasts (with
75@command{podboat}), off-line reading, searching and storing articles to your
76file system, and many more features.
77
78It started life as a fork of the currently unmaintained Newsbeuter.")
79 (license (list license:gpl2+ ; filter/*
80 license:expat)))) ; everything else
f26fa354
TGR
81
82(define-public newsbeuter
83 ;; Newsbeuter is unmaintained with multiple CVEs, and was forked as Newsboat.
84 (deprecated-package "newsbeuter" newsboat))