gnu: makel: Update to 1.0.0.

* gnu/packages/emacs-build.scm (makel): Update to 1.0.0.
[arguments]: Use G-Expressions.
<#:tests?>: Activate.

Change-Id: I8ccfae0e4501d8a8c43af186e70d6cf010f700e6
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Cayetano Santos 2025-09-22 10:51:40 +02:00 committed by Liliana Marie Prikler
parent a49269fd42
commit 582be17cd0
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -524,64 +524,62 @@ Lisp.")
(license license:expat))) (license license:expat)))
(define-public makel (define-public makel
(let ((commit "2c831098c28a1f581b016532fa1f6e1c596b8ed1") (package
(revision "0")) (name "makel")
(package (version "1.0.0")
(name "makel") (source
(version (git-version "0.8.0" revision commit)) (origin
(source (method git-fetch)
(origin (uri (git-reference
(method git-fetch) (url "https://github.com/DamienCassou/makel")
(uri (git-reference (commit (string-append "v" version))))
(url "https://github.com/DamienCassou/makel") (file-name (git-file-name name version))
(commit commit))) (sha256
(file-name (git-file-name name version)) (base32 "143bdy4c81jbmp5sk1arnlmpc4dsw85n601x9rii2dgyn186l8si"))))
(sha256 (build-system copy-build-system)
(base32 "0lmfl27rqh1530j8g4z2k6y6mc25n54bjkqriqdkw3703kliyvry")))) (arguments
(build-system copy-build-system) (list
(arguments #:modules
(list #~((guix build copy-build-system)
;; Some tests are currently broken, see (guix build utils)
;; https://github.com/DamienCassou/makel/issues/6 (srfi srfi-1)
#:tests? #f (srfi srfi-26)
#:modules (ice-9 ftw))
'((guix build copy-build-system) #:install-plan
(guix build utils) #~'(("makel.mk" "include/")
(srfi srfi-1) ("README.org" "share/docs/"))
(srfi srfi-26) #:phases
(ice-9 ftw)) #~(modify-phases %standard-phases
#:install-plan ''(("makel.mk" "include/") (add-before 'install 'inject-deps
("README.org" "share/docs/")) (lambda _
#:phases (substitute* "makel.mk"
#~(modify-phases %standard-phases (("^MAKEL_LOAD_PATH=(.*)$" all rest)
(add-before 'install 'inject-deps (string-append
(lambda _ "MAKEL_LOAD_PATH=-L "
(substitute* "makel.mk" (string-join
(("^MAKEL_LOAD_PATH=(.*)$" all rest) (filter-map
(string-append (lambda (dir)
"MAKEL_LOAD_PATH=-L " (let ((path (scandir dir)))
(string-join (and (eq? (length path) 3) ; removes emacs
(filter-map (string-append dir "/" (last path)))))
(lambda (dir) (string-split (getenv "EMACSLOADPATH") #\:))
(let ((path (scandir dir))) " -L ")
(and (eq? (length path) 3) ; removes emacs " " rest)))))
(string-append dir "/" (last path))))) (add-before 'install 'check
(string-split (getenv "EMACSLOADPATH") #\:)) (lambda* (#:key tests? #:allow-other-keys)
" -L ") (if tests?
" " rest))))) (with-directory-excursion "test"
(add-before 'install 'check (invoke "bash" "run-tests.sh"))
(lambda* (#:key tests? #:allow-other-keys) (format #f "Test suite not run.~%")))))))
(if tests? (native-inputs
(with-directory-excursion "test" (list bash-minimal emacs-minimal))
(invoke "bash" "run-tests.sh")) (inputs
(format #f "Test suite not run.~%"))))))) (list emacs-buttercup emacs-package-lint))
(native-inputs (list bash-minimal emacs-minimal)) (home-page "https://github.com/DamienCassou/makel")
(inputs (list emacs-buttercup emacs-package-lint)) (synopsis "Makefile to help checking Emacs packages")
(home-page "https://github.com/DamienCassou/makel") (description
(synopsis "Makefile to help checking Emacs packages") "This package provides a Makefile to help checking Emacs packages.")
(description "This package provides a makefile to help checking Emacs (license license:gpl3+)))
packages.")
(license license:gpl3+))))
;; This is an alternative version patches for internal Guix tests. ;; This is an alternative version patches for internal Guix tests.
;; The user-facing version is in emacs-xyz.scm ;; The user-facing version is in emacs-xyz.scm