gnu: librnd: Update to 4.3.2.

* gnu/packages/engineering.scm (librnd): Update to 4.3.2.
[build-system]: Switch to glib-or-gtk.
[arguments]<#:phases>: Merge cc-is-gcc into configure phase.
[inputs]: Add gtkglext and libepoxy.

Change-Id: If0bb0feadc83cba97f93c5122c83b9f1771c3fd5
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Cayetano Santos 2025-07-26 18:28:21 +02:00 committed by Andreas Enge
parent 4f368f0cfa
commit 4f5f246334
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
2 changed files with 12 additions and 12 deletions

View file

@ -67,6 +67,7 @@
#:use-module (guix build-system copy) #:use-module (guix build-system copy)
#:use-module (guix build-system emacs) #:use-module (guix build-system emacs)
#:use-module (guix build-system guile) #:use-module (guix build-system guile)
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system meson) #:use-module (guix build-system meson)
#:use-module (guix build-system pyproject) #:use-module (guix build-system pyproject)
@ -568,29 +569,28 @@ features.")))
(define-public librnd (define-public librnd
(package (package
(name "librnd") (name "librnd")
(version "4.0.2") (version "4.3.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "http://www.repo.hu/projects/librnd/releases/" (uri (string-append "http://www.repo.hu/projects/librnd/"
"librnd-" version ".tar.bz2")) "releases/librnd-" version ".tar.bz2"))
(sha256 (sha256
(base32 (base32
"0z578x3sd8yjfbhivy1hz4hlgiy43qq6x7mnby872plpm08vgqxz")))) "1qjv6gg9fb3rpvr1y9l5nbzz2xk2sa4nqz0dgwvds5hc1bmd97mf"))))
(build-system gnu-build-system) (build-system glib-or-gtk-build-system)
(arguments (arguments
(list (list
#:tests? #false ;no check target #:tests? #false ;no check target
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'cc-is-gcc ;; The configure script doesn't tolerate most of our configure
(lambda _ (setenv "CC" #$(cc-for-target)))) ;; flags.
(replace 'configure (replace 'configure
;; The configure script doesn't tolerate most of our configure flags.
(lambda _ (lambda _
(invoke "sh" "configure" (setenv "CC" #$(cc-for-target))
(string-append "--prefix=" #$output))))))) (invoke "./configure" (string-append "--prefix=" #$output)))))))
(inputs (inputs
(list gd gtk glib glu)) (list gd glib glu gtk gtkglext libepoxy))
(native-inputs (native-inputs
(list pkg-config)) (list pkg-config))
(home-page "http://repo.hu/projects/librnd/") (home-page "http://repo.hu/projects/librnd/")

View file

@ -47,7 +47,7 @@
"1s7lpnxg826r2lm2c81j9a61zwljy2ybkqwadjiwrfi0hmbczn89")))) "1s7lpnxg826r2lm2c81j9a61zwljy2ybkqwadjiwrfi0hmbczn89"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs (inputs
(list gmp lesstif libffi libx11 libxt)) (list gmp libffi libx11 libxt))
(arguments (arguments
'(#:configure-flags '(#:configure-flags
(list "--with-gmp" (list "--with-gmp"