* [bug#67205] [PATCH] gnu: add cl-libjpeg-turbo 1.0.
@ 2023-11-15 17:51 cage
2023-11-18 16:11 ` bug#67205: " Guillaume Le Vaillant
0 siblings, 1 reply; 2+ messages in thread
From: cage @ 2023-11-15 17:51 UTC (permalink / raw)
To: 67205
Change-Id: Id64bd481c1b44a169c037260fc02023c35f15e9d
---
gnu/packages/lisp-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 760d0e9e45..5787188ff5 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -12132,6 +12132,47 @@ (define-public cl-jpeg
(define-public ecl-cl-jpeg
(sbcl-package->ecl-package sbcl-cl-jpeg))
+(define-public sbcl-jpeg-turbo
+ (let ((commit "f79c646cc266c107bdace53572a31664754c6e0c")
+ (revision "1"))
+ (package
+ (name "sbcl-jpeg-turbo")
+ (version (git-version "1.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/shamazmazum/jpeg-turbo/")
+ (commit commit)))
+ (file-name (git-file-name "cl-jpeg-turbo" version))
+ (sha256
+ (base32 "1andd1ibbk3224idnpsnrn96flr5d1wm9ja3di57fs04wn577sag"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-lib-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/jpeg-turbo.lisp"
+ (("\"libturbojpeg\\.so\\.0\"")
+ (string-append "\""
+ (assoc-ref inputs "libjpeg-turbo")
+ "/lib/libturbojpeg.so\""))))))))
+ (inputs
+ `(("cffi" ,sbcl-cffi)
+ ("libjpeg-turbo" ,libjpeg-turbo)))
+ (synopsis "Common Lisp wrapper for libjpeg-turbo")
+ (description
+ "jpeg-turbo is a Common Lisp wrapper for libjpeg-turbo library which provides TurboJPEG API for compressing and decompressing JPEG images.")
+ (home-page "https://github.com/shamazmazum/jpeg-turbo/")
+ (license license:bsd-2))))
+
+(define-public cl-jpeg-turbo
+ (sbcl-package->cl-source-package sbcl-jpeg-turbo))
+
+(define-public ecl-cl-jpeg-turbo
+ (sbcl-package->ecl-package sbcl-jpeg-turbo))
+
(define-public sbcl-png
(let ((commit "11b965fe378fd0561abe3616b18ff03af5179648")
(revision "1"))
base-commit: 66132d6a20b3a8fa4649df338568765540057bd1
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#67205: [PATCH] gnu: add cl-libjpeg-turbo 1.0.
2023-11-15 17:51 [bug#67205] [PATCH] gnu: add cl-libjpeg-turbo 1.0 cage
@ 2023-11-18 16:11 ` Guillaume Le Vaillant
0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Le Vaillant @ 2023-11-18 16:11 UTC (permalink / raw)
To: cage; +Cc: 67205-done
[-- Attachment #1: Type: text/plain, Size: 149 bytes --]
Patch applied with some style changes (no input labels, use of
search-input-file function, etc) as
b9ec0d4ef98bf1b9f5488a44a79de2cefa26ab9e.
Thanks.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-18 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-15 17:51 [bug#67205] [PATCH] gnu: add cl-libjpeg-turbo 1.0 cage
2023-11-18 16:11 ` bug#67205: " Guillaume Le Vaillant
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.