From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhzFq-0004gG-BO for guix-patches@gnu.org; Wed, 16 Aug 2017 10:25:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhzFm-00078K-D1 for guix-patches@gnu.org; Wed, 16 Aug 2017 10:25:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhzFm-00078G-9A for guix-patches@gnu.org; Wed, 16 Aug 2017 10:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dhzFm-0000O5-2M for guix-patches@gnu.org; Wed, 16 Aug 2017 10:25:02 -0400 Subject: [bug#27970] [PATCH] gnu: Add rss-bridge. Resent-Message-ID: References: <732e9060.AEQAOGPqjLYAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZhfn5@mailjet.com> From: Ricardo Wurmus In-reply-to: <732e9060.AEQAOGPqjLYAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZhfn5@mailjet.com> Date: Wed, 16 Aug 2017 16:24:47 +0200 Message-ID: <87o9rfk2ts.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Arun Isaac Cc: 27970@debbugs.gnu.org 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