all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 60336@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#60336] [PATCH] gnu: Add glaxnimate.
Date: Mon, 26 Dec 2022 12:52:08 +0000	[thread overview]
Message-ID: <20221226125208.890248-1-monego@posteo.net> (raw)

* gnu/packages/animation.scm (glaxnimate): New variable.
---
 gnu/packages/animation.scm | 56 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm
index 9901e34b5f..a48e518d57 100644
--- a/gnu/packages/animation.scm
+++ b/gnu/packages/animation.scm
@@ -23,16 +23,19 @@
 (define-module (gnu packages animation)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system meson)
+  #:use-module (guix build-system qt)
   #:use-module (gnu packages)
   #:use-module (gnu packages algebra)
   #:use-module (gnu packages assembly)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages backup)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
@@ -48,6 +51,7 @@ (define-module (gnu packages animation)
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
   #:use-module (gnu packages jemalloc)
+  #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages pcre)
@@ -55,6 +59,7 @@ (define-module (gnu packages animation)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages tls)
@@ -391,6 +396,58 @@ (define-public lightspark
                    license:bsd-2 ;jxrlib
                    license:expat)))) ;pugixml, PerlinNoise
 
+(define-public glaxnimate
+  (package
+    (name "glaxnimate")
+    (version "0.5.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.com/mattbas/glaxnimate")
+                    (commit version)
+                    (recursive? #t)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1b4lxlw6xa69np1wpi5aq5547fq05c9aa64m8547apnpxdqa930v"))
+              (modules '((guix build utils)))
+              ;; Some of the submodules are developed in-house.  Delete those
+              ;; that we have packaged.
+              ;; TODO: Try to unbundle pybind11.
+              (snippet '(begin
+                          (delete-file-recursively "data/icons/breeze-icons")
+                          (delete-file-recursively "external/potrace")))))
+    (build-system qt-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; Glaxnimate copies breeze icons from a submodule.  Use icons from
+          ;; our package instead.
+          (add-after 'unpack 'use-system-icons
+            (lambda _
+              (mkdir "data/icons/breeze-icons")
+              (symlink (string-append #$(this-package-input "breeze-icons")
+                                      "/share/icons/breeze")
+                       "data/icons/breeze-icons/icons")
+              (symlink (string-append #$(this-package-input "breeze-icons")
+                                      "/share/icons/breeze-dark")
+                       "data/icons/breeze-icons/icons-dark"))))))
+    (native-inputs (list qttools-5))
+    (inputs (list breeze-icons
+                  ffmpeg
+                  libarchive
+                  potrace
+                  python
+                  qtbase-5
+                  qtsvg-5
+                  zlib))
+    (home-page "https://glaxnimate.mattbas.org/")
+    (synopsis "Vector graphics animation program")
+    (description "Glaxnimate is a vector graphics animation program.")
+    (license license:gpl3+)))
+
 (define-public papagayo
   (let ((commit "e143684b30e59fe4a554f965cb655d23cbe93ee7")
         (revision "1"))
-- 
2.34.1





             reply	other threads:[~2022-12-26 12:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-26 12:52 Vinicius Monego [this message]
2024-05-19 20:59 ` [bug#60336] [PATCH v2] gnu: Add glaxnimate Vinicius Monego
2024-05-19 21:03   ` Vinicius Monego

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

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

  git send-email \
    --in-reply-to=20221226125208.890248-1-monego@posteo.net \
    --to=monego@posteo.net \
    --cc=60336@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 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.