From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al McElrath Subject: [PATCH] gnu: Add notmuch-addrlookup-c. Date: Tue, 09 Feb 2016 23:51:05 -0800 Message-ID: <87r3glm2ae.fsf@atonesir.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTPYh-0003je-Bx for guix-devel@gnu.org; Wed, 10 Feb 2016 02:51:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTPYe-0006za-5n for guix-devel@gnu.org; Wed, 10 Feb 2016 02:51:31 -0500 Received: from atonesir.com ([23.239.4.175]:42553 helo=mail.atonesir.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTPYd-0006fx-W9 for guix-devel@gnu.org; Wed, 10 Feb 2016 02:51:28 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.atonesir.com (Postfix) with ESMTPSA id F080E220EB for ; Wed, 10 Feb 2016 07:51:05 +0000 (UTC) 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Hello, First package here. Please advise. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-notmuch-addrlookup-c.patch Content-Transfer-Encoding: quoted-printable >From 6db39ac748414cd91c9dd2ab1c2379fdca15e41d Mon Sep 17 00:00:00 2001 From: Al McElrath Date: Tue, 9 Feb 2016 12:07:30 -0800 Subject: [PATCH] gnu: Add notmuch-addrlookup-c. * gnu/packages/mail.scm (notmuch-addrlookup-c): New variable. --- gnu/packages/mail.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index d41479e..a61df06 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -10,6 +10,7 @@ ;;; Copyright =C2=A9 2015 Andreas Enge ;;; Copyright =C2=A9 2015, 2016 Efraim Flashner ;;; Copyright =C2=A9 2016 Christopher Allan Webber +;;; Copyright =C2=A9 2016 Al McElrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -414,6 +415,46 @@ attachments, create new maildirs, and so on.") ing, and tagging large collections of email messages.") (license gpl3+))) =20 +(define-public notmuch-addrlookup-c + (package + (name "notmuch-addrlookup-c") + (version "v7") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/aperezdc/" name "/archive/" + version ".tar.gz")) + (sha256 + (base32 + "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ;; no tests + #:make-flags (list "CC=3Dgcc" + (string-append "PREFIX=3D" + (assoc-ref %outputs "out"))) + #:phases (modify-phases %standard-phases + (delete 'configure) + (add-before 'patch-source-shebangs 'delete-ycm-file + (lambda _ (delete-file ".ycm_extra_conf.py")= )) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append + (assoc-ref outputs "out") "/bin/"= )) + (na "notmuch-addrlookup")) + (mkdir-p bin) + (copy-file na (string-append bin na)))))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("glib" ,glib) + ("notmuch" ,notmuch))) + (home-page "https://github.com/aperezdc/notmuch-addrlookup-c") + (synopsis "Address lookup tool for Notmuch in C") + (description "This is an address lookup tool using a Notmuch database, +useful for email address completion in emacs.") + (license license:expat))) + (define-public python2-notmuch (package (name "python2-notmuch") --=20 2.5.0 --=-=-=--