aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/lisp-xyz.scm
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2024-11-20 14:36:34 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2024-11-20 15:10:04 +0100
commit2960720585308e2fdcb44a1ffad5030e06291b5b (patch)
treef995e4e3e15986d4290e518f16bf2da2abe69de2 /gnu/packages/lisp-xyz.scm
parentbe4a07f65ffaed915290d1b82fd321fc8b0601a6 (diff)
downloadguix-2960720585308e2fdcb44a1ffad5030e06291b5b.tar.gz
guix-2960720585308e2fdcb44a1ffad5030e06291b5b.zip
gnu: Add cl-f2cl.
* gnu/packages/lisp-xyz.scm (cl-f2cl, ecl-f2cl, sbcl-f2cl): New variables. Change-Id: If10548da2082b2de04c8086eccc48d04a68b4874
Diffstat (limited to 'gnu/packages/lisp-xyz.scm')
-rw-r--r--gnu/packages/lisp-xyz.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 2f5864d07b..c2391d4734 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -15117,6 +15117,45 @@ sacrificing much in the way of power.")
(define-public ecl-external-program
(sbcl-package->ecl-package sbcl-external-program))
+(define-public sbcl-f2cl
+ (let ((commit "a3dabbe429ff2fe6039a60c2546d287b4157f546")
+ (revision "1"))
+ (package
+ (name "sbcl-f2cl")
+ (version (git-version "1.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rtoy/f2cl")
+ (commit commit)))
+ (file-name (git-file-name "cl-f2cl" version))
+ (sha256
+ (base32 "1fc54n3g7kah93yj99dkvac4i765sysvcc6pwajhp2srr1np204s"))
+ (modules '((guix build utils)))
+ (snippet #~(delete-file-recursively "debian"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-build
+ (lambda _
+ (substitute* "src/f2cl2.l"
+ (("\\(optimize \\(speed 3\\) \\(safety 1\\)\\)\\)" all)
+ (string-append all ")"))))))))
+ (synopsis "Fortran 77 to Common Lisp translator")
+ (description
+ "F2cl is a Common Lisp library that can convert Fortran 77 code into
+Common Lisp code.")
+ (home-page "https://github.com/rtoy/f2cl")
+ (license license:gpl2))))
+
+(define-public cl-f2cl
+ (sbcl-package->cl-source-package sbcl-f2cl))
+
+(define-public ecl-f2cl
+ (sbcl-package->ecl-package sbcl-f2cl))
+
(define-public sbcl-fakenil
(package
(name "sbcl-fakenil")