[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/12: gnu: swaks: Use git source.
From: |
guix-commits |
Subject: |
05/12: gnu: swaks: Use git source. |
Date: |
Thu, 15 Oct 2020 21:02:34 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit ad8cdc7b89d8f2d4406c70d3833f77f2f4cb20e4
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Thu Oct 15 20:46:57 2020 +0200
gnu: swaks: Use git source.
* gnu/packages/mail.scm (swaks)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
[argument]: Add a ‘set-build_version’ phase.
Adjust the POD file name.
---
gnu/packages/mail.scm | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 87e45fa..e49a8bd 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -3233,13 +3233,13 @@ on the fly. Both programs are written in C and are
very fast.")
(version "20190914.0")
(source
(origin
- (method url-fetch)
- (uri (string-append
- "https://jetmore.org/john/code/swaks/files/swaks-"
- version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jetmore/swaks")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "12awq5z4sdd54cxprj834zajxhkpy4jwhzf1fhigcx1zbhdaacsp"))))
+ (base32 "0xd3952mm8r0nj32rhvciiaq8cx4hxvr7nqpv4njq18q6gv13qby"))))
(build-system perl-build-system)
(inputs
`(("perl-io-socket-inet6" ,perl-io-socket-inet6)
@@ -3250,10 +3250,15 @@ on the fly. Both programs are written in C and are
very fast.")
`(#:tests? #f ; no tests
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'set-build_version
+ (lambda _
+ (substitute* "swaks"
+ (("\"DEVRELEASE\"") (format #f "\"~a\"" ,version)))
+ #true))
(delete 'configure)
(replace 'build
(lambda _
- (invoke "pod2man" "doc/ref.pod" "swaks.1")))
+ (invoke "pod2man" "doc/base.pod" "swaks.1")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
- branch master updated (4caa84e -> e4089b8), guix-commits, 2020/10/15
- 02/12: gnu: knot-resolver: Build with only knot:lib., guix-commits, 2020/10/15
- 03/12: gnu: asunder: Update to 2.9.7., guix-commits, 2020/10/15
- 01/12: gnu: knot: Build separate outputs., guix-commits, 2020/10/15
- 04/12: gnu: fakeroot: Update to 1.25.3., guix-commits, 2020/10/15
- 05/12: gnu: swaks: Use git source.,
guix-commits <=
- 07/12: gnu: perl-email-sender: Update to 1.300035., guix-commits, 2020/10/15
- 09/12: gnu: xterm: Update to 361., guix-commits, 2020/10/15
- 10/12: gnu: chirp: Update to 20201014., guix-commits, 2020/10/15
- 08/12: gnu: praat: Update to 6.1.27., guix-commits, 2020/10/15
- 12/12: gnu: perl-role-tiny: Update to 2.001004., guix-commits, 2020/10/15
- 11/12: gnu: dmidecode: Update to 3.3., guix-commits, 2020/10/15
- 06/12: gnu: swaks: Update to 20201014.0., guix-commits, 2020/10/15