* [bug#37791] [PATCH 0/4] Some fixes for ecl-* Common Lisp packages
@ 2019-10-17 14:37 Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 1/4] build-system/asdf: Fix package transform Guillaume Le Vaillant
0 siblings, 1 reply; 5+ messages in thread
From: Guillaume Le Vaillant @ 2019-10-17 14:37 UTC (permalink / raw)
To: 37791
Patches:
- build-system/asdf: Fix package transform.
- gnu: sbcl-trivial-mimes: Fix 'fix-paths' phase.
- gnu: Add ecl-trivial-mimes.
- gnu: Add ecl-dexador.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#37791] [PATCH 1/4] build-system/asdf: Fix package transform.
2019-10-17 14:37 [bug#37791] [PATCH 0/4] Some fixes for ecl-* Common Lisp packages Guillaume Le Vaillant
@ 2019-10-17 14:43 ` Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 2/4] gnu: sbcl-trivial-mimes: Fix 'fix-paths' phase Guillaume Le Vaillant
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Guillaume Le Vaillant @ 2019-10-17 14:43 UTC (permalink / raw)
To: 37791; +Cc: Guillaume Le Vaillant
* guix/build-system/asdf.scm (package-with-build-system):
[find-input-package]: New function.
[rewrite]: Use it.
---
guix/build-system/asdf.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/guix/build-system/asdf.scm b/guix/build-system/asdf.scm
index af04084c86..f794bf006b 100644
--- a/guix/build-system/asdf.scm
+++ b/guix/build-system/asdf.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016, 2017 Andy Patterson <ajpatter@uwaterloo.ca>
+;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -32,6 +33,7 @@
#:use-module (ice-9 regex)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26)
+ #:use-module (gnu packages)
#:export (%asdf-build-system-modules
%asdf-build-modules
asdf-build
@@ -160,13 +162,22 @@ set up using CL source package conventions."
(define (has-from-build-system? pkg)
(eq? from-build-system (package-build-system pkg)))
+ (define (find-input-package pkg)
+ (let* ((name (package-name pkg))
+ (new-name (transform-package-name name))
+ (pkgs (find-packages-by-name new-name)))
+ (if (null? pkgs) #f (list-ref pkgs 0))))
+
(define transform
(mlambda (pkg)
(define rewrite
(match-lambda
((name content . rest)
(let* ((is-package? (package? content))
- (new-content (if is-package? (transform content) content)))
+ (new-content (if is-package?
+ (or (find-input-package content)
+ (transform content))
+ content)))
`(,name ,new-content ,@rest)))))
;; Special considerations for source packages: CL inputs become
--
2.23.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#37791] [PATCH 2/4] gnu: sbcl-trivial-mimes: Fix 'fix-paths' phase.
2019-10-17 14:43 ` [bug#37791] [PATCH 1/4] build-system/asdf: Fix package transform Guillaume Le Vaillant
@ 2019-10-17 14:43 ` Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 3/4] gnu: Add ecl-trivial-mimes Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 4/4] gnu: Add ecl-dexador Guillaume Le Vaillant
2 siblings, 0 replies; 5+ messages in thread
From: Guillaume Le Vaillant @ 2019-10-17 14:43 UTC (permalink / raw)
To: 37791; +Cc: Guillaume Le Vaillant
* gnu/packages/lisp.scm (sbcl-trivial-mimes)[arguments]: Use '(%lisp-type)'
instead of hard coded 'sbcl' in 'fix-paths' phase.
---
gnu/packages/lisp.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 2bdebed04e..310522984d 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -5130,7 +5130,9 @@ performance and simplicity in mind.")
((anchor all)
(string-append
anchor "\n"
- "(asdf:system-relative-pathname :trivial-mimes \"../../share/common-lisp/sbcl-source/trivial-mimes/mime.types\")")))))))))
+ "(asdf:system-relative-pathname :trivial-mimes "
+ "\"../../share/common-lisp/" (%lisp-type)
+ "-source/trivial-mimes/mime.types\")")))))))))
(native-inputs
`(("stefil" ,sbcl-hu.dwim.stefil)))
(inputs
--
2.23.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#37791] [PATCH 3/4] gnu: Add ecl-trivial-mimes.
2019-10-17 14:43 ` [bug#37791] [PATCH 1/4] build-system/asdf: Fix package transform Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 2/4] gnu: sbcl-trivial-mimes: Fix 'fix-paths' phase Guillaume Le Vaillant
@ 2019-10-17 14:43 ` Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 4/4] gnu: Add ecl-dexador Guillaume Le Vaillant
2 siblings, 0 replies; 5+ messages in thread
From: Guillaume Le Vaillant @ 2019-10-17 14:43 UTC (permalink / raw)
To: 37791; +Cc: Guillaume Le Vaillant
* gnu/packages/lisp.scm (ecl-trivial-mimes): New variable.
---
gnu/packages/lisp.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 310522984d..a8293dad3a 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -5147,6 +5147,9 @@ mime-type of a file.")
(define-public cl-trivial-mimes
(sbcl-package->cl-source-package sbcl-trivial-mimes))
+(define-public ecl-trivial-mimes
+ (sbcl-package->ecl-package sbcl-trivial-mimes))
+
(define-public sbcl-lack-middleware-static
(let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
(revision "1"))
--
2.23.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#37791] [PATCH 4/4] gnu: Add ecl-dexador.
2019-10-17 14:43 ` [bug#37791] [PATCH 1/4] build-system/asdf: Fix package transform Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 2/4] gnu: sbcl-trivial-mimes: Fix 'fix-paths' phase Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 3/4] gnu: Add ecl-trivial-mimes Guillaume Le Vaillant
@ 2019-10-17 14:43 ` Guillaume Le Vaillant
2 siblings, 0 replies; 5+ messages in thread
From: Guillaume Le Vaillant @ 2019-10-17 14:43 UTC (permalink / raw)
To: 37791; +Cc: Guillaume Le Vaillant
* gnu/packages/lisp.scm (ecl-dexador): New variable.
---
gnu/packages/lisp.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index a8293dad3a..e42a806ff4 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -6256,6 +6256,9 @@ cookie headers, cookie creation, cookie jar creation and more.")
neat APIs and connection-pooling. It is meant to supersede Drakma.")
(license license:expat))))
+(define-public ecl-dexador
+ (sbcl-package->ecl-package sbcl-dexador))
+
(define-public sbcl-lisp-namespace
(let ((commit "28107cafe34e4c1c67490fde60c7f92dc610b2e0")
(revision "1"))
--
2.23.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-10-17 14:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-17 14:37 [bug#37791] [PATCH 0/4] Some fixes for ecl-* Common Lisp packages Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 1/4] build-system/asdf: Fix package transform Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 2/4] gnu: sbcl-trivial-mimes: Fix 'fix-paths' phase Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 3/4] gnu: Add ecl-trivial-mimes Guillaume Le Vaillant
2019-10-17 14:43 ` [bug#37791] [PATCH 4/4] gnu: Add ecl-dexador Guillaume Le Vaillant
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.