gnu: guile-smc: Update to 0.5.2.

* gnu/packages/guile-xyz.scm (guile-smc): Update to 0.5.2.
[arguments]: Remove the patch phase that is not needed anymore.
Remove a trailing #t in the wrap-program phase.
[native-inputs]: Add "help2man" and "which".
[inputs]: Use the new inputs style.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Artyom V. Poptsov 2022-08-23 21:10:13 +03:00 committed by Mathieu Othacehe
parent 85b5603eb2
commit b11d029ca3
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -4864,7 +4864,7 @@ (define-public guile-gitlab
(define-public guile-smc
(package
(name "guile-smc")
(version "0.3.0")
(version "0.5.2")
(source
(origin
(method git-fetch)
@ -4874,7 +4874,7 @@ (define-public guile-smc
(file-name (string-append name "-" version))
(sha256
(base32
"0szkjmasi70m1vppck7nhdxg4lnxzjq6mihi6r1552s8sxm5z008"))))
"05q20vi59whjs7jb8bgcxnnfy6c3wx26m5ps2fwlsz52nggarxzb"))))
(build-system gnu-build-system)
(arguments
`(#:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
@ -4886,23 +4886,6 @@ (define-public guile-smc
#:phases
(modify-phases %standard-phases
(delete 'strip)
(add-after 'configure 'patch
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* "modules/smc/core/log.scm"
((" #:use-module \\(logging logger\\)")
(string-append
" #:use-module (logging logger)\n"
" #:use-module (logging rotating-log)"))
(("#:init-value \"logger\"")
(format #f
"#:init-value \"~a/bin/logger\""
(assoc-ref inputs "inetutils")))
(("\\(add-handler! %logger %syslog\\)")
(string-append
"(add-handler! %logger\n"
" (make <rotating-log>\n"
" #:file-name \"smc.log\"))\n")))
#t))
(add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
@ -4919,15 +4902,11 @@ (define-public guile-smc
,(string-append guile-lib scm)))
`("GUILE_LOAD_COMPILED_PATH" prefix
(,(string-append out go)
,(string-append guile-lib go)))))
#t)))))
,(string-append guile-lib go))))))))))
(native-inputs
(list autoconf automake pkg-config texinfo))
(list autoconf automake pkg-config texinfo help2man which))
(inputs
`(("bash" ,bash-minimal)
("guile" ,guile-3.0)
("guile-lib" ,guile-lib)
("inetutils" ,inetutils)))
(list bash-minimal guile-3.0 guile-lib inetutils))
(home-page "https://github.com/artyom-poptsov/guile-smc")
(synopsis "GNU Guile state machine compiler")
(description