Subject: [PATCH] gnu: guile-ics: Update to 0.3.0

From: "Artyom V. Poptsov" <[email-masked]>
Date: Sun, 04 Sep 2022 17:35:02 +0300

Hello,

this patch series updates Guile-ICS to 0.3.0 and also adds Guile-SMC for
the Guile 2.2 and the related Guile-ICS version.
From 116352d76bcbb986efac0630e03cca00856d2347 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <[email-masked]>
Date: Sun, 4 Sep 2022 08:21:39 +0300
Subject: [PATCH 1/3] gnu: guile-ics: Update to 0.3.0.

* gnu/packages/guile-xyz.scm (guile-ics): Update to 0.3.0.
  [phases]: Remove "strip" phase.
  [propagated-inputs]: Add "guile-smc".
---
 gnu/packages/guile-xyz.scm | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 204d48dcb5..58c8f8d343 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1733,7 +1733,7 @@ (define-public guile2.2-hall
 (define-public guile-ics
   (package
     (name "guile-ics")
-    (version "0.2.1")
+    (version "0.3.0")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -1742,19 +1742,19 @@ (define-public guile-ics
               (file-name (string-append name "-" version "-checkout"))
               (sha256
                (base32
-                "11wv6qk8xd4sd8s97mnw383p098ffivk0na4jii76r5wbmg1wd7q"))
-              (modules '((guix build utils)))))
+                "1526kdzcn0qvf5hpb4x5q01vb9mph9gfw24p81inqgjvy7a57lf9"))))
     (build-system gnu-build-system)
-    (native-inputs
-     (list autoconf
-           automake
-           texinfo
-           ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
-           gettext-minimal
-           help2man
-           pkg-config))
+    (arguments
+     (list #:phases #~(modify-phases %standard-phases
+                        (delete 'strip))))
+    (native-inputs (list autoconf
+                         automake
+                         texinfo
+                         gettext-minimal ;Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
+                         help2man
+                         pkg-config))
     (inputs (list guile-3.0 which))
-    (propagated-inputs (list guile-lib))
+    (propagated-inputs (list guile-lib guile-smc))
     (home-page "https://github.com/artyom-poptsov/guile-ics")
     (synopsis "Guile parser library for the iCalendar format")
     (description
-- 
2.34.1

From 464f9bf6d154a96cccc7610f77ebc450d17ab6fa Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <[email-masked]>
Date: Sun, 4 Sep 2022 08:25:42 +0300
Subject: [PATCH 2/3] gnu: Add guile2.2-smc

* gnu/packages/guile-xyz.scm (guile2.2-smc): New variable.
---
 gnu/packages/guile-xyz.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 58c8f8d343..1351aa5645 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -4924,6 +4924,14 @@ (define-public guile-smc
 with a FSM is being built (for example, from a Makefile.)")
     (license license:gpl3)))
 
+(define-public guile2.2-smc
+  (package
+    (inherit guile-smc)
+    (name "guile2.2-smc")
+    (inputs (modify-inputs (package-inputs guile-smc)
+              (replace "guile" guile-2.2)
+              (replace "guile-lib" guile2.2-lib)))))
+
 (define-public guile-ini
   (package
     (name "guile-ini")
-- 
2.34.1

From 6dd564993c2da5c823f268c51398fea032afb910 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <[email-masked]>
Date: Sun, 4 Sep 2022 08:28:34 +0300
Subject: [PATCH 3/3] gnu: guile2.2-ics: Update to 0.3.0

* gnu/packages/guile-xyz.scm (guile2.2-ics): Update to 0.3.0.
  [package-inputs]: Replace "guile-smc" with "guile2.2-smc".
  [propagated-inputs]: Use the new style.
---
 gnu/packages/guile-xyz.scm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 1351aa5645..6404fe1686 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1768,9 +1768,8 @@ (define-public guile2.2-ics
   (package
     (inherit guile-ics)
     (name "guile2.2-ics")
-    (inputs (modify-inputs (package-inputs guile-ics)
-              (replace "guile" guile-2.2)))
-    (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
+    (inputs (list guile-2.2 which))
+    (propagated-inputs (list guile2.2-lib guile2.2-smc))))
 
 (define-public guile-imanifest
   (let ((commit "ccd5a2111b008d778106f5595a3a585954d95d0")
-- 
2.34.1

Please note that Guile-ICS 0.3.0 is the first version that requires
Guile-SMC for its internal finite-state machine.

Thanks,

- Artyom

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