Commit | Line | Data |
---|---|---|
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") |
e049827e | 35 | (version "2.12") |
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 | |
e049827e | 43 | "1x23zlgljaqf46v7sp8wnkyf6wighvirvn48ankpa34yr8mvrgcv")))) |
9d8fb0e3 TGR |
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) | |
7240b4a9 | 52 | ("json-c" ,json-c) |
9d8fb0e3 TGR |
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 _ | |
8cd14622 | 63 | (invoke "make" "doc")))) |
9d8fb0e3 TGR |
64 | #:make-flags |
65 | (list (string-append "prefix=" (assoc-ref %outputs "out"))) | |
0c6f4bec | 66 | #:test-target "test")) |
7240b4a9 MB |
67 | (native-search-paths |
68 | ;; Newsboat respects CURL_CA_BUNDLE. | |
69 | (package-native-search-paths curl)) | |
0c6f4bec | 70 | (home-page "https://newsboat.org/") |
9d8fb0e3 TGR |
71 | (synopsis "Text-mode RSS and Atom feed reader with podcast support") |
72 | (description "Newsboat is a feed reader for @dfn{RSS} and @dfn{Atom}, XML | |
73 | formats widely used to transmit, publish, and syndicate news or blog articles. | |
74 | It's designed for use on text terminals, and to have a coherent and easy-to-use | |
75 | interface that might look familiar to @command{mutt} or @command{slrn} users. | |
76 | ||
77 | Newsboat supports OPML import/exports, HTML rendering, podcasts (with | |
78 | @command{podboat}), off-line reading, searching and storing articles to your | |
79 | file system, and many more features. | |
80 | ||
81 | It started life as a fork of the currently unmaintained Newsbeuter.") | |
82 | (license (list license:gpl2+ ; filter/* | |
83 | license:expat)))) ; everything else | |
f26fa354 TGR |
84 | |
85 | (define-public newsbeuter | |
86 | ;; Newsbeuter is unmaintained with multiple CVEs, and was forked as Newsboat. | |
87 | (deprecated-package "newsbeuter" newsboat)) |