From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDXCH-0002p5-LK for guix-patches@gnu.org; Tue, 01 May 2018 11:28:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDXCE-0005JR-GH for guix-patches@gnu.org; Tue, 01 May 2018 11:28:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37901) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDXCE-0005JN-CT for guix-patches@gnu.org; Tue, 01 May 2018 11:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fDXCE-0005Uu-78 for guix-patches@gnu.org; Tue, 01 May 2018 11:28:02 -0400 Subject: [bug#31331] [PATCH 1/2] gnu: Add bitlbee-discord. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDU2i-0005Ka-Bk for guix-patches@gnu.org; Tue, 01 May 2018 08:06:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDU2e-0001ye-C3 for guix-patches@gnu.org; Tue, 01 May 2018 08:06:00 -0400 Received: from 10.mo1.mail-out.ovh.net ([178.32.96.102]:45678) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDU2e-0001xv-4s for guix-patches@gnu.org; Tue, 01 May 2018 08:05:56 -0400 Received: from player773.ha.ovh.net (unknown [10.109.122.86]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id 8C7F0F2147 for ; Tue, 1 May 2018 14:05:53 +0200 (CEST) From: Pierre-Antoine Rouby Date: Tue, 1 May 2018 14:05:35 +0200 Message-Id: <20180501120535.13961-1-contact@parouby.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31331@debbugs.gnu.org Cc: Pierre-Antoine Rouby * gnu/packages/messaging.scm (bitlbee-discord): New variable. (bitlbee): Add 'install-lib' phase. --- gnu/packages/messaging.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index fd1c330ce..d6bd588cb 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -14,6 +14,7 @@ ;;; Copyright =C2=A9 2017 Theodoros Foradis ;;; Copyright =C2=A9 2017 Rutger Helling ;;; Copyright =C2=A9 2018 Leo Famulari +;;; Copyright =C2=A9 2018 Pierre-Antoine Rouby ;;; ;;; This file is part of GNU Guix. ;;; @@ -181,6 +182,9 @@ end-to-end encryption.") (add-after 'install 'install-etc (lambda* (#:key (make-flags '()) #:allow-other-keys) (zero? (apply system* "make" "install-etc" make-flags)))) + (add-after 'install-etc 'install-lib + (lambda* (#:key (make-flags '()) #:allow-other-keys) + (zero? (apply system* "make" "install-dev" make-flags)))) (replace 'configure ;; bitlbee's configure script does not tolerate many of the ;; variable settings that Guix would pass to it. @@ -199,6 +203,52 @@ identi.ca and status.net).") (home-page "http://www.bitlbee.org/") (license (list license:gpl2+ license:bsd-2)))) =20 +(define-public bitlbee-discord + (package + (name "bitlbee-discord") + (version "0.4.1") + (source (origin + (method url-fetch) + (uri + (string-append + "https://github.com/sm00th/bitlbee-discord/" + "archive/" version ".tar.gz")) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1bwqxlg6fwj3749y7w69n9jwsdzf5nl9xqiszbpv9k8x1422i1y1"))= )) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'autogen + (lambda _ + (invoke "sh" "autogen.sh"))) + (add-before 'configure 'bash-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (substitute* "configure" + (("\\$SHELL") (string-append (assoc-ref inputs "bash") + "/bin/sh"))))) + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (invoke "./configure" + (string-append "--with-plugindir=3D" + (assoc-ref outputs "out") + "/lib/bitlbee/"))))))) + (inputs `(("glib" ,glib))) + (native-inputs `(("pkg-config" ,pkg-config) + ("autoconf" ,autoconf) + ("automake" ,automake) + ("texinfo" ,texinfo) + ("libtool" ,libtool) + ("bitlbee" ,bitlbee) + ("bash" ,bash))) + (synopsis "IRC to instant messaging gateway discord plugin") + (description "This package is plugin for bitlbee IRC to other messag= ing +gateway.") + (home-page "http://www.bitlbee.org/") + (license license:gpl2+))) + (define-public hexchat (package (name "hexchat") --=20 2.17.0