[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/10: gnu: Add sbcl-cxml.
From: |
guix-commits |
Subject: |
07/10: gnu: Add sbcl-cxml. |
Date: |
Fri, 5 Jul 2019 06:37:27 -0400 (EDT) |
ambrevar pushed a commit to branch master
in repository guix.
commit 4f54138731c035b2fdc026206f7ed288fc14ffc4
Author: Pierre Neidhardt <address@hidden>
Date: Fri Jul 5 12:30:21 2019 +0200
gnu: Add sbcl-cxml.
* gnu/packages/lisp.scm (sbcl-cxml): New variable.
---
gnu/packages/lisp.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index d4f833b..e6ddd2c 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -6041,6 +6041,44 @@ offered, one SAX-like, the other similar to StAX.")
`(#:asd-file "cxml.asd"
#:asd-system-name "cxml/test"))))
+(define-public sbcl-cxml
+ (package
+ (inherit sbcl-cxml+xml)
+ (name "sbcl-cxml")
+ (inputs
+ `(("closure-common" ,sbcl-closure-common)
+ ("puri" ,sbcl-puri)
+ ("trivial-gray-streams" ,sbcl-trivial-gray-streams)
+ ("cxml+dom" ,sbcl-cxml+dom)
+ ("cxml+klacks" ,sbcl-cxml+klacks)
+ ("cxml+test" ,sbcl-cxml+test)))
+ (arguments
+ `(#:asd-file "cxml.asd"
+ #:asd-system-name "cxml"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'install-dtd
+ (lambda* (#:key outputs #:allow-other-keys)
+ (install-file "catalog.dtd"
+ (string-append
+ (assoc-ref outputs "out")
+ "/lib/" (%lisp-type)))))
+ (add-after 'create-asd 'remove-component
+ ;; XXX: The original .asd has no components, but our build system
+ ;; creates an entry nonetheless. We need to remove it for the
+ ;; generated .asd to load properly. See trivia.trivial for a
+ ;; similar problem.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (asd (string-append out "/lib/sbcl/cxml.asd")))
+ (substitute* asd
+ ((" :components
+")
+ ""))
+ (substitute* asd
+ ((" *\\(\\(:compiled-file \"cxml--system\"\\)\\)")
+ ""))))))))))
+
(define-public sbcl-cl-reexport
(let ((commit "312f3661bbe187b5f28536cd7ec2956e91366c3b")
(revision "1"))
- branch master updated (e48f80c -> 7af213f), guix-commits, 2019/07/05
- 08/10: gnu: sbcl-trivia.trivial: Resolve Lisp type dynamically., guix-commits, 2019/07/05
- 06/10: gnu: Add sbcl-cxml+test., guix-commits, 2019/07/05
- 02/10: gnu: sbcl-closure-common: Use official home-page., guix-commits, 2019/07/05
- 07/10: gnu: Add sbcl-cxml.,
guix-commits <=
- 05/10: gnu: Add sbcl-cxml+klacks., guix-commits, 2019/07/05
- 10/10: gnu: Add sbcl-dbus., guix-commits, 2019/07/05
- 01/10: gnu: sbcl-iolib: Add CFFI to list of inputs and fix spacing., guix-commits, 2019/07/05
- 04/10: gnu: Add sbcl-cxml+dom., guix-commits, 2019/07/05
- 03/10: gnu: Add sbcl-cxml+xml., guix-commits, 2019/07/05
- 09/10: gnu: Add sbcl-cl-xmlspam., guix-commits, 2019/07/05