[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/19: gnu: belcard: Update to 4.4.34 and enable tests.
From: |
guix-commits |
Subject: |
03/19: gnu: belcard: Update to 4.4.34 and enable tests. |
Date: |
Mon, 29 Mar 2021 01:44:03 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 7a8e17343d3b8fbf394e8ef091852ea54d9fc741
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Mon Mar 15 16:24:20 2021 -0400
gnu: belcard: Update to 4.4.34 and enable tests.
* gnu/packages/linphone.scm (belcard)[source]: Switch to git repository.
[version]: Update to 4.4.34.
[outputs]: Add the tester and debug outputs.
[arguments]: Enable tests.
[phases]{patch-vcard-grammar-location, install-tester, check}: New phases.
Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/linphone.scm | 49 ++++++++++++++++++++++++++++++++++++++---------
1 file changed, 40 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm
index 3e46d23..d164841 100644
--- a/gnu/packages/linphone.scm
+++ b/gnu/packages/linphone.scm
@@ -242,20 +242,51 @@ IETF.")
(define-public belcard
(package
(name "belcard")
- (version "1.0.2")
+ (version "4.4.34")
(source
(origin
- (method url-fetch)
- (uri
- (string-append "https://www.linphone.org/releases/sources/" name
- "/" name "-" version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.linphone.org/BC/public/belcard.git")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0iiyrll1shnbb0561pkvdqcmx9b2cdr76xpsbaqdirc3s4xzcl0k"))))
+ (base32 "16x2xp8d0a115132zhy1kpxkyj86ia7vrsnpjdg78fnbvmvysc8m"))))
(build-system cmake-build-system)
+ (outputs '("out" "debug" "tester"))
(arguments
- `(#:tests? #f ; No test target
- #:configure-flags
- (list "-DENABLE_STATIC=OFF"))) ; Not required
+ `(#:tests? #t
+ #:configure-flags '("-DENABLE_STATIC=OFF")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-vcard-grammar-location
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (vcard-grammar
+ (string-append out "/share/belr/grammars/vcard_grammar")))
+ (substitute* "include/belcard/vcard_grammar.hpp"
+ (("define VCARD_GRAMMAR \"vcard_grammar\"")
+ (format #f "define VCARD_GRAMMAR ~s" vcard-grammar))))))
+ (add-after 'install 'install-tester
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (tester (assoc-ref outputs "tester"))
+ (test-name (string-append ,name "_tester")))
+ (for-each mkdir-p
+ (list (string-append tester "/bin")
+ (string-append tester "/share")))
+ (rename-file (string-append out "/bin/" test-name)
+ (string-append tester "/bin/" test-name))
+ (rename-file (string-append out "/share/" test-name)
+ (string-append tester "/share/" test-name)))))
+ (delete 'check)
+ (add-after 'install-tester 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (let* ((tester (assoc-ref outputs "tester"))
+ (belcard_tester (string-append tester
+ "/bin/belcard_tester")))
+ (invoke belcard_tester))))))))
(inputs
`(("bctoolbox" ,bctoolbox)
("belr" ,belr)))
- branch master updated (414fc58 -> a999325), guix-commits, 2021/03/29
- 19/19: gnu: msamr: Update to 1.1.3-11., guix-commits, 2021/03/29
- 06/19: gnu: mediastreamer2: Update to 4.4.34., guix-commits, 2021/03/29
- 01/19: gnu: bctoolbox: Update to 4.4.34 and enable libdecaf, tests., guix-commits, 2021/03/29
- 11/19: gnu: belle-sip: Enable mDNS support., guix-commits, 2021/03/29
- 16/19: gnu: msopenh264: Update to 1.2.1-21., guix-commits, 2021/03/29
- 04/19: gnu: bzrtp: Update to 4.4.34 and enable tests., guix-commits, 2021/03/29
- 07/19: gnu: mediastreamer2: Enable tests., guix-commits, 2021/03/29
- 18/19: gnu: mswebrtc: Update to 1.1.1-23., guix-commits, 2021/03/29
- 13/19: gnu: liblinphone: Update to 4.4.34., guix-commits, 2021/03/29
- 03/19: gnu: belcard: Update to 4.4.34 and enable tests.,
guix-commits <=
- 12/19: gnu: Add lime., guix-commits, 2021/03/29
- 02/19: gnu: belr: Update to 4.4.34 and enable tests., guix-commits, 2021/03/29
- 14/19: gnu: liblinphone: Enable LDAP support., guix-commits, 2021/03/29
- 10/19: gnu: belle-sip: Enable tests., guix-commits, 2021/03/29
- 15/19: gnu: linphoneqt: Update to 4.2.5 and rename to linphone-desktop., guix-commits, 2021/03/29
- 08/19: gnu: mediastreamer2: Enable PCAP, port-audio and G729B support., guix-commits, 2021/03/29
- 09/19: gnu: belle-sip: Update to 4.4.34., guix-commits, 2021/03/29
- 05/19: gnu: ortp: Update to 4.4.34., guix-commits, 2021/03/29
- 17/19: gnu: mssilk: Update to 1.1.1-8., guix-commits, 2021/03/29