Subject: [bug#52299] [PATCH] gnu: Add guile-ini

From: [email-masked] (Artyom V. Poptsov)
Date: Sun, 05 Dec 2021 11:20:56 +0300

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

From 9d01c2f1a737c9b1995cba99eb56fee8fb99c030 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <[email-masked]>
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

-- 
Artyom "avp" Poptsov <[email-masked]>
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