GNU bug report logs - #27970
[PATCH] gnu: Add rss-bridge.

Previous Next

Package: guix-patches;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Sat, 5 Aug 2017 17:03:02 UTC

Severity: normal

Tags: patch

Done: Arun Isaac <arunisaac <at> systemreboot.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27970 in the body.
You can then email your comments to 27970 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#27970; Package guix-patches. (Sat, 05 Aug 2017 17:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arun Isaac <arunisaac <at> systemreboot.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 05 Aug 2017 17:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: guix-patches <at> gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH] gnu: Add rss-bridge.
Date: Sat,  5 Aug 2017 22:31:16 +0530
* gnu/packages/web.scm (rss-bridge): New variable.
---
 gnu/packages/web.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 5459a3051..92e2c4474 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4879,3 +4879,43 @@ responsive, and powerful applications with minimal effort.")
 communicate with each other, with Shiny or without (i.e.  static @code{.html}
 files).  It currently supports linked brushing and filtering.")
     (license l:expat)))
+
+(define-public rss-bridge
+  (package
+    (name "rss-bridge")
+    (version "2017-08-03")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/RSS-Bridge/rss-bridge/archive/"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "05s16y552hbyj91s7bnlkx1bi64s6aw0fjy29az8via3i3b21yhl"))))
+    (build-system trivial-build-system)
+    (native-inputs
+     `(("gzip" ,gzip)
+       ("tar" ,tar)))
+    (arguments
+     '(#:modules ((guix build utils))
+       #:builder
+       (begin
+         (use-modules (guix build utils)
+                      (ice-9 match))
+         (let* ((out (assoc-ref %outputs "out"))
+                (share-rss-bridge (string-append out "/share/rss-bridge")))
+           (set-path-environment-variable
+            "PATH" '("bin") (map (match-lambda ((_ . input) input))
+                                 %build-inputs))
+           (mkdir-p share-rss-bridge)
+           (system* "tar" "xvf" (assoc-ref %build-inputs "source")
+                    "--strip-components" "1" "-C" share-rss-bridge)
+           #t))))
+    (home-page "https://github.com/RSS-Bridge/rss-bridge")
+    (synopsis "Generate ATOM feeds for social networking websites")
+    (description "rss-bridge generates ATOM feeds for social networking
+websites lacking feeds.  Supported websites include Facebook, Twitter,
+Instagram and YouTube.")
+    (license (list l:public-domain
+                   l:expat)))) ;; vendor/simplehtmldom/simple_html_dom.php
-- 
2.13.4





Information forwarded to guix-patches <at> gnu.org:
bug#27970; Package guix-patches. (Wed, 16 Aug 2017 14:25:02 GMT) Full text and rfc822 format available.

Message #8 received at 27970 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 27970 <at> debbugs.gnu.org
Subject: Re: [bug#27970] [PATCH] gnu: Add rss-bridge.
Date: Wed, 16 Aug 2017 16:24:47 +0200
Hi Arun,

> * gnu/packages/web.scm (rss-bridge): New variable.
[…]
> +
> +(define-public rss-bridge
> +  (package
> +    (name "rss-bridge")
> +    (version "2017-08-03")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://github.com/RSS-Bridge/rss-bridge/archive/"
> +                           version ".tar.gz"))
> +       (file-name (string-append name "-" version ".tar.gz"))
> +       (sha256
> +        (base32
> +         "05s16y552hbyj91s7bnlkx1bi64s6aw0fjy29az8via3i3b21yhl"))))
> +    (build-system trivial-build-system)
> +    (native-inputs
> +     `(("gzip" ,gzip)
> +       ("tar" ,tar)))
> +    (arguments
> +     '(#:modules ((guix build utils))
> +       #:builder
> +       (begin
> +         (use-modules (guix build utils)
> +                      (ice-9 match))
> +         (let* ((out (assoc-ref %outputs "out"))
> +                (share-rss-bridge (string-append out "/share/rss-bridge")))
> +           (set-path-environment-variable
> +            "PATH" '("bin") (map (match-lambda ((_ . input) input))
> +                                 %build-inputs))
> +           (mkdir-p share-rss-bridge)
> +           (system* "tar" "xvf" (assoc-ref %build-inputs "source")
> +                    "--strip-components" "1" "-C" share-rss-bridge)
> +           #t))))
> +    (home-page "https://github.com/RSS-Bridge/rss-bridge")
> +    (synopsis "Generate ATOM feeds for social networking websites")
> +    (description "rss-bridge generates ATOM feeds for social networking

I think this should be “Atom”, not “ATOM”.

> +websites lacking feeds.  Supported websites include Facebook, Twitter,
> +Instagram and YouTube.")
> +    (license (list l:public-domain
> +                   l:expat)))) ;; vendor/simplehtmldom/simple_html_dom.php

How is this supposed to be used?  If these are just PHP files I think it
may be worth prepending “php-” to the package name and the variable
name.

What do you think?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





Information forwarded to guix-patches <at> gnu.org:
bug#27970; Package guix-patches. (Thu, 17 Aug 2017 16:54:01 GMT) Full text and rfc822 format available.

Message #11 received at 27970 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 27970 <at> debbugs.gnu.org
Subject: Re: [bug#27970] [PATCH] gnu: Add rss-bridge.
Date: Thu, 17 Aug 2017 22:22:44 +0530
>> +    (synopsis "Generate ATOM feeds for social networking websites")
>> +    (description "rss-bridge generates ATOM feeds for social networking
>
> I think this should be “Atom”, not “ATOM”.

Indeed! I'll fix that.

>> +websites lacking feeds.  Supported websites include Facebook, Twitter,
>> +Instagram and YouTube.")
>> +    (license (list l:public-domain
>> +                   l:expat)))) ;; vendor/simplehtmldom/simple_html_dom.php
>

> If these are just PHP files I think it may be worth prepending “php-”
> to the package name and the variable name.

This is not a php library of any kind. It is a web *application*, and we
should ignore what language it was written in. For example, gnusocial is
also a bunch of PHP files, but we wouldn't name it php-gnusocial, would
we?

> How is this supposed to be used?

I think we'll have to create an rss-bridge service. I'm not too sure at
this point, because I am yet to write my first service, and don't fully
understand how services work.




Information forwarded to guix-patches <at> gnu.org:
bug#27970; Package guix-patches. (Thu, 17 Aug 2017 19:50:01 GMT) Full text and rfc822 format available.

Message #14 received at 27970 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 27970 <at> debbugs.gnu.org
Subject: Re: [bug#27970] [PATCH] gnu: Add rss-bridge.
Date: Thu, 17 Aug 2017 21:49:44 +0200
Hi Arun,

>> If these are just PHP files I think it may be worth prepending “php-”
>> to the package name and the variable name.
>
> This is not a php library of any kind. It is a web *application*, and we
> should ignore what language it was written in. For example, gnusocial is
> also a bunch of PHP files, but we wouldn't name it php-gnusocial, would
> we?

Ah, okay.  Thanks for clarifying.

>> How is this supposed to be used?
>
> I think we'll have to create an rss-bridge service. I'm not too sure at
> this point, because I am yet to write my first service, and don't fully
> understand how services work.

Services are more than just daemon scripts that can be started and
stopped with Shepherd.  Services can do more than that; they can extend
other services e.g. to add to a configuration file or to set up
directories at activation time.

If you can come up with a list of things that need to be done to use
the rss-bridge web application I’m sure we can figure out together how
to implement the service.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





Reply sent to Arun Isaac <arunisaac <at> systemreboot.net>:
You have taken responsibility. (Fri, 18 Aug 2017 01:55:01 GMT) Full text and rfc822 format available.

Notification sent to Arun Isaac <arunisaac <at> systemreboot.net>:
bug acknowledged by developer. (Fri, 18 Aug 2017 01:55:02 GMT) Full text and rfc822 format available.

Message #19 received at 27970-done <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 27970-done <at> debbugs.gnu.org
Subject: Re: [bug#27970] [PATCH] gnu: Add rss-bridge.
Date: Fri, 18 Aug 2017 07:23:58 +0530
Pushed with modifications, thanks!

>>> How is this supposed to be used?
>>
>> I think we'll have to create an rss-bridge service. I'm not too sure at
>> this point, because I am yet to write my first service, and don't fully
>> understand how services work.
>
> Services are more than just daemon scripts that can be started and
> stopped with Shepherd.  Services can do more than that; they can extend
> other services e.g. to add to a configuration file or to set up
> directories at activation time.
>
> If you can come up with a list of things that need to be done to use
> the rss-bridge web application I’m sure we can figure out together how
> to implement the service.

I'll figure this out, and add a service soon.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 15 Sep 2017 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.