unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#43635] [PATCH] gnu: Add emacs-sqlite.
@ 2020-09-26 20:36 Adam Kandur via Guix-patches via
  2020-09-27 12:31 ` Nicolas Goaziou
  2020-09-27 13:18 ` [bug#43635] hope, this is right Adam Kandur via Guix-patches via
  0 siblings, 2 replies; 4+ messages in thread
From: Adam Kandur via Guix-patches via @ 2020-09-26 20:36 UTC (permalink / raw)
  To: 43635

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




[-- Attachment #2: 0001-gnu-Add-emacs-sqlite.patch --]
[-- Type: text/x-patch, Size: 1622 bytes --]

From 3b06aaabbee774c6dc7fef7b81a96c0ef72db46a Mon Sep 17 00:00:00 2001
From: Adam <rndd@tuta.io>
Date: Sat, 26 Sep 2020 23:32:14 +0300
Subject: [PATCH] gnu: Add emacs-sqlite.

* gnu/packages/emacs-xyz.scm (emacs-sqlite): New variable.
---
 gnu/packages/emacs-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cfef767..52744b1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -24733,3 +24733,25 @@ web development.")
       ;; file and the header of the main elisp file which indicates
       ;; that it is licensed under the GPL version 3 or later.
       (license (list license:mpl2.0 license:gpl3+)))))
+
+(define-public emacs-sqlite.el
+  (let ((commit "dad42b8bbca4994be1871343dd18fd6528ee5797")
+	(revision "1"))
+    (package
+      (name "emacs-sqlite.el")
+      (build-system emacs-build-system)
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+	       (url "https://gitlab.com/cnngimenez/sqlite.el.git")
+	       (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256 (base32 "06ln4vijl8kii3nzc5cscgsadx1fqgxksflijd3ain83bn8g4wrd"))))
+      (home-page "https://gitlab.com/cnngimenez/sqlite.el.git")
+      (synopsis "SQLite Interface for EmasLisp")
+      (description "This code was retrieved from the EmacsWiki at Dicember 26, 2013. At that point was two developers:
+    @cnngimenez
+    @KIDD (Raimon Grau)")
+      (license license:gpl3+))))
-- 
2.28.0


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

