From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: [PATCH] gnu: Add surfraw. Date: Tue, 06 Sep 2016 10:42:42 +0000 Message-ID: <87r38x8g2l.fsf@we.make.ritual.n0.is> References: <20160906104037.24023-1-ng0@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhDq2-0003g2-2H for guix-devel@gnu.org; Tue, 06 Sep 2016 06:42:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhDpz-0006O2-MB for guix-devel@gnu.org; Tue, 06 Sep 2016 06:42:45 -0400 Received: from mithlond.libertad.in-berlin.de ([2001:67c:1400:2490::1]:38037 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhDpz-0006Ny-D6 for guix-devel@gnu.org; Tue, 06 Sep 2016 06:42:43 -0400 Received: by beleriand.n0.is (OpenSMTPD) with ESMTPSA id 6abb033c TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Tue, 6 Sep 2016 10:42:42 +0000 (UTC) In-Reply-To: <20160906104037.24023-1-ng0@we.make.ritual.n0.is> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Problem(?): ng0@shadowwalker /gnu/store/fvx31h4z9pf910f3ycdqlpv5z6ii7lx5-surfraw-2.2.9/bin$ ./surfraw surfraw ERROR: couldn't find global config in /gnu/store/fvx31h4z9pf910f3ycdqlpv5z6ii7lx5-surfraw-2.2.9/etc/xdg/surfraw/conf or $XDG_CONFIG_DIRS ng0@shadowwalker /gnu/store/fvx31h4z9pf910f3ycdqlpv5z6ii7lx5-surfraw-2.2.9/etc/xdg/surfraw$ ls -al total 16 dr-xr-xr-x 2 root root 4096 Jan 1 1970 ./ dr-xr-xr-x 3 root root 4096 Jan 1 1970 ../ -r--r--r-- 4 root root 143 Jan 1 1970 bookmarks -r--r--r-- 2 root root 2518 Jan 1 1970 conf ng0 writes: > * gnu/packages/web.scm (surfraw): New variable. > --- > gnu/packages/web.scm | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm > index 70bfd9e..20c7d12 100644 > --- a/gnu/packages/web.scm > +++ b/gnu/packages/web.scm > @@ -3609,3 +3609,27 @@ tools they trust (e.g. wget).") > rendering engine entirely written from scratch. It is small and capable of > handling many of the web standards in use today.") > (license l:gpl2+))) > + > +(define-public surfraw > + (package > + (name "surfraw") > + (version "2.2.9") > + (source (origin > + (method url-fetch) > + (uri (string-append "https://surfraw.alioth.debian.org/dist/" > + name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1fy4ph5h9kp0jzj1m6pfylxnnmgdk0mmdppw76z9jhna4jndk5xa")))) > + (build-system gnu-build-system) > + (inputs > + `(("perl" ,perl) > + ("perl-www-opensearch" ,perl-www-opensearch) > + ("perl-html-parser" ,perl-html-parser) > + ("perl-libwww" ,perl-libwww))) > + (synopsis "Unix command line interface to the www") > + (description "Surfraw (Shell Users' Revolutionary Front Rage Against the Web) > +provides a unix command line interface to a variety of popular www search engines > +and similar services.") > + (home-page "https://surfraw.alioth.debian.org/") > + (license l:public-domain))) > -- > 2.9.3 > -- ng0 For non-prism friendly talk find me on http://www.psyced.org