GNU bug report logs - #39730
[PATCH 0/2] Add cl-lquery

Previous Next

Package: guix-patches;

Reported by: Dimakakos Dimos <me <at> bendersteed.tech>

Date: Fri, 21 Feb 2020 23:25:01 UTC

Severity: normal

Tags: patch

Done: Guillaume Le Vaillant <glv <at> posteo.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 39730 in the body.
You can then email your comments to 39730 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#39730; Package guix-patches. (Fri, 21 Feb 2020 23:25:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dimakakos Dimos <me <at> bendersteed.tech>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 21 Feb 2020 23:25:02 GMT) Full text and rfc822 format available.

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

From: Dimakakos Dimos <me <at> bendersteed.tech>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] Add cl-lquery
Date: Sat, 22 Feb 2020 01:00:49 +0200
Hello Guix!

This patch series adds the cl-lquery library and its missing dependency
cl-clss.

Thanks!




Information forwarded to guix-patches <at> gnu.org:
bug#39730; Package guix-patches. (Fri, 21 Feb 2020 23:30:02 GMT) Full text and rfc822 format available.

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

From: Dimakis Dimakakos <me <at> bendersteed.tech>
To: 39730 <at> debbugs.gnu.org
Cc: Dimakakos Dimos <me <at> bendersteed.tech>
Subject: [PATCH 1/2] gnu: Add cl-clss.
Date: Sat, 22 Feb 2020 01:28:40 +0200
From: Dimakakos Dimos <me <at> bendersteed.tech>

* gnu/packages/lisp-xyz.scm (cl-clss, sbcl-clss, ecl-clss): New variables.
---
 gnu/packages/lisp-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 0ed074b766..c6f64ae278 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv <at> posteo.net>
 ;;; Copyright © 2019 Brett Gilio <brettg <at> gnu.org>
 ;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen <at> fastmail.net>
+;;; Copyright © 2020 Dimakis Dimakakos <me <at> bendersteed.tech>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -10645,3 +10646,36 @@ lightweight messaging kernel.")
 
 (define-public ecl-pzmq
   (sbcl-package->ecl-package sbcl-pzmq))
+
+(define-public sbcl-clss
+  (let ((revision "1")
+	(commit "2a8e8615ab55870d4ca01928f3ed3bbeb4e75c8d"))
+    (package
+      (name "sbcl-clss")
+      (version (string-append "0.3.1-" revision "." (string-take commit 7)))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/Shinmera/clss.git")
+           (commit commit)))
+         (sha256
+          (base32 "0la4dbcda78x29szanylccrsljqrn9d1mhh569sqkyp44ni5fv91"))
+         (file-name
+          (string-append "clss" version "-checkout"))))
+      (inputs
+       `(("array-utils" ,sbcl-array-utils)
+         ("plump" ,sbcl-plump)))
+      (build-system asdf-build-system/sbcl)
+      (synopsis "A DOM tree searching engine based on CSS selectors")
+      (description "CLSS is a DOM traversal engine based on CSS
+selectors. It makes use of the Plump-DOM and is used by lQuery.")
+      (home-page "https://github.com/Shinmera/clss")
+      (license license:zlib))))
+
+(define-public cl-clss
+  (sbcl-package->cl-source-package sbcl-clss))
+
+(define-public ecl-clss
+  (sbcl-package->ecl-package sbcl-clss))
-- 
2.25.0




Information forwarded to guix-patches <at> gnu.org:
bug#39730; Package guix-patches. (Fri, 21 Feb 2020 23:30:03 GMT) Full text and rfc822 format available.

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

From: Dimakis Dimakakos <me <at> bendersteed.tech>
To: 39730 <at> debbugs.gnu.org
Cc: Dimakakos Dimos <me <at> bendersteed.tech>
Subject: [PATCH 2/2] gnu: Add cl-lquery.
Date: Sat, 22 Feb 2020 01:29:35 +0200
From: Dimakakos Dimos <me <at> bendersteed.tech>

* gnu/packages/lisp-xyz.scm (sbcl-lquery, cl-lquery, ecl-lquery): New variables.
---
 gnu/packages/lisp-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index c6f64ae278..8bdc7b8493 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -10679,3 +10679,42 @@ selectors. It makes use of the Plump-DOM and is used by lQuery.")
 
 (define-public ecl-clss
   (sbcl-package->ecl-package sbcl-clss))
+
+(define-public sbcl-lquery
+  (let ((revision "1")
+	(commit "8048111c6b83956daa632e7a3ffbd8c9c203bd8d"))
+    (package
+      (name "sbcl-lquery")
+      (version (string-append "3.2.1-" revision "." (string-take commit 7)))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/Shinmera/lquery.git")
+           (commit commit)))
+         (sha256
+          (base32 "0520mcpxc2d6fdm8z61arpgd2z38kan7cf06qs373n5r64rakz6w"))
+         (file-name
+          (string-append "lquery" version "-checkout"))))
+      (inputs `(("array-utils" ,sbcl-array-utils)
+		("form-fiddle" ,sbcl-form-fiddle)
+		("plump" ,sbcl-plump)
+		("clss" ,sbcl-clss)
+		("fiveam" ,sbcl-fiveam)))
+      (build-system asdf-build-system/sbcl)
+      (synopsis "A library to allow jQuery-like HTML/DOM manipulation")
+      (description "lQuery is a DOM manipulation library written in
+Common Lisp, inspired by and based on the jQuery syntax and
+functions. It uses Plump and CLSS as DOM and selector engines. The
+main idea behind lQuery is to provide a simple interface for crawling
+and modifying HTML sites, as well as to allow for an alternative
+approach to templating.")
+      (home-page "https://github.com/Shinmera/lquery")
+      (license license:zlib))))
+
+(define-public cl-lquery
+  (sbcl-package->cl-source-package sbcl-lquery))
+
+(define-public ecl-lquery
+  (sbcl-package->ecl-package sbcl-lquery))
-- 
2.25.0




Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Sat, 22 Feb 2020 09:58:01 GMT) Full text and rfc822 format available.

