From 8e5061e6d6ef7ba00cdd2f02c15667dd03ca9002 Mon Sep 17 00:00:00 2001 From: Léo Le Bouter Date: Mon, 1 Mar 2021 04:34:31 +0100 Subject: gnu: Add quiterss. * gnu/packages/syndication.scm (quiterss): New variable. --- gnu/packages/syndication.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'gnu/packages/syndication.scm') diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm index 3e848b9f9c..3ebc9182fa 100644 --- a/gnu/packages/syndication.scm +++ b/gnu/packages/syndication.scm @@ -24,6 +24,7 @@ #:use-module (guix git-download) #:use-module (guix packages) #:use-module (guix build-system cargo) + #:use-module (guix build-system qt) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system python) @@ -39,12 +40,14 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) + #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-check) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-web) + #:use-module (gnu packages qt) #:use-module (gnu packages ruby) #:use-module (gnu packages sqlite) #:use-module (gnu packages tls) @@ -357,3 +360,57 @@ a simple interface that makes it easy to organize and browse feeds.") \"river of news\" or a public \"planet\" page. It supports all common feed formats, including all versions of RSS and Atom.") (license license:gpl2+))) + +(define-public quiterss + (package + (name "quiterss") + (version "0.19.4") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/QuiteRSS/quiterss/archive/" + version ".tar.gz")) + (sha256 + (base32 + "1g1kfa15fr8xskpsc15fbw22z8fljkyq6wfq02zygi4fb8hgmpyr")) + (modules '((guix build utils))) + (snippet + '(begin + (substitute* (find-files "." "\\.cpp$") + ;; Disable Google Analytics spyware by default, + ;; removing completely is not trivial. + (("settings\\.value\\(\"Settings/statisticsEnabled2\", true\\)") + "settings.value(\"Settings/statisticsEnabled2\", false)") + ;; Disable update check spyware by default, otherwise runs + ;; at every startup, nasty. Not needed on GNU Guix as a + ;; feature either way. + (("settings\\.value\\(\"Settings/updateCheckEnabled\", true\\)") + "settings.value(\"Settings/updateCheckEnabled\", false)")) + #t)))) + (build-system qt-build-system) + (arguments + `(#:tests? #f ;; no test suite + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (invoke "qmake" "CONFIG+=release" + (string-append "PREFIX=" + (assoc-ref outputs "out")) + (string-append "QMAKE_LRELEASE=" + (assoc-ref inputs "qttools") + "/bin/lrelease"))))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("qttools" ,qttools))) + (inputs + `(("qtwebkit" ,qtwebkit) + ("qtbase" ,qtbase) + ("qtmultimedia" ,qtmultimedia) + ("phonon" ,phonon) + ("sqlite" ,sqlite))) + (home-page "https://quiterss.org/") + (synopsis "RSS/Atom news feeds reader written on Qt/C++") + (description "QuiteRSS is an RSS/Atom news feeds reader written on Qt/C++ +that aims to be quite fast and comfortable to it's user.") + (license license:gpl3+))) -- cgit v1.2.3 From 143472afa49562a11220475409ac0dfc8644a6a4 Mon Sep 17 00:00:00 2001 From: Léo Le Bouter Date: Mon, 1 Mar 2021 04:42:12 +0100 Subject: gnu: quiterss: Fix lint warnings. * gnu/packages/syndication.scm (quiterss): [source]: Use git-fetch instead of autogenerated GitHub tarball. Remove trailing whitespace. --- gnu/packages/syndication.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'gnu/packages/syndication.scm') diff --git a/gnu/packages/syndication.scm b/gnu/packages/syndication.scm index 3ebc9182fa..89ef69f6b8 100644 --- a/gnu/packages/syndication.scm +++ b/gnu/packages/syndication.scm @@ -366,13 +366,14 @@ formats, including all versions of RSS and Atom.") (name "quiterss") (version "0.19.4") (source (origin - (method url-fetch) - (uri (string-append - "https://github.com/QuiteRSS/quiterss/archive/" - version ".tar.gz")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/QuiteRSS/quiterss") + (commit version))) + (file-name (git-file-name name version)) (sha256 (base32 - "1g1kfa15fr8xskpsc15fbw22z8fljkyq6wfq02zygi4fb8hgmpyr")) + "1cgvl67vhn5y7bj5gbjbgk26bhb0196bgrgsp3r5fmrislarj8s6")) (modules '((guix build utils))) (snippet '(begin @@ -383,7 +384,7 @@ formats, including all versions of RSS and Atom.") "settings.value(\"Settings/statisticsEnabled2\", false)") ;; Disable update check spyware by default, otherwise runs ;; at every startup, nasty. Not needed on GNU Guix as a - ;; feature either way. + ;; feature either way. (("settings\\.value\\(\"Settings/updateCheckEnabled\", true\\)") "settings.value(\"Settings/updateCheckEnabled\", false)")) #t)))) -- cgit v1.2.3