unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#35156] [PATCH] Add htttrack
@ 2019-04-05 12:14 Nicolas Goaziou
  2019-04-05 12:39 ` [bug#35156] Followup: Update to 3.49.2 Nicolas Goaziou
  2019-04-11 12:50 ` [bug#35156] [PATCH] Add htttrack Tobias Geerinckx-Rice
  0 siblings, 2 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2019-04-05 12:14 UTC (permalink / raw)
  To: 35156

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

Hello,

The following patch adds HTTrack offline website browser.

Feedback welcome.

Regards,

-- 
Nicolas Goaziou

[-- Attachment #2: Add httrack --]
[-- Type: text/x-diff, Size: 2463 bytes --]

From 9ce157feeb529e2bfaa82a357288311093dfa2c4 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date: Fri, 5 Apr 2019 14:12:48 +0200
Subject: [PATCH] gnu: Add httrack.

* gnu/packages/web.scm (httrack): New variable.
---
 gnu/packages/web.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index e84b42358c..c19e49b5f5 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -30,6 +30,7 @@
 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
+;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -6430,3 +6431,35 @@ compressed JSON header blocks.
 provided by Guix.  The list of packages is searchable and provides
 instructions on how to use Guix in a shared HPC environment.")
       (license l:agpl3+))))
+
+(define-public httrack
+  (package
+    (name "httrack")
+    (version "3.48.21")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/xroche/httrack.git")
+                    (commit version)
+                    (recursive? #t)))   ;for "coucal" submodule
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0cn4h7bzvp2mf5id229cgb101cqmwycc1nkd1n91c69akzivdhl2"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("libressl" ,libressl)
+       ("zlib" ,zlib)))
+    (home-page "https://www.httrack.com/")
+    (synopsis "Easy-to-use offline browser utility")
+    (description "HTTrack allows you to download a World Wide Web site from
+the Internet to a local directory, building recursively all directories,
+getting HTML, images, and other files from the server to your computer.
+
+HTTrack arranges the original site's relative link-structure.  Simply open
+a page of the ``mirrored'' website in your browser, and you can browse the
+site from link to link, as if you were viewing it online.  HTTrack can also
+update an existing mirrored site, and resume interrupted downloads.
+
+HTTrack is fully configurable, and has an integrated help system.")
+    (license license:gpl3+)))
-- 
2.21.0


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

