From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Gradl Subject: Re: [PATCH] Add libiax Date: Mon, 30 May 2016 14:50:02 -0500 Message-ID: <878tyrwck5.fsf@openmailbox.org> References: <87shx17pbq.fsf@openmailbox.org> <20160529005554.GA20220@jasmine> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7TCa-0006m0-3s for guix-devel@gnu.org; Mon, 30 May 2016 15:50:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7TCV-00014B-Cm for guix-devel@gnu.org; Mon, 30 May 2016 15:50:15 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:52629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7TCV-000142-4w for guix-devel@gnu.org; Mon, 30 May 2016 15:50:11 -0400 In-Reply-To: <20160529005554.GA20220@jasmine> (Leo Famulari's message of "Sat, 28 May 2016 20:55:54 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Leo Famulari writes: > On Sat, May 28, 2016 at 06:08:57PM -0500, Lukas Gradl wrote: >> + #:use-module (gnu packages autotools) > ^ > Also, there is some extra whitespace at the end of the line above. > Oops! Good catch! >> + (uri >> + (string-append >> + "https://gitlab.savoirfairelinux.com/sflphone/libiax2/" >> + "repository/archive.tar.gz?ref=" >> + commit)) > > Can you use (file-name ...) to make the file-name like > libiax-version.tar.gz? > I updated this in the attached patch. Thank you for your review! --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-telephony-Add-libiax.patch Content-Transfer-Encoding: quoted-printable >From 581f899fe2ff3db7151b5d488dc00c77ca9602bd Mon Sep 17 00:00:00 2001 From: Lukas Gradl Date: Mon, 30 May 2016 14:40:51 -0500 Subject: [PATCH] gnu: telephony: Add libiax. * gnu/packages/telephony.scm (libiax): New variable. --- gnu/packages/telephony.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index 50a83fb..0f43e79 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -3,6 +3,7 @@ ;;; Copyright =C2=A9 2015 Andreas Enge ;;; Copyright =C2=A9 2015 David Hashe ;;; Copyright =C2=A9 2015 Efraim Flashner +;;; Copyright =C2=A9 2016 Lukas Gradl ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,6 +22,7 @@ =20 (define-module (gnu packages telephony) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages gnupg) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) @@ -211,3 +213,37 @@ Real-time Transport Protocol (SRTP), the Universal Sec= urity Transform (UST), and a supporting cryptographic kernel.") (home-page "https://github.com/cisco/libsrtp") (license bsd-3))) + +(define-public libiax + (let ((commit "0e5980f1d78ce462e2d1ed6bc39ff35c8341f201")) + ;; This is the commit used by the Ring Project. + (package + (name "libiax") + (version (string-append "0.0.0-1." (string-take commit 7))) + (source + (origin + (method url-fetch) + (uri + (string-append + "https://gitlab.savoirfairelinux.com/sflphone/libiax2/" + "repository/archive.tar.gz?ref=3D" + commit)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0cj5293bixp3k5x3hjwyd0iq7z8w5p7yavxvvkqk5817hjq386y2")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool))) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'configure 'autoconf + (lambda _ + (zero? (system* "autoreconf" "-vfi"))))))) + (home-page "https://gitlab.savoirfairelinux.com/sflphone/libiax2") + (synopsis "Inter-Asterisk-Protocol library") + (description "LibIAX implements the Inter-Asterisk-Protocol for rela= ying +Voice-over-IP (VoIP) communications.") + (license lgpl2.0)))) --=20 2.7.4 --=-=-=--