unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: cage <cage-dev@twistfold.it>
To: 67205@debbugs.gnu.org
Subject: [bug#67205] [PATCH] gnu: add cl-libjpeg-turbo 1.0.
Date: Wed, 15 Nov 2023 18:51:23 +0100	[thread overview]
Message-ID: <a766898e1d8d09d1a915946c19c617624dcef584.1700070522.git.cage-dev@twistfold.it> (raw)

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




             reply	other threads:[~2023-11-15 17:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-15 17:51 cage [this message]
2023-11-18 16:11 ` bug#67205: [PATCH] gnu: add cl-libjpeg-turbo 1.0 Guillaume Le Vaillant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a766898e1d8d09d1a915946c19c617624dcef584.1700070522.git.cage-dev@twistfold.it \
    --to=cage-dev@twistfold.it \
    --cc=67205@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).