* [bug#43635] [PATCH] gnu: Add emacs-sqlite.
  2020-09-26 20:36 [bug#43635] [PATCH] gnu: Add emacs-sqlite Adam Kandur via Guix-patches via
@ 2020-09-27 12:31 ` Nicolas Goaziou
  2020-09-27 13:18 ` [bug#43635] hope, this is right Adam Kandur via Guix-patches via
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2020-09-27 12:31 UTC (permalink / raw)
  To: 43635; +Cc: rndd

Hello,

Adam Kandur via Guix-patches via <guix-patches@gnu.org> writes:

> Subject: [PATCH] gnu: Add emacs-sqlite.
>
> * gnu/packages/emacs-xyz.scm (emacs-sqlite): New variable.

Thank you!

Some comments follow.

> +(define-public emacs-sqlite.el

The same should be emacs-sqlite.

> +  (let ((commit "dad42b8bbca4994be1871343dd18fd6528ee5797")
> +	(revision "1"))

You need to provide a comment explaining why you're choosing a specific
commit instead of a tagged release (in this case, that's because there
is no tagged commit).

Also, mind the indentation. (revision ...) should be vertically aligned
with (commit ...)

> +    (package
> +      (name "emacs-sqlite.el")

See above.

> +      (build-system emacs-build-system)
> +      (version (git-version "0.0.0" revision commit))

The base version is "1.0" per keyword in the main Elisp file, not
"0.0.0".

> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +	       (url "https://gitlab.com/cnngimenez/sqlite.el.git")

You can drop the ".git" suffix in the URL.

> +	       (commit commit)))
> +         (file-name (git-file-name name version))
> +         (sha256 (base32 "06ln4vijl8kii3nzc5cscgsadx1fqgxksflijd3ain83bn8g4wrd"))))

(base32 ...) should be moved on the line below.

> +      (home-page "https://gitlab.com/cnngimenez/sqlite.el.git")

Likewise, please drop the ".git" suffix.

> +      (synopsis "SQLite Interface for EmasLisp")

There's a typo in EmacsLisp, which I suggest to write "Emacs Lisp".

> +      (description "This code was retrieved from the EmacsWiki at Dicember 26, 2013. At that point was two developers:
> +    @cnngimenez
> +    @KIDD (Raimon Grau)")

This description is not useful. I suggest to use the one from EmacsWiki,
quoted here:

  @code{sqlite.el} is a simple SqliteInterface for connecting and retrieving
  information using the SQLite program through Elisp programming.  It is
  not intended as a user interface.

Could you send an updated patch?

Regards,
-- 
Nicolas Goaziou




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

* [bug#43635] hope, this is right
  2020-09-26 20:36 [bug#43635] [PATCH] gnu: Add emacs-sqlite Adam Kandur via Guix-patches via
  2020-09-27 12:31 ` Nicolas Goaziou
@ 2020-09-27 13:18 ` Adam Kandur via Guix-patches via
  2020-10-01 13:42   ` Nicolas Goaziou
  1 sibling, 1 reply; 4+ messages in thread
From: Adam Kandur via Guix-patches via @ 2020-09-27 13:18 UTC (permalink / raw)
  To: 43635

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




[-- Attachment #2: 0001-gnu-Add-emacs-sqlite.el.patch --]
[-- Type: text/x-patch, Size: 1699 bytes --]

From 9ebce09ce3fd6d502598fc00c0456943897b8ba9 Mon Sep 17 00:00:00 2001
From: Adam <rndd@tuta.io>
Date: Sun, 27 Sep 2020 16:16:11 +0300
Subject: [PATCH] gnu: Add emacs-sqlite.el

* gnu/packages/emacs-xyz.scm (emacs-sqlite.el): New variable.
---
 gnu/packages/emacs-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 4ea5be4..9e91f6f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -24755,3 +24755,25 @@ web development.")
       ;; file and the header of the main elisp file which indicates
       ;; that it is licensed under the GPL version 3 or later.
       (license (list license:mpl2.0 license:gpl3+)))))
+
+(define-public emacs-sqlite.el
+  (let ((commit "dad42b8bbca4994be1871343dd18fd6528ee5797") ;; there is no tagged commit
+	(revision "0"))
+    (package
+      (name "emacs-sqlite.el")
+      (build-system emacs-build-system)
+      (version (git-version "1.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+	       (url "https://gitlab.com/cnngimenez/sqlite.el")
+	       (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "06ln4vijl8kii3nzc5cscgsadx1fqgxksflijd3ain83bn8g4wrd"))))
+      (home-page "https://gitlab.com/cnngimenez/sqlite.el")
+      (synopsis "SQLite Interface for Emas Lisp")
+      (description "@code{sqlite.el} is a simple SqliteInterface for connecting and retrieving
+information using the SQLite program through Elisp programming.  It is  not intended as a user interface.")
+      (license license:gpl3+))))
-- 
2.28.0


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

* [bug#43635] hope, this is right
  2020-09-27 13:18 ` [bug#43635] hope, this is right Adam Kandur via Guix-patches via
@ 2020-10-01 13:42   ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2020-10-01 13:42 UTC (permalink / raw)
  To: 43635; +Cc: 43635-done, Adam Kandur

Hello,

Adam Kandur via Guix-patches via <guix-patches@gnu.org> writes:

> Subject: [PATCH] gnu: Add emacs-sqlite.el

Thank you. I applied your patch with the changes detailed below.

> +  (let ((commit "dad42b8bbca4994be1871343dd18fd6528ee5797") ;; there is no tagged commit
> +	(revision "0"))

I moved the comment on the line above since comments starting with two
semicolons are expected to stand by their own line.

> +    (package
> +      (name "emacs-sqlite.el")

I changed the name to "emacs-sqlite". Ditto for the name of the variable.

> +      (synopsis "SQLite Interface for Emas Lisp")

I fixed the type and changed case for "Interface".

> +      (description "@code{sqlite.el} is a simple SqliteInterface for connecting and retrieving
> +information using the SQLite program through Elisp programming.  It
> is  not intended as a user interface.")

I fixed spacing and renamed the package.

I also moved the package elsewhere, since adding a package at the end of
the file is more likely to cause merge conflicts.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2020-10-01 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-26 20:36 [bug#43635] [PATCH] gnu: Add emacs-sqlite Adam Kandur via Guix-patches via
2020-09-27 12:31 ` Nicolas Goaziou
2020-09-27 13:18 ` [bug#43635] hope, this is right Adam Kandur via Guix-patches via
2020-10-01 13:42   ` Nicolas Goaziou

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