Notification sent to Dimakakos Dimos <me <at> bendersteed.tech>:
bug acknowledged by developer. (Sat, 22 Feb 2020 09:58:01 GMT) Full text and rfc822 format available.

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

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: 39730-done <at> debbugs.gnu.org
Cc: Dimakis Dimakakos <me <at> bendersteed.tech>
Subject: Re: [bug#39730] [PATCH 0/2] Add cl-lquery
Date: Sat, 22 Feb 2020 10:57:23 +0100
[Message part 1 (text/plain, inline)]
Dimakakos Dimos <me <at> bendersteed.tech> skribis:

> Hello Guix!
>
> This patch series adds the cl-lquery library and its missing dependency
> cl-clss.
>
> Thanks!

Pushed with a few modifications as
cfc9004e3fa7128f0972aa2d4b6653b962771b4d and
eb85995738e4cf8098b9b16a0ddd84bdd02704cb.

Instead of building 'version' and 'file-name' using 'string-append', you
can use the 'git-version' and 'git-file-name' functions.
I also put the 'fiveam' dependency of sbcl-lquery in 'native-inputs'
instead of 'inputs' as it's only used in the tests.

Thanks.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#39730; Package guix-patches. (Sat, 22 Feb 2020 14:52:02 GMT) Full text and rfc822 format available.

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

From: Dimakakos Dimos <me <at> bendersteed.tech>
To: 39730-done <at> debbugs.gnu.org
Cc: Guillaume Le Vaillant <glv <at> posteo.net>
Subject: Re: [bug#39730] [PATCH 0/2] Add cl-lquery
Date: Sat, 22 Feb 2020 16:51:24 +0200
Guillaume Le Vaillant writes:

> Instead of building 'version' and 'file-name' using 'string-append', you
> can use the 'git-version' and 'git-file-name' functions.
> I also put the 'fiveam' dependency of sbcl-lquery in 'native-inputs'
> instead of 'inputs' as it's only used in the tests.

Thanks for the corrections, I didn't know about git-version and
git-file-name. I was sure that fiveam was in native inputs, was
surprised to see it there, that's strange. Maybe an I sent an earlier
patch series? 

And thanks again for pushing the patch!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 22 Mar 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 172 days ago.

Previous Next


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