* [bug#52299] [PATCH] gnu: Add guile-ini
@ 2021-12-05 8:05 Artyom V. Poptsov
2021-12-05 8:20 ` Artyom V. Poptsov
2021-12-05 8:38 ` [bug#52299] " Mathieu Othacehe
0 siblings, 2 replies; 4+ messages in thread
From: Artyom V. Poptsov @ 2021-12-05 8:05 UTC (permalink / raw)
To: 52299
[-- Attachment #1.1: Type: text/plain, Size: 268 bytes --]
Hello Guixers,
this patch adds Guile-INI -- an INI format[1] parser for GNU Guile.
Guile-INI depends on the recently added Guile-SMC. [2]
Thanks,
- Artyom
References:
1: https://en.wikipedia.org/wiki/INI_file
2: https://guix.gnu.org/en/packages/guile-smc-0.3.0/
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-guile-ini.patch --]
[-- Type: text/x-diff, Size: 2074 bytes --]
From 490dd30bfb6636818dc60759423e2ee52591682f Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 5 Dec 2021 11:00:14 +0300
Subject: [PATCH] gnu: Add guile-ini
* gnu/packages/guile-xyz.scm (guile-ini): New variable.
---
gnu/packages/guile-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 508b4b44d5..67474e4d30 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -4944,3 +4944,38 @@ compiler itself. It produces a Scheme code for an FSM from the PlantUML
format. This tool is meant to be called on a PlantUML file when a program
with a FSM is being built (for example, from a Makefile.)")
(license license:gpl3)))
+
+(define-public guile-ini
+ (package
+ (name "guile-ini")
+ (version "0.3.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/artyom-poptsov/guile-ini")
+ (commit (string-append "v" version))))
+ (file-name (string-append name "-" version))
+ (sha256
+ (base32
+ "0injn60530valhx3gsmdp72g6z886yf0n08hscky21h3dafm14kc"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("pkg-config" ,pkg-config)
+ ("texinfo" ,texinfo)))
+ (inputs
+ `(("bash" ,bash-minimal)
+ ("guile" ,guile-3.0)
+ ("guile-smc" ,guile-smc)
+ ("guile-lib" ,guile-lib)))
+ (home-page "https://github.com/artyom-poptsov/guile-ini")
+ (synopsis "Guile interface to GitLab")
+ (description
+ "This package provides bindings to the GitLab Community Edition REST API
+as well as the @samp{gitlab-cli} command line tool for interacting with a
+GitLab instance.")
+ (license license:gpl3)))
--
2.25.1
[-- Attachment #1.3: Type: text/plain, Size: 207 bytes --]
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#52299] [PATCH] gnu: Add guile-ini
2021-12-05 8:05 [bug#52299] [PATCH] gnu: Add guile-ini Artyom V. Poptsov
@ 2021-12-05 8:20 ` Artyom V. Poptsov
2021-12-05 8:57 ` bug#52299: " Mathieu Othacehe
2021-12-05 8:38 ` [bug#52299] " Mathieu Othacehe
1 sibling, 1 reply; 4+ messages in thread
From: Artyom V. Poptsov @ 2021-12-05 8:20 UTC (permalink / raw)
To: 52299
[-- Attachment #1.1: Type: text/plain, Size: 169 bytes --]
Oh, it seems that I fell victim of the copy-paste fewer.
Taking this opportunity, I also ran 'guile lint' on the Guile-INI
package.
Here's the fixed patch.
- Artyom
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-guile-ini.patch --]
[-- Type: text/x-diff, Size: 2086 bytes --]
From 9d01c2f1a737c9b1995cba99eb56fee8fb99c030 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 5 Dec 2021 11:00:14 +0300
Subject: [PATCH] gnu: Add guile-ini
* gnu/packages/guile-xyz.scm (guile-ini): New variable.
---
gnu/packages/guile-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 508b4b44d5..d022ae738f 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -4944,3 +4944,38 @@ compiler itself. It produces a Scheme code for an FSM from the PlantUML
format. This tool is meant to be called on a PlantUML file when a program
with a FSM is being built (for example, from a Makefile.)")
(license license:gpl3)))
+
+(define-public guile-ini
+ (package
+ (name "guile-ini")
+ (version "0.3.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/artyom-poptsov/guile-ini")
+ (commit (string-append "v" version))))
+ (file-name (string-append name "-" version))
+ (sha256
+ (base32
+ "0injn60530valhx3gsmdp72g6z886yf0n08hscky21h3dafm14kc"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("pkg-config" ,pkg-config)
+ ("texinfo" ,texinfo)))
+ (inputs
+ `(("bash" ,bash-minimal)
+ ("guile" ,guile-3.0)
+ ("guile-smc" ,guile-smc)
+ ("guile-lib" ,guile-lib)))
+ (home-page "https://github.com/artyom-poptsov/guile-ini")
+ (synopsis "GNU Guile library for working with INI format")
+ (description
+ "A GNU Guile library for working with
+@url{https://en.wikipedia.org/wiki/INI_file, INI format}. The library
+provides API for reading and writing INI data.")
+ (license license:gpl3)))
--
2.25.1
[-- Attachment #1.3: Type: text/plain, Size: 207 bytes --]
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#52299: [PATCH] gnu: Add guile-ini
2021-12-05 8:20 ` Artyom V. Poptsov
@ 2021-12-05 8:57 ` Mathieu Othacehe
0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Othacehe @ 2021-12-05 8:57 UTC (permalink / raw)
To: Artyom V. Poptsov; +Cc: 52299-done
> Taking this opportunity, I also ran 'guile lint' on the Guile-INI
> package.
>
> Here's the fixed patch.
I added guile-smc to the propagated-inputs to fix the following error:
--8<---------------cut here---------------start------------->8---
mathieu@meije ~/guix [env]$ make -j8 && ./pre-inst-env guix shell guile-ini guile
mathieu@meije ~/guix [env]$ guile -q
scheme@(guile-user)> ,use (ini)
While executing meta-command:
no code for module (smc fsm)
--8<---------------cut here---------------end--------------->8---
and pushed as 030d9b261fc81cf8047cc8f4dfd1f8e59e1fd3b7.
Thanks,
Mathieu
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#52299] [PATCH] gnu: Add guile-ini
2021-12-05 8:05 [bug#52299] [PATCH] gnu: Add guile-ini Artyom V. Poptsov
2021-12-05 8:20 ` Artyom V. Poptsov
@ 2021-12-05 8:38 ` Mathieu Othacehe
1 sibling, 0 replies; 4+ messages in thread
From: Mathieu Othacehe @ 2021-12-05 8:38 UTC (permalink / raw)
To: Artyom V. Poptsov; +Cc: 52299
Hello Artyom,
> + (synopsis "Guile interface to GitLab")
> + (description
> + "This package provides bindings to the GitLab Community Edition REST API
> +as well as the @samp{gitlab-cli} command line tool for interacting with a
> +GitLab instance.")
Looks like you forget to update those fields :).
Mathieu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-05 8:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-05 8:05 [bug#52299] [PATCH] gnu: Add guile-ini Artyom V. Poptsov
2021-12-05 8:20 ` Artyom V. Poptsov
2021-12-05 8:57 ` bug#52299: " Mathieu Othacehe
2021-12-05 8:38 ` [bug#52299] " Mathieu Othacehe
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.