all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 71954@debbugs.gnu.org
Cc: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>,
	Andreas Enge <andreas@enge.fr>, Eric Bavier <bavier@posteo.net>,
	Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: [bug#71954] [PATCH] gnu: xaos: Update to 4.3.2.
Date: Fri,  5 Jul 2024 21:56:27 +0300	[thread overview]
Message-ID: <a49dc641faf2c8d4994ac16fff87364aaf55c8ec.1720205787.git.poptsov.artyom@gmail.com> (raw)

* gnu/packages/maths.scm (xaos): Update to 4.3.2.
[native-inputs]: Remove qtbase-5 and qttools-5; add qtbase and qttools.
[arguments]: Use gexps.  Fix "PREFIX" variable in "XaoS.pro" during
"configure" phase.

Change-Id: Ifae9890309368ee4131b531c9ea7b155a3cf693c
---
 gnu/packages/maths.scm | 84 +++++++++++++++++++++---------------------
 1 file changed, 42 insertions(+), 42 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index d39292e825..d00e12a084 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -7066,7 +7066,7 @@ (define-public wcalc
 (define-public xaos
   (package
     (name "xaos")
-    (version "4.2.1")
+    (version "4.3.2")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -7075,53 +7075,53 @@ (define-public xaos
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0maw5am6rrkyjrprfg113zjq37mqj0iaznkg4h2927ff7wrprc94"))))
+                "0a5n3g1xcsd8k65q5skm4xsdllr3mmkahh4vi59db1l0jv81v06q"))))
     (build-system gnu-build-system)
     (native-inputs `(("gettext" ,gettext-minimal)
-                     ("qtbase" ,qtbase-5)
-                     ("qttools-5" ,qttools-5)))
+                     ("qtbase" ,qtbase)
+                     ("qttools" ,qttools)))
     (inputs (list libx11 zlib libpng gsl))
     ;; The upstream project file ("XaoS.pro") and the Makefile it generates are
     ;; not enough for this package to install properly.  These phases fix that.
     (arguments
-     `(#:tests? #f ;no "check" target
-       #:phases
-       (modify-phases %standard-phases
-         (add-before 'configure 'make-qt-deterministic
-           (lambda _
-             ;; Make Qt deterministic.
-             (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
-             #t))
-         (replace 'configure
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out")))
-               (substitute* "XaoS.pro"
-                 ;; The DESTDIR is originally set to install the xaos binary to
-                 ;; the "bin" folder inside the build directory.  Setting make
-                 ;; flags doesn't seem to change this.
-                 (("DESTDIR.*$")
-                  (string-append "DESTDIR=" out "/bin"))
-                 ;; Set the correct path to the lrelease binary.
-                 (("lrelease-qt5") "lrelease"))
-               (substitute* "src/include/config.h"
-                 (("/usr/share/XaoS")
-                  (string-append out "/share/XaoS")))
-               (invoke "qmake"))))
-         (add-after 'install 'install-data
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (share (string-append out "/share")))
-               (mkdir-p share)
-               (for-each
-                (lambda (folder)
-                  (copy-recursively folder
-                                    (string-append share "/XaoS/" folder)))
-                '("catalogs" "examples" "tutorial"))
-               (install-file "xdg/xaos.png"
-                             (string-append share "/pixmaps"))
-               (install-file "xdg/xaos.desktop"
-                             (string-append share "/applications")))
-             #t)))))
+     (list #:tests? #f ;no "check" target
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'configure 'make-qt-deterministic
+                 (lambda _
+                   ;; Make Qt deterministic.
+                   (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")))
+               (replace 'configure
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let ((out (assoc-ref outputs "out")))
+                     (substitute* "XaoS.pro"
+                       ;; The DESTDIR is originally set to install the xaos binary to
+                       ;; the "bin" folder inside the build directory.  Setting make
+                       ;; flags doesn't seem to change this.
+                       (("DESTDIR.*$")
+                        (string-append "DESTDIR=" out "/bin"))
+                       (("/usr/local")
+                        out)
+                       ;; Set the correct path to the lrelease binary.
+                       (("lrelease-qt6") "lrelease"))
+                     (substitute* "src/include/config.h"
+                       (("/usr/share/XaoS")
+                        (string-append out "/share/XaoS")))
+                     (invoke "qmake"))))
+               (add-after 'install 'install-data
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((out (assoc-ref outputs "out"))
+                          (share (string-append out "/share")))
+                     (mkdir-p share)
+                     (for-each
+                      (lambda (folder)
+                        (copy-recursively folder
+                                          (string-append share "/XaoS/" folder)))
+                      '("catalogs" "examples" "tutorial"))
+                     (install-file "xdg/xaos.png"
+                                   (string-append share "/pixmaps"))
+                     (install-file "xdg/io.github.xaos_project.XaoS.desktop"
+                                   (string-append share "/applications"))))))))
     (synopsis "Real-time fractal zoomer")
     (description "GNU XaoS is a graphical program that generates fractal
 patterns and allows you to zoom in and out of them infinitely in a fluid,

base-commit: 922e943059050f05532ac8274e55e25ebe711cf5
-- 
2.45.2





             reply	other threads:[~2024-07-05 19:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-05 18:56 Artyom V. Poptsov [this message]
2024-07-10 14:11 ` bug#71954: [PATCH] gnu: xaos: Update to 4.3.2 Ludovic Courtès

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=a49dc641faf2c8d4994ac16fff87364aaf55c8ec.1720205787.git.poptsov.artyom@gmail.com \
    --to=poptsov.artyom@gmail.com \
    --cc=71954@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=bavier@posteo.net \
    --cc=sharlatanus@gmail.com \
    /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.