[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/19: guix: svn: Allow dropping externals.
From: |
guix-commits |
Subject: |
18/19: guix: svn: Allow dropping externals. |
Date: |
Wed, 13 Nov 2019 16:50:44 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 277ba1d4f841dcc57a259caeed298567d5143eae
Author: Julien Lepiller <address@hidden>
Date: Mon Oct 21 21:48:31 2019 +0200
guix: svn: Allow dropping externals.
* guix/build/svn.scm (svn-fetch): Allow to ignore externals.
* guix/svn-download.scm (svn-reference, svn-multi-reference): Add
recursive? field.
---
guix/build/svn.scm | 4 ++++
guix/svn-download.scm | 15 +++++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/guix/build/svn.scm b/guix/build/svn.scm
index e3188ad..33783f3 100644
--- a/guix/build/svn.scm
+++ b/guix/build/svn.scm
@@ -31,6 +31,7 @@
(define* (svn-fetch url revision directory
#:key (svn-command "svn")
+ (recursive? #t)
(user-name #f)
(password #f))
"Fetch REVISION from URL into DIRECTORY. REVISION must be an integer, and a
@@ -45,6 +46,9 @@ valid Subversion revision. Return #t on success, #f
otherwise."
(list (string-append "--username=" user-name)
(string-append "--password=" password))
'())
+ ,@(if recursive?
+ '()
+ (list "--ignore-externals"))
,url ,directory))
#t)
diff --git a/guix/svn-download.scm b/guix/svn-download.scm
index 4139cbc..59e2eb8 100644
--- a/guix/svn-download.scm
+++ b/guix/svn-download.scm
@@ -31,6 +31,7 @@
svn-reference?
svn-reference-url
svn-reference-revision
+ svn-reference-recursive?
svn-fetch
download-svn-to-store
@@ -39,6 +40,7 @@
svn-multi-reference-url
svn-multi-reference-revision
svn-multi-reference-locations
+ svn-multi-reference-recursive?
svn-multi-fetch))
;;; Commentary:
@@ -52,10 +54,11 @@
(define-record-type* <svn-reference>
svn-reference make-svn-reference
svn-reference?
- (url svn-reference-url) ; string
- (revision svn-reference-revision) ; number
- (user-name svn-reference-user-name (default #f))
- (password svn-reference-password (default #f)))
+ (url svn-reference-url) ; string
+ (revision svn-reference-revision) ; number
+ (recursive? svn-reference-recursive? (default #t))
+ (user-name svn-reference-user-name (default #f))
+ (password svn-reference-password (default #f)))
(define (subversion-package)
"Return the default Subversion package."
@@ -78,6 +81,7 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a
generic name if #f."
'#$(svn-reference-revision ref)
#$output
#:svn-command (string-append #+svn "/bin/svn")
+ #:recursive? #$(svn-reference-recursive? ref)
#:user-name #$(svn-reference-user-name ref)
#:password #$(svn-reference-password ref)))))
@@ -96,6 +100,7 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a
generic name if #f."
(url svn-multi-reference-url) ; string
(revision svn-multi-reference-revision) ; number
(locations svn-multi-reference-locations) ; list of strings
+ (recursive? svn-multi-reference-recursive? (default #t))
(user-name svn-multi-reference-user-name (default #f))
(password svn-multi-reference-password (default #f)))
@@ -125,6 +130,8 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a
generic name if #f."
(string-append #$output "/" location)
(string-append #$output "/" (dirname
location)))
#:svn-command (string-append #+svn "/bin/svn")
+ #:recursive?
+ #$(svn-multi-reference-recursive? ref)
#:user-name #$(svn-multi-reference-user-name ref)
#:password #$(svn-multi-reference-password ref)))
'#$(svn-multi-reference-locations ref)))))
- 05/19: gnu: Add java-xmp., (continued)
- 05/19: gnu: Add java-xmp., guix-commits, 2019/11/13
- 06/19: gnu: Add java-metadata-extractor., guix-commits, 2019/11/13
- 08/19: gnu: Add java-openjfx-build., guix-commits, 2019/11/13
- 15/19: gnu: Add java-commons-pool., guix-commits, 2019/11/13
- 10/19: gnu: Add java-openjfx-graphics., guix-commits, 2019/11/13
- 09/19: gnu: Add java-openjfx-base., guix-commits, 2019/11/13
- 11/19: gnu: Add java-openjfx-media., guix-commits, 2019/11/13
- 14/19: gnu: Add java-jboss-transaction-api-spec., guix-commits, 2019/11/13
- 16/19: gnu: Add java-commons-dbcp., guix-commits, 2019/11/13
- 12/19: gnu: Add java-jmapviewer., guix-commits, 2019/11/13
- 18/19: guix: svn: Allow dropping externals.,
guix-commits <=
- 17/19: gnu: Add java-commons-jcs., guix-commits, 2019/11/13
- 19/19: gnu: Add josm., guix-commits, 2019/11/13
- 13/19: gnu: Add java-svg-salamander., guix-commits, 2019/11/13