From 347e493e4be67be523cd87a6c4d17e92a48c0a72 Mon Sep 17 00:00:00 2001 From: Olivier Farges <olivier.farges@univ-lorraine.fr> Date: Sat, 1 Mar 2025 00:11:11 +0100 Subject: [PATCH] debug star-3d --- edix/packages/star-3d.scm | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/edix/packages/star-3d.scm b/edix/packages/star-3d.scm index e5e087e..06ac765 100644 --- a/edix/packages/star-3d.scm +++ b/edix/packages/star-3d.scm @@ -43,14 +43,6 @@ (modify-phases %standard-phases (delete 'configure) (delete 'check) - (add-before 'build 'set-pkg-config-path - (lambda* (#:key inputs #:allow-other-keys) - (let ((pkgconfig-path (string-append (assoc-ref inputs "star-3d") "/lib/pkgconfig"))) - (setenv "PKG_CONFIG_PATH" (string-append pkgconfig-path ":" (or (getenv "PKG_CONFIG_PATH") ""))) - (format #t "DEBUG: PKG_CONFIG_PATH set to: ~a~%" (getenv "PKG_CONFIG_PATH")) - (invoke "ls" "-l" pkgconfig-path) ;; Affiche les fichiers dans pkgconfig - (invoke "pkg-config" "--modversion" "s3d") ;; Vérifie que pkg-config fonctionne bien dans l'environnement -)))) (replace 'build (lambda* (#:key make-flags #:allow-other-keys) (invoke "make" (string-join make-flags " ")))) @@ -58,26 +50,7 @@ (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (invoke "make" "install" (string-append "PREFIX=" out))))) -(add-after 'install 'install-pkg-config - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (pkgconfig-dir (string-append out "/lib/pkgconfig")) - (pc-file (string-append pkgconfig-dir "/star-3d.pc"))) - (mkdir-p pkgconfig-dir) - (with-output-to-file pc-file - (lambda () - (format #t "prefix=~a~%" out) - (format #t "exec_prefix=${prefix}~%") - (format #t "libdir=${exec_prefix}/lib~%") - (format #t "includedir=${prefix}/include~%") - (format #t "~%") - (format #t "Name: star-3d~%") - (format #t "Description: 3D simulation library~%") - (format #t "Version: 0.10~%") - (format #t "Cflags: -I${includedir}~%") - (format #t "Libs: -L${libdir} -lstar-3d~%"))))))) - )) - + ))) (home-page "https://meso-star.com/star-3d") ;; Remplacez avec le bon lien (synopsis "Bibliothèque Star-3D") (description "Star-3D") -- GitLab