[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/259: gnu: Add go-go-mau-fi-webp.
From: |
guix-commits |
Subject: |
27/259: gnu: Add go-go-mau-fi-webp. |
Date: |
Mon, 26 May 2025 12:02:49 -0400 (EDT) |
guix_mirror_bot pushed a commit to branch master
in repository guix.
commit cf68c1c54620f26e734ded89ff9ed01503d67b4e
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Feb 13 13:15:04 2025 +0000
gnu: Add go-go-mau-fi-webp.
* gnu/packages/golang-xyz.scm (go-go-mau-fi-webp): New variable.
Change-Id: I5a8b7f25085bb99d3bc7798ec90a1fbc73fc36e3
---
gnu/packages/golang-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 2fd7888eb9..e84ad6a10f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -16762,6 +16762,56 @@ MySQL.")
written in Go, as well as some other related libraries like whatsmeow.")
(license license:mpl2.0)))
+(define-public go-go-mau-fi-webp
+ (package
+ (name "go-go-mau-fi-webp")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tulir/webp")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0g2m162kmnz1d2zpmbgja330q1p9ygdryllfzm71zr7d5pr9fc13"))
+ (modules '((guix build utils)))
+ ;; FIXME: The project indludes a copy of libwebp
+ ;; (internal/libwebp-1.5.0) which is availalbe in Guix, find out how to
+ ;; build it with it's source.
+ (snippet
+ #~(begin
+ ;; Remove files which were auto generated by 'go generate'.
+ (for-each delete-file
+ (find-files "." "^z_libwebp_src_.*\\.c$"))
+ ;; An Apple user was here (mem).
+ (for-each delete-file
+ (find-files "^\\.DS_Store$"))))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "go.mau.fi/webp"
+ ;; reader_test.go:34: image: unknown format
+ #:test-flags #~(list "-skip" "TestDecode")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-benchmarks
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "bench"))))
+ (add-after 'unpack 'go-generate
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "generate")))))))
+ (propagated-inputs (list go-golang-org-x-image))
+ (home-page "https://go.mau.fi/webp")
+ (synopsis "WebP decoder and encoder for Golang")
+ (description
+ "Package webp implements a decoder and encoder for
+@code{https://en.wikipedia.org/wiki/WebP, WebP} images. It's a maintained
+fork of @code{github.com/chai2010/webp}.")
+ (license license:bsd-3)))
+
(define-public go-go-mongodb-org-mongo-driver
(package
(name "go-go-mongodb-org-mongo-driver")
- branch master updated (7b1dccdf45 -> bd7139de98), guix-commits, 2025/05/26
- 05/259: gnu: Add go-github-com-akrylysov-algnhsa., guix-commits, 2025/05/26
- 27/259: gnu: Add go-go-mau-fi-webp.,
guix-commits <=
- 38/259: gnu: go-github-com-signintech-gopdf: Update to 0.29.2., guix-commits, 2025/05/26
- 21/259: gnu: Add go-github-com-kisielk-sqlstruct., guix-commits, 2025/05/26
- 13/259: gnu: Add go-github-com-tomnomnom-linkheader., guix-commits, 2025/05/26
- 06/259: gnu: Add go-github-com-dimfeld-httptreemux., guix-commits, 2025/05/26
- 01/259: build/go: Set correct GOOS for Windows., guix-commits, 2025/05/26
- 32/259: gnu: go-github-com-zalando-go-keyring: Update to 0.2.6., guix-commits, 2025/05/26
- 18/259: gnu: go-github-com-gxed-hashland-murmur3: Build from source., guix-commits, 2025/05/26
- 39/259: gnu: go-github-com-signintech-gopdf: Move to golang-xyz., guix-commits, 2025/05/26
- 03/259: gnu: Add go-github-com-sereal-sereal-go-sereal., guix-commits, 2025/05/26
- 17/259: gnu: Add go-github-com-sap-go-hdb., guix-commits, 2025/05/26