unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "ShinyZero0" <shinyzero0@tilde.club>
To: "Maxim Cournoyer" <maxim.cournoyer@gmail.com>
Cc: 65197@debbugs.gnu.org
Subject: [bug#65197] add offpunk
Date: Mon, 18 Sep 2023 16:38:22 +0000	[thread overview]
Message-ID: <CVM6VW8YO112.1WPRRWX7EVK8@localhost> (raw)
In-Reply-To: <8734zr99qr.fsf@gmail.com>

From 60d578dfedaa237fbf1a7dec4902736ca882f75d Mon Sep 17 00:00:00 2001
Message-ID: <60d578dfedaa237fbf1a7dec4902736ca882f75d.1692130093.git.shinyzero0@gmail.com>
From: "zero@void" <shinyzero0@gmail.com>
Date: Tue, 15 Aug 2023 23:06:12 +0300
Subject: [PATCH] gnu: Add offpunk
* gnu/packages/web-browsers.scm (offpunk): New variable
---
 gnu/packages/web-browsers.scm | 63 +++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/gnu/packages/web-browsers.scm b/gnu/packages/web-browsers.scm
index 4b0e33c..f352c43 100644
--- a/gnu/packages/web-browsers.scm
+++ b/gnu/packages/web-browsers.scm
@@ -43,6 +43,7 @@ (define-module (gnu packages web-browsers)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
   #:use-module (guix build-system python)
+  #:use-module (guix build-system pyproject)
   #:use-module (guix download)
   #:use-module (guix gexp)
   #:use-module (guix git-download)
@@ -61,6 +62,7 @@ (define-module (gnu packages web-browsers)
   #:use-module (gnu packages fltk)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages fonts)
+  #:use-module (gnu packages file)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages fribidi)
   #:use-module (gnu packages gcc)
@@ -72,6 +74,7 @@ (define-module (gnu packages web-browsers)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
+  #:use-module (gnu packages less)
   #:use-module (gnu packages libevent)
   #:use-module (gnu packages libidn)
   #:use-module (gnu packages libunistring)
@@ -97,6 +100,7 @@ (define-module (gnu packages web-browsers)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages webkit)
+  #:use-module (gnu packages web)
   #:use-module (gnu packages xorg))
 
 (define-public midori
@@ -547,6 +551,65 @@ (define-public qutebrowser
 GUI.  It is based on PyQt5 and QtWebEngine.")
     (license license:gpl3+)))
 
+(define-public offpunk
+  (package
+    (name "offpunk")
+    (version "1.10")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://git.sr.ht/~lioploum/offpunk")
+                    (commit (string-append "v" version))))
+              (sha256
+               (base32
+                "0r8j01s3hdn3iq4ld6pj3v0h4hpakvkc4h55jzz7jr6az4y8lcgs"))))
+    (build-system pyproject-build-system)
+    (arguments
+      (list #:tests? #f ; no tests
+            #:phases #~(modify-phases
+                         %standard-phases
+                         (add-before
+                           'wrap 'wrap-path
+                           (lambda* (#:key inputs outputs #:allow-other-keys)
+                                    (wrap-program
+                                      (string-append #$output
+                                                     "/bin/offpunk")
+                                      `("PATH" ":" prefix
+                                        (,(string-append
+                                            #$(this-package-input "less")
+                                            "/bin")
+                                          ,(string-append
+                                             #$(this-package-input "file")
+                                             "/bin")
+                                          ,(string-append
+                                             #$(this-package-input "xdg-utils")
+                                             "/bin"))))))
+                         (add-after
+                           'install 'install-manpages
+                           (lambda _
+                             (let
+                               ((mandir
+                                  (string-append
+                                    #$output "/share/man/man1")))
+                               (install-file "man/offpunk.1" mandir)))))))
+    (inputs (list python-cryptography
+                  python-requests
+                  python-feedparser
+                  python-beautifulsoup4
+                  python-readability-lxml
+                  python-flit
+                  xdg-utils
+                  file
+                  less))
+    (synopsis
+     "Command-line browser/feed reader for Gemini, Gopher, Spartan and Web")
+    (description
+     "The goal of Offpunk is to be able to synchronise your content once
+     (a day, a week, a month) and then browse/organise it while staying
+     disconnected")
+    (home-page "https://git.sr.ht/~lioploum/offpunk")
+    (license license:bsd-2)))
+
 (define-public vimb
   (package
     (name "vimb")

base-commit: f2943958a224beda05a3d040876df2a7285cd7a2
-- 
2.41.0




      parent reply	other threads:[~2023-09-18 16:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-10  8:06 [bug#65197] add offpunk ShinyZero0
2023-08-10 10:47 ` [bug#65197] [PATCH] fix formatting issues, remove unnecessary module import ShinyZero0
2023-08-12 22:21 ` [bug#65197] [PATCH] install manpage ShinyZero0
2023-08-15 22:44 ` [bug#65197] [PATCH] gnu: Add offpunk ShinyZero0
2023-09-06  5:00 ` [bug#65197] add offpunk Maxim Cournoyer
2023-09-18 16:18   ` ShinyZero0
2023-09-18 16:38   ` ShinyZero0 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CVM6VW8YO112.1WPRRWX7EVK8@localhost \
    --to=shinyzero0@tilde.club \
    --cc=65197@debbugs.gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).