gnu: rss-bridge: Update to 2020-11-10.

* gnu/packages/web.scm (rss-bridge): Update to 2020-11-10.
[build-system]: Switch to copy-build-system.
[arguments]: Adjust to new build system. Add phase "patch-paths".

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
la snesne 2021-04-15 13:12:07 +09:00 committed by Ludovic Courtès
parent dec1009d82
commit 905ecd78a7
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -48,6 +48,7 @@
;;; Copyright © 2020, 2021 Ryan Prior <rprior@protonmail.com> ;;; Copyright © 2020, 2021 Ryan Prior <rprior@protonmail.com>
;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@posteo.ro> ;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@posteo.ro>
;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at> ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2021 la snesne <lasnesne@lagunposprasihopre.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -6535,7 +6536,7 @@ (define-public python2-clf
(define-public rss-bridge (define-public rss-bridge
(package (package
(name "rss-bridge") (name "rss-bridge")
(version "2019-09-12") (version "2020-11-10")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -6544,19 +6545,23 @@ (define-public rss-bridge
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1mx7f3l45nqhcrng531l4cq8kpzm164hhbwn26g5akb2pamdlnra")))) (base32 "1mir6mcm37sbdrhl5kgs6schpp3l4r5mfamhiic0yfbz4hqwmg44"))))
(build-system trivial-build-system) (build-system copy-build-system)
(arguments (arguments
'(#:modules ((guix build utils)) '(#:install-plan
#:builder '(("." "share/rss-bridge"))
(begin #:phases
(use-modules (guix build utils) (modify-phases %standard-phases
(ice-9 match)) ;;Change paths to not use source directory.
(let* ((out (assoc-ref %outputs "out")) (add-before 'install 'patch-paths
(share-rss-bridge (string-append out "/share/rss-bridge"))) (lambda _
(mkdir-p share-rss-bridge) (substitute* "lib/rssbridge.php"
(copy-recursively (assoc-ref %build-inputs "source") share-rss-bridge) (("PATH_ROOT . 'cache/'")
#t)))) "'/var/cache/rss-bridge/'")
(("PATH_ROOT . 'whitelist.txt'")
"'/etc/rss-bridge/whitelist.txt'")
(("PATH_ROOT . 'config.ini.php'")
"'/etc/rss-bridge/config.ini.php'")))))))
(home-page "https://github.com/RSS-Bridge/rss-bridge") (home-page "https://github.com/RSS-Bridge/rss-bridge")
(synopsis "Generate Atom feeds for social networking websites") (synopsis "Generate Atom feeds for social networking websites")
(description "rss-bridge generates Atom feeds for social networking (description "rss-bridge generates Atom feeds for social networking