From 716e7acce5ac8a8d9a409b8648a4c45b20063168 Mon Sep 17 00:00:00 2001
From: Olivier Farges <olivier.farges@univ-lorraine.fr>
Date: Sat, 1 Mar 2025 23:05:12 +0100
Subject: [PATCH] add star-enclosures-2d

---
 edix/packages/star-enclosures-2d.scm | 57 ++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 edix/packages/star-enclosures-2d.scm

diff --git a/edix/packages/star-enclosures-2d.scm b/edix/packages/star-enclosures-2d.scm
new file mode 100644
index 0000000..a29adbd
--- /dev/null
+++ b/edix/packages/star-enclosures-2d.scm
@@ -0,0 +1,57 @@
+(define-module (edix packages star-enclosures-2d)
+  #:use-module (guix packages)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix licenses)
+  #:use-module (guix utils)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages build-tools)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages gcc)
+  #:use-module (gnu packages autotools)
+  #:use-module (gnu packages base)
+  #:use-module (gnu packages maths)
+  #:use-module (gnu packages bash)
+  #:use-module (gnu packages check)
+  #:use-module (edix packages star-2d)
+  #:use-module (edix packages rsys))
+
+
+(define-public star-enclosures-2d
+  (package
+    (name "star-enclosures-2d")
+    (version "0.6") 
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.com/meso-star/star-enclosures-2d.git")
+                    (commit "0.6")))
+              (sha256
+               (base32 "11lcs6lhbjdizrf3chjg6mlnsp89h558vdml3l8vz3a6scgblzg2"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     (list pkg-config autoconf automake libtool))
+    (inputs
+     (list gcc
+           gfortran
+           bash
+           gnu-make rsys star-2d
+           ))
+    (arguments
+   `(#:make-flags (list (string-append "CC=gcc" ))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure) 
+         (delete 'check) 
+	(replace 'build
+		 (lambda* (#:key make-flags #:allow-other-keys)
+			  (invoke "make" (string-join make-flags " "))))
+	(replace 'install
+		 (lambda* (#:key outputs #:allow-other-keys)
+			  (let ((out (assoc-ref outputs "out")))
+			    (invoke "make" "install" (string-append "PREFIX=" out))))))))
+
+    (home-page "https://meso-star.com/star-enclosures-2d") ;; Remplacez avec le bon lien
+    (synopsis "Bibliothèque Star-enclosures-2d")
+    (description "Star-enclosures-2d")
+    (license (list gpl3+))))
-- 
GitLab