summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgart <jgart@dismail.de>2024-09-26 10:46:10 -0500
committerjgart <jgart@dismail.de>2024-09-26 20:33:45 -0500
commitd8ef348ca6c76ea903d119b265e600f289c779f5 (patch)
treefbd91a228aedee12f2c5d5112cbf7254b9b96546
parentd7df503c5af450e4ed1ecafacf0945db45426e4a (diff)
gnu: Add cl-iconv.
* gnu/packages/lisp-xyz.scm (cl-iconv, ecl-cl-iconv, sbcl-cl-iconv): New variables. Co-authored-by: Ada Stevenson <adanskana@gmail.com> Change-Id: I58398683cb43397ea954736ab5b5b0afcbc41e20
-rw-r--r--gnu/packages/lisp-xyz.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index d3c6fde93d..9d98c42ec4 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -6583,6 +6583,47 @@ Lisp.")
(define-public ecl-cl-i18n
(sbcl-package->ecl-package sbcl-cl-i18n))
+(define-public sbcl-cl-iconv
+ (let ((commit "54900c3f00e19da15a9c65451bddde839d0a7f75")
+ (revision "0"))
+ (package
+ (name "sbcl-cl-iconv")
+ (version (git-version "0.3" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/quek/cl-iconv")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1lpw95c02inifhdh9kkab9q92i5w9zd788dww1wly2p0a6kyx9wg"))))
+ (build-system asdf-build-system/sbcl)
+ ;; The project is called cl-iconv but the system is declared as iconv.
+ (arguments
+ '(#:asd-systems '("iconv")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "iconv.lisp"
+ (("libiconv.so")
+ (search-input-file inputs "/lib/libiconv.so"))))))))
+ (native-inputs (list sbcl-ptester))
+ (inputs (list libiconv sbcl-cffi))
+ (home-page "https://github.com/quek/cl-iconv")
+ (synopsis "iconv library for Common Lisp")
+ (description
+ "This package provides CFFI bindings to convert between different
+character encodings using iconv.")
+ (license license:bsd-3))))
+
+(define-public cl-iconv
+ (sbcl-package->cl-source-package sbcl-cl-iconv))
+
+(define-public ecl-cl-iconv
+ (sbcl-package->ecl-package sbcl-cl-iconv))
+
(define-public sbcl-cl-indentify
(let ((commit "eb770f434defa4cd41d84bca822428dfd0dbac53"))
(package