Subject: bug#68063: closed ([PATCH] gnu: syndication: Add newsraft.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 03 Nov 2024 23:48:03 +0000

Your bug report

#68063: [PATCH] gnu: syndication: Add newsraft.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
68063: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68063
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [PATCH] gnu: syndication: Add newsraft.
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Sun, 03 Nov 2024 23:46:09 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

I've applied some modifications:

- adjustments
  - Adjust commit message header and body
  - Set author to Luis Guilherme Coelho <[email-masked]>
  - Add copyright
  - Adjust fields sequence and package indentation
  - Remove gnu-make from native inputs
  - Adjust synopsis, taken from upstream home page
  - Re-indent description, add feature list
  - Swap source from tarbal to git checkout (there are tags)
  - Update to 0.27
  - Enable tests

--8<---------------cut here---------------start------------->8---
--- #<buffer *new*<14>>
+++ #<buffer *new*<13>>
@@ -1,30 +1,47 @@
-;; Thanks to nckx, rekado and lechner for the help :)
 (define-public newsraft
   (package
     (name "newsraft")
-    (version "0.21")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append
-                    "https://codeberg.org/grisha/newsraft/"
-                    "archive/newsraft-" version ".tar.gz"))
-              (sha256
-               (base32
-                "1dbyg0qy2kw4fjb6hi8ad4jiji9z0wl97aizd3gp68ch1cn7ban2"))))
+    (version "0.27")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://codeberg.org/newsraft/newsraft")
+             (commit (string-append name "-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "170dwv6v9755mdy4w91r4mk6r5d713rxi71hppqws3bsh2g4bmrj"))))
     (build-system gnu-build-system)
-    (native-inputs (list gnu-make pkg-config scdoc))
-    (inputs (list curl expat gumbo-parser ncurses sqlite yajl))
     (arguments
-     (list #:tests? #f
-           #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
-                                (string-append "PREFIX=" #$output)
-                                "CFLAGS=-DCURL_WRITEFUNC_ERROR=0xFFFFFFFF")
-           #:phases #~(modify-phases %standard-phases
-                        (delete 'configure))))
+     (list
+      #:make-flags
+      #~(list (string-append "CC=" #$(cc-for-target))
+              (string-append "PREFIX=" #$output)
+              "CFLAGS=-DCURL_WRITEFUNC_ERROR=0xFFFFFFFF")
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure)))) ; no configure
+    (native-inputs
+     (list pkg-config scdoc))
+    (inputs
+     (list curl expat gumbo-parser ncurses sqlite yajl))
     (home-page "https://codeberg.org/grisha/newsraft")
-    (synopsis
-     "Newsraft is a ncurses feed reader greatly inspired by newsboat.")
+    (synopsis "Feed reader for termnial")
     (description
-     "Newsraft is a feed reader with ncurses user interface. It is
-greatly inspired by Newsboat and tries to be its lightweight counterpart.")
+     "Newsraft is a feed reader with ncurses user interface.  It is greatly
+inspired by Newsboat and tries to be its lightweight counterpart.
+
+Features:
+@itemize
+@item parallel downloads
+@item section-based feeds grouping
+@item opening links in any program
+@item viewing news from all feeds with explore mode
+@item automatic updates for feeds and sections
+@item per-feed settings and key bindings
+@item assigning multiple actions to key bindings
+@item processing feeds from command output
+@item text searching by news titles and content
+@item interactive news content viewing
+@end itemize")
     (license license:isc)))
\ No newline at end of file

Diff finished.  Sun Nov  3 20:36:46 2024
--8<---------------cut here---------------end--------------->8---

Pushed as 2ef5e0cd89 to master.

--
Thanks,
Oleg

Subject: [PATCH] gnu: syndication: Add newsraft.
From: [email-masked]
To: [email-masked]
Date: Wed, 27 Dec 2023 17:14:43 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

This patch adds newsraft, a feed reader greatly inspired by newsboat, to 
(gnu packages syndication).

From 681472429c1f325aaa004ebbedd359df2676e344 Mon Sep 17 00:00:00 2001
From: Luis Guilherme Coelho <[email-masked]>
Date: Wed, 27 Dec 2023 14:12:06 -0300
Subject: [PATCH] gnu: syndication: Add newsraft

---
 gnu/packages/syndication.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm
index a9e5b80bbf..411bf57a0f 100644
--- a/gnu/packages/syndication.scm
+++ b/gnu/packages/syndication.scm
@@ -50,6 +50,7 @@ (define-module (gnu packages syndication)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages kde-frameworks)
+  #:use-module (gnu packages man)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages pretty-print)
@@ -335,6 +336,37 @@ (define-public newsboat
     (license (list license:gpl2+        ; filter/*
                    license:expat))))    ; everything else
 
+;; Thanks to nckx, rekado and lechner for the help :)
+(define-public newsraft
+  (package
+    (name "newsraft")
+    (version "0.21")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://codeberg.org/grisha/newsraft/"
+                    "archive/newsraft-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1dbyg0qy2kw4fjb6hi8ad4jiji9z0wl97aizd3gp68ch1cn7ban2"))))
+    (build-system gnu-build-system)
+    (native-inputs (list gnu-make pkg-config scdoc))
+    (inputs (list curl expat gumbo-parser ncurses sqlite yajl))
+    (arguments
+     (list #:tests? #f
+           #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                                (string-append "PREFIX=" #$output)
+                                "CFLAGS=-DCURL_WRITEFUNC_ERROR=0xFFFFFFFF")
+           #:phases #~(modify-phases %standard-phases
+                        (delete 'configure))))
+    (home-page "https://codeberg.org/grisha/newsraft")
+    (synopsis
+     "Newsraft is a ncurses feed reader greatly inspired by newsboat.")
+    (description
+     "Newsraft is a feed reader with ncurses user interface. It is
+greatly inspired by Newsboat and tries to be its lightweight counterpart.")
+    (license license:isc)))
+
 (define-public liferea
   (package
     (name "liferea")
-- 
2.41.0