* [PATCH] gnu: Add notmuch-addrlookup-c.
@ 2016-02-10 7:51 Al McElrath
2016-02-10 20:10 ` Leo Famulari
0 siblings, 1 reply; 4+ messages in thread
From: Al McElrath @ 2016-02-10 7:51 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 45 bytes --]
Hello,
First package here. Please advise.
[-- Attachment #2: 0001-gnu-Add-notmuch-addrlookup-c.patch --]
[-- Type: text/x-diff, Size: 2868 bytes --]
From 6db39ac748414cd91c9dd2ab1c2379fdca15e41d Mon Sep 17 00:00:00 2001
From: Al McElrath <hello@yrns.org>
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 © 2015 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
+;;; Copyright © 2016 Al McElrath <hello@yrns.org>
;;;
;;; 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+)))
+(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=gcc"
+ (string-append "PREFIX="
+ (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")
--
2.5.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] gnu: Add notmuch-addrlookup-c.
2016-02-10 7:51 [PATCH] gnu: Add notmuch-addrlookup-c Al McElrath
@ 2016-02-10 20:10 ` Leo Famulari
2016-02-10 21:30 ` Al McElrath
0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-02-10 20:10 UTC (permalink / raw)
To: Al McElrath; +Cc: guix-devel
On Tue, Feb 09, 2016 at 11:51:05PM -0800, Al McElrath wrote:
>
> Hello,
>
> First package here. Please advise.
Thanks for the patch!
> From 6db39ac748414cd91c9dd2ab1c2379fdca15e41d Mon Sep 17 00:00:00 2001
> From: Al McElrath <hello@yrns.org>
> 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.
[...]
> + (version "v7")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append
> + "https://github.com/aperezdc/" name "/archive/"
> + version ".tar.gz"))
GitHub automatically creates these "v*" version identifiers, but in this
case, upstream's changelog describes the version as "7", so let's use
that, and adjust the URI accordingly.
You'll also need to set the file-name of the downloaded source, as done
in commit f1957fc145. Otherwise the tarball's name does not include the
package name. (This is noticed by the linter).
> + (sha256
> + (base32
> + "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri"))))
> + (build-system gnu-build-system)
> + (arguments
> + '(#:tests? #f ;; no tests
This comment can use one ';'.
https://www.gnu.org/software/guile/manual/html_node/Comments.html
> + #:make-flags (list "CC=gcc"
> + (string-append "PREFIX="
> + (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")))
Can you add a brief comment explaining this deletion?
> + (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))))))))
We have a procedure install-file that combines mkdir-p and copy-file.
Can you use that?
> + (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")
I don't think it's necessary to mention the language of implementation.
> + (description "This is an address lookup tool using a Notmuch database,
> +useful for email address completion in emacs.")
Similarly, I don't think it's necessary to mention that it can be used
with Emacs.
It looks good to me with these changes. Can you submit a revised patch?
> + (license license:expat)))
> +
> (define-public python2-notmuch
> (package
> (name "python2-notmuch")
> --
> 2.5.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gnu: Add notmuch-addrlookup-c.
2016-02-10 20:10 ` Leo Famulari
@ 2016-02-10 21:30 ` Al McElrath
2016-02-10 22:12 ` Leo Famulari
0 siblings, 1 reply; 4+ messages in thread
From: Al McElrath @ 2016-02-10 21:30 UTC (permalink / raw)
To: Leo Famulari; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 55 bytes --]
Thanks for the feedback. A revised patch is attached.
[-- Attachment #2: 0001-gnu-Add-notmuch-addrlookup-c.patch --]
[-- Type: text/x-diff, Size: 2939 bytes --]
From 910e61b6ca8921b521c98bcb2d4ba6d64bcf79bf Mon Sep 17 00:00:00 2001
From: Al McElrath <hello@yrns.org>
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 | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index d41479e..5a9f420 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -10,6 +10,7 @@
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
+;;; Copyright © 2016 Al McElrath <hello@yrns.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -414,6 +415,47 @@ attachments, create new maildirs, and so on.")
ing, and tagging large collections of email messages.")
(license gpl3+)))
+(define-public notmuch-addrlookup-c
+ (package
+ (name "notmuch-addrlookup-c")
+ (version "7")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/aperezdc/" name "/archive/v"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:tests? #f ; no tests
+ #:make-flags (list "CC=gcc"
+ (string-append "PREFIX="
+ (assoc-ref %outputs "out")))
+ #:phases (modify-phases %standard-phases
+ (delete 'configure)
+ ;; Remove vim code completion config, it's not needed to
+ ;; build (or be patched).
+ (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")))
+ (install-file "notmuch-addrlookup" bin)))))))
+ (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")
+ (description "This is an address lookup tool using a Notmuch database,
+useful for email address completion.")
+ (license license:expat)))
+
(define-public python2-notmuch
(package
(name "python2-notmuch")
--
2.5.0
[-- Attachment #3: Type: text/plain, Size: 3246 bytes --]
Leo Famulari <leo@famulari.name> writes:
> On Tue, Feb 09, 2016 at 11:51:05PM -0800, Al McElrath wrote:
>>
>> Hello,
>>
>> First package here. Please advise.
>
> Thanks for the patch!
>
>> From 6db39ac748414cd91c9dd2ab1c2379fdca15e41d Mon Sep 17 00:00:00 2001
>> From: Al McElrath <hello@yrns.org>
>> 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.
>
> [...]
>
>> + (version "v7")
>> + (source (origin
>> + (method url-fetch)
>> + (uri (string-append
>> + "https://github.com/aperezdc/" name "/archive/"
>> + version ".tar.gz"))
>
> GitHub automatically creates these "v*" version identifiers, but in this
> case, upstream's changelog describes the version as "7", so let's use
> that, and adjust the URI accordingly.
>
> You'll also need to set the file-name of the downloaded source, as done
> in commit f1957fc145. Otherwise the tarball's name does not include the
> package name. (This is noticed by the linter).
>
>> + (sha256
>> + (base32
>> + "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri"))))
>> + (build-system gnu-build-system)
>> + (arguments
>> + '(#:tests? #f ;; no tests
>
> This comment can use one ';'.
> https://www.gnu.org/software/guile/manual/html_node/Comments.html
>
>> + #:make-flags (list "CC=gcc"
>> + (string-append "PREFIX="
>> + (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")))
>
> Can you add a brief comment explaining this deletion?
>
>> + (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))))))))
>
> We have a procedure install-file that combines mkdir-p and copy-file.
> Can you use that?
>
>> + (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")
>
> I don't think it's necessary to mention the language of implementation.
>
>> + (description "This is an address lookup tool using a Notmuch database,
>> +useful for email address completion in emacs.")
>
> Similarly, I don't think it's necessary to mention that it can be used
> with Emacs.
>
> It looks good to me with these changes. Can you submit a revised patch?
>
>> + (license license:expat)))
>> +
>> (define-public python2-notmuch
>> (package
>> (name "python2-notmuch")
>> --
>> 2.5.0
>>
>
>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] gnu: Add notmuch-addrlookup-c.
2016-02-10 21:30 ` Al McElrath
@ 2016-02-10 22:12 ` Leo Famulari
0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-02-10 22:12 UTC (permalink / raw)
To: Al McElrath; +Cc: guix-devel
On Wed, Feb 10, 2016 at 01:30:20PM -0800, Al McElrath wrote:
> Thanks for the feedback. A revised patch is attached.
>
Thank you! Pushed as 8a75c589aac.
> From 910e61b6ca8921b521c98bcb2d4ba6d64bcf79bf Mon Sep 17 00:00:00 2001
> From: Al McElrath <hello@yrns.org>
> 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 | 42 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
>
> diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
> index d41479e..5a9f420 100644
> --- a/gnu/packages/mail.scm
> +++ b/gnu/packages/mail.scm
> @@ -10,6 +10,7 @@
> ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
> ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
> ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
> +;;; Copyright © 2016 Al McElrath <hello@yrns.org>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -414,6 +415,47 @@ attachments, create new maildirs, and so on.")
> ing, and tagging large collections of email messages.")
> (license gpl3+)))
>
> +(define-public notmuch-addrlookup-c
> + (package
> + (name "notmuch-addrlookup-c")
> + (version "7")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append
> + "https://github.com/aperezdc/" name "/archive/v"
> + version ".tar.gz"))
> + (file-name (string-append name "-" version ".tar.gz"))
> + (sha256
> + (base32
> + "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri"))))
> + (build-system gnu-build-system)
> + (arguments
> + '(#:tests? #f ; no tests
> + #:make-flags (list "CC=gcc"
> + (string-append "PREFIX="
> + (assoc-ref %outputs "out")))
> + #:phases (modify-phases %standard-phases
> + (delete 'configure)
> + ;; Remove vim code completion config, it's not needed to
> + ;; build (or be patched).
> + (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")))
> + (install-file "notmuch-addrlookup" bin)))))))
> + (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")
> + (description "This is an address lookup tool using a Notmuch database,
> +useful for email address completion.")
> + (license license:expat)))
> +
> (define-public python2-notmuch
> (package
> (name "python2-notmuch")
> --
> 2.5.0
>
>
> Leo Famulari <leo@famulari.name> writes:
>
> > On Tue, Feb 09, 2016 at 11:51:05PM -0800, Al McElrath wrote:
> >>
> >> Hello,
> >>
> >> First package here. Please advise.
> >
> > Thanks for the patch!
> >
> >> From 6db39ac748414cd91c9dd2ab1c2379fdca15e41d Mon Sep 17 00:00:00 2001
> >> From: Al McElrath <hello@yrns.org>
> >> 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.
> >
> > [...]
> >
> >> + (version "v7")
> >> + (source (origin
> >> + (method url-fetch)
> >> + (uri (string-append
> >> + "https://github.com/aperezdc/" name "/archive/"
> >> + version ".tar.gz"))
> >
> > GitHub automatically creates these "v*" version identifiers, but in this
> > case, upstream's changelog describes the version as "7", so let's use
> > that, and adjust the URI accordingly.
> >
> > You'll also need to set the file-name of the downloaded source, as done
> > in commit f1957fc145. Otherwise the tarball's name does not include the
> > package name. (This is noticed by the linter).
> >
> >> + (sha256
> >> + (base32
> >> + "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri"))))
> >> + (build-system gnu-build-system)
> >> + (arguments
> >> + '(#:tests? #f ;; no tests
> >
> > This comment can use one ';'.
> > https://www.gnu.org/software/guile/manual/html_node/Comments.html
> >
> >> + #:make-flags (list "CC=gcc"
> >> + (string-append "PREFIX="
> >> + (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")))
> >
> > Can you add a brief comment explaining this deletion?
> >
> >> + (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))))))))
> >
> > We have a procedure install-file that combines mkdir-p and copy-file.
> > Can you use that?
> >
> >> + (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")
> >
> > I don't think it's necessary to mention the language of implementation.
> >
> >> + (description "This is an address lookup tool using a Notmuch database,
> >> +useful for email address completion in emacs.")
> >
> > Similarly, I don't think it's necessary to mention that it can be used
> > with Emacs.
> >
> > It looks good to me with these changes. Can you submit a revised patch?
> >
> >> + (license license:expat)))
> >> +
> >> (define-public python2-notmuch
> >> (package
> >> (name "python2-notmuch")
> >> --
> >> 2.5.0
> >>
> >
> >
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-10 22:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10 7:51 [PATCH] gnu: Add notmuch-addrlookup-c Al McElrath
2016-02-10 20:10 ` Leo Famulari
2016-02-10 21:30 ` Al McElrath
2016-02-10 22:12 ` Leo Famulari
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.