* [bug#35156] Followup: Update to 3.49.2
  2019-04-05 12:14 [bug#35156] [PATCH] Add htttrack Nicolas Goaziou
@ 2019-04-05 12:39 ` Nicolas Goaziou
  2019-04-11 11:26   ` Ludovic Courtès
  2019-04-11 12:50 ` [bug#35156] [PATCH] Add htttrack Tobias Geerinckx-Rice
  1 sibling, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2019-04-05 12:39 UTC (permalink / raw)
  To: 35156

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

This is an update to the latest 3.49.2, which is not tagged as a new
release in the repository !


[-- Attachment #2: Update htttrack --]
[-- Type: text/x-diff, Size: 2337 bytes --]

From e0d495da8aeab8e0b6d37475af821455e1a1a249 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date: Fri, 5 Apr 2019 14:12:48 +0200
Subject: [PATCH] gnu: Add httrack.

* gnu/packages/web.scm (httrack): New variable.
---
 gnu/packages/web.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index e84b42358c..d6f15d5154 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -30,6 +30,7 @@
 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
+;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -6430,3 +6431,32 @@ compressed JSON header blocks.
 provided by Guix.  The list of packages is searchable and provides
 instructions on how to use Guix in a shared HPC environment.")
       (license l:agpl3+))))
+
+(define-public httrack
+  (package
+    (name "httrack")
+    (version "3.49.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://mirror.httrack.com/historical/"
+                                  "httrack-" version ".tar.gz"))
+              (sha256
+               (base32
+                "09a0gm67nml86qby1k1gh7rdxamnrnzwr6l9r5iiq94favjs0xrl"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("libressl" ,libressl)
+       ("zlib" ,zlib)))
+    (home-page "https://www.httrack.com/")
+    (synopsis "Easy-to-use offline browser utility")
+    (description "HTTrack allows you to download a World Wide Web site from
+the Internet to a local directory, building recursively all directories,
+getting HTML, images, and other files from the server to your computer.
+
+HTTrack arranges the original site's relative link-structure.  Simply open
+a page of the ``mirrored'' website in your browser, and you can browse the
+site from link to link, as if you were viewing it online.  HTTrack can also
+update an existing mirrored site, and resume interrupted downloads.
+
+HTTrack is fully configurable, and has an integrated help system.")
+    (license license:gpl3+)))
-- 
2.21.0


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

* [bug#35156] Followup: Update to 3.49.2
  2019-04-05 12:39 ` [bug#35156] Followup: Update to 3.49.2 Nicolas Goaziou
@ 2019-04-11 11:26   ` Ludovic Courtès
  2019-04-11 12:06     ` bug#35156: " Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2019-04-11 11:26 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 35156

Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:

> From e0d495da8aeab8e0b6d37475af821455e1a1a249 Mon Sep 17 00:00:00 2001
> From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
> Date: Fri, 5 Apr 2019 14:12:48 +0200
> Subject: [PATCH] gnu: Add httrack.
>
> * gnu/packages/web.scm (httrack): New variable.

LGTM, thanks!

Ludo'.

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

* bug#35156: Followup: Update to 3.49.2
  2019-04-11 11:26   ` Ludovic Courtès
@ 2019-04-11 12:06     ` Nicolas Goaziou
  0 siblings, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2019-04-11 12:06 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 35156-done

Hello,

Ludovic Courtès <ludo@gnu.org> writes:

> Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:
>
>> From e0d495da8aeab8e0b6d37475af821455e1a1a249 Mon Sep 17 00:00:00 2001
>> From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
>> Date: Fri, 5 Apr 2019 14:12:48 +0200
>> Subject: [PATCH] gnu: Add httrack.
>>
>> * gnu/packages/web.scm (httrack): New variable.
>
> LGTM, thanks!


Applied as ed132a57c103a764f5831521f2ae332e5b34b762. Thank you.

Regards,

-- 
Nicolas Goaziou

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

* [bug#35156] [PATCH] Add htttrack
  2019-04-05 12:14 [bug#35156] [PATCH] Add htttrack Nicolas Goaziou
  2019-04-05 12:39 ` [bug#35156] Followup: Update to 3.49.2 Nicolas Goaziou
@ 2019-04-11 12:50 ` Tobias Geerinckx-Rice
  2019-04-11 17:43   ` Nicolas Goaziou
  1 sibling, 1 reply; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-04-11 12:50 UTC (permalink / raw)
  To: 35156

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

Guixen,

>  (define-module (gnu packages web)
>   #:use-module (ice-9 match)
>   #:use-module ((guix licenses) #:prefix l:)

[...]

> +    (license license:gpl3+)))

Hehe.  I guess nobody built this ;-)

Kind regards,

T G-R

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

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

* [bug#35156] [PATCH] Add htttrack
  2019-04-11 12:50 ` [bug#35156] [PATCH] Add htttrack Tobias Geerinckx-Rice
@ 2019-04-11 17:43   ` Nicolas Goaziou
  2019-04-11 19:19     ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2019-04-11 17:43 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 35156

Hello,

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> Guixen,
>
>>  (define-module (gnu packages web)
>>   #:use-module (ice-9 match)
>>   #:use-module ((guix licenses) #:prefix l:)
>
> [...]
>
>> +    (license license:gpl3+)))
>
> Hehe.  I guess nobody built this ;-)

I did, but I usually start defining packages in an incubator.scm from
GUIX_PACKAGE_PATH. It is well possible that I forgot to remove the
initial draft there after moving the package into web.scm, so I didn't
catch the mistake. I got bitten by this in the past already.

OTOH, this kind of discrepancy is... frustrating =/

Thank you for the fix.

Regards,

-- 
Nicolas Goaziou

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

* [bug#35156] [PATCH] Add htttrack
  2019-04-11 17:43   ` Nicolas Goaziou
@ 2019-04-11 19:19     ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-04-11 19:19 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 35156

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

Nicolas,

You're absolutely right that

> OTOH, this kind of discrepancy is... frustrating =/

It's all very ad hoc, including the different helpful prefixes 
added by some importers but not others.

> Thank you for the fix.

Oh, no worries.

Kind regards,

T G-R

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

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

end of thread, other threads:[~2019-04-11 19:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-05 12:14 [bug#35156] [PATCH] Add htttrack Nicolas Goaziou
2019-04-05 12:39 ` [bug#35156] Followup: Update to 3.49.2 Nicolas Goaziou
2019-04-11 11:26   ` Ludovic Courtès
2019-04-11 12:06     ` bug#35156: " Nicolas Goaziou
2019-04-11 12:50 ` [bug#35156] [PATCH] Add htttrack Tobias Geerinckx-Rice
2019-04-11 17:43   ` Nicolas Goaziou
2019-04-11 19:19     ` Tobias Geerinckx-Rice

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).