Merge pull request #299679 from Uthar/lisp-cephes-build

sbcl.pkgs.cephes: fix build
This commit is contained in:
7c6f434c 2024-03-28 11:01:54 +00:00 committed by GitHub
commit 0a5af866fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 0 deletions

View file

@ -201,6 +201,14 @@ let
'';
};
cephes = build-with-compile-into-pwd {
inherit (super.cephes) pname version src lispLibs;
patches = [ ./patches/cephes-make.patch ];
postConfigure = ''
substituteAllInPlace cephes.asd
'';
};
clx-truetype = build-asdf-system {
pname = "clx-truetype";
version = "20160825-git";

View file

@ -0,0 +1,22 @@
--- a/cephes.asd
+++ b/cephes.asd
@@ -5,7 +5,7 @@
(defclass makefile (source-file) ((type :initform "m")))
(defmethod perform ((o load-op) (c makefile)) t)
(defmethod perform ((o compile-op) (c makefile))
- (let* ((lib-dir (system-relative-pathname "cephes" "scipy-cephes"))
+ (let* ((lib-dir #P"@out@/scipy-cephes")
(lib (make-pathname :directory `(:relative ,(namestring lib-dir))
:name "libmd"
:type #+darwin "dylib" #+(and unix (not darwin)) "so" #+(or windows win32) "dll"))
@@ -14,7 +14,7 @@
(format *error-output* "Library ~S exists, skipping build" lib)
(format *error-output* "Building ~S~%" lib))
(unless built
- (chdir (native-namestring lib-dir))
+ (chdir "scipy-cephes")
(run-program "make" :output t))))
(defsystem "cephes"
Diff finished. Thu Mar 28 08:13:30 2024