unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add surfraw.
@ 2016-09-06 10:40 ng0
  2016-09-06 10:42 ` ng0
  0 siblings, 1 reply; 4+ messages in thread
From: ng0 @ 2016-09-06 10:40 UTC (permalink / raw)
  To: guix-devel

* 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: Add surfraw.
  2016-09-06 10:40 [PATCH] gnu: Add surfraw ng0
@ 2016-09-06 10:42 ` ng0
  2016-09-06 12:38   ` ng0
  0 siblings, 1 reply; 4+ messages in thread
From: ng0 @ 2016-09-06 10:42 UTC (permalink / raw)
  To: guix-devel

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 <ng0@we.make.ritual.n0.is> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: Add surfraw.
  2016-09-06 10:42 ` ng0
@ 2016-09-06 12:38   ` ng0
  2016-09-08 16:58     ` Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: ng0 @ 2016-09-06 12:38 UTC (permalink / raw)
  To: guix-devel

ng0 <ng0@we.make.ritual.n0.is> writes:

> 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

This is fixed when the package is in $PATH and no longer in store.

ng0@shadowwalker ~$ echo $XDG_CONFIG_DIRS
/home/ng0/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg

ng0@shadowwalker ~$ sr
Usage: sr [-help] [-elvi] elvis [elvioptions] [search terms]
       sr [options] bookmark [search terms]
    If you wish to run the elvi directly, run "surfraw-update-path" to append
        /gnu/store/fvx31h4z9pf910f3ycdqlpv5z6ii7lx5-surfraw-2.2.9/lib/surfraw to your $PATH in your shell's config files.
    See surfraw-update-path(1) for details
Options:
   -elvi  List elvi
   -help  This help
sr is an alias for surfraw
Global options:


etc etc...


I was able to search duckduckgo for "pong" with w3m.

There have been some commits since this release, but the response time
is slow.

I have no clue which web searches are a9 based so I can not test this.
This package is good to go from my side, just needs a review.

> ng0 <ng0@we.make.ritual.n0.is> 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
>

-- 
ng0
For non-prism friendly talk find me on http://www.psyced.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gnu: Add surfraw.
  2016-09-06 12:38   ` ng0
@ 2016-09-08 16:58     ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2016-09-08 16:58 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 2124 bytes --]

On Tue, Sep 06, 2016 at 12:38:49PM +0000, ng0 wrote:
> ng0 <ng0@we.make.ritual.n0.is> writes:
> 
> > 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
> 
> This is fixed when the package is in $PATH and no longer in store.
> 
> ng0@shadowwalker ~$ echo $XDG_CONFIG_DIRS
> /home/ng0/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
> 
> ng0@shadowwalker ~$ sr
> Usage: sr [-help] [-elvi] elvis [elvioptions] [search terms]
>        sr [options] bookmark [search terms]
>     If you wish to run the elvi directly, run "surfraw-update-path" to append
>         /gnu/store/fvx31h4z9pf910f3ycdqlpv5z6ii7lx5-surfraw-2.2.9/lib/surfraw to your $PATH in your shell's config files.
>     See surfraw-update-path(1) for details
> Options:
>    -elvi  List elvi
>    -help  This help
> sr is an alias for surfraw
> Global options:
> 
> 
> etc etc...
> 
> 
> I was able to search duckduckgo for "pong" with w3m.
> 
> There have been some commits since this release, but the response time
> is slow.
> 
> I have no clue which web searches are a9 based so I can not test this.
> This package is good to go from my side, just needs a review.
> 

./pre-inst-env guix environment --ad-hoc surfraw
surfraw wikipedia -browser=links RMS

... didn't bring up RMS. Apparently they've hidden him behind a
disambiguation page.

patch pushed!


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-08 16:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-06 10:40 [PATCH] gnu: Add surfraw ng0
2016-09-06 10:42 ` ng0
2016-09-06 12:38   ` ng0
2016-09-08 16:58     ` Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).