unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Gentoo ebuild for notmuch
@ 2009-11-19  8:11 James Rowe
  2009-11-20  9:39 ` Carl Worth
  0 siblings, 1 reply; 5+ messages in thread
From: James Rowe @ 2009-11-19  8:11 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

Hi,

  Just in case other Gentoo users are trying notmuch out I thought I'd post my
ebuild(perhaps you'll make it better for me too :).  It is working well up to
at least e5da2b70.

  I won't bother the list if it requires changes, as it is available from my
main overlay[1] if you wish to check for updated versions.

Thanks,

James
  1. http://github.com/JNRowe/misc-overlay/tree/master/mail-client/notmuch/


[-- Attachment #2: notmuch-9999.ebuild --]
[-- Type: text/plain, Size: 1316 bytes --]

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit toolchain-funcs elisp-common bash-completion git

EGIT_REPO_URI="git://notmuchmail.org/git/${PN}"

DESCRIPTION="Thread-based email index, search and tagging."
HOMEPAGE="http://notmuchmail.org/"
SRC_URI=""

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="emacs"

DEPEND="dev-util/pkgconfig
	${RDEPEND}"
RDEPEND="sys-libs/talloc
	dev-libs/gmime
	dev-libs/xapian
	emacs? ( virtual/emacs )"

SITEFILE="50${PN}-gentoo.el"

src_prepare() {
	# Change ordering in case people are using as-needed
	sed -i 's,\($(LDFLAGS)\)\(.*\),\2 \1,' Makefile.local
}

src_compile() {
	emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" \
		|| die "emake failed"

	if use emacs; then
		elisp-compile ${PN}.el || die "elisp-compile failed"
	fi
}

src_install() {
	# Don't use make install, because it installs compressed man pages,
	# bash-completion in the wrong location and emacs files unconditionally.
	# Three commands are quicker than patching Makefile.local locally.
	dobin ${PN}
	doman ${PN}.1
	dobashcompletion notmuch-completion.bash ${PN}

	dodoc AUTHORS README TODO

	if use emacs; then
		elisp-install ${PN}{,.el}
		elisp-site-file-install "${FILESDIR}/${SITEFILE}"
	fi
}

[-- Attachment #3: 50notmuch-gentoo.el --]
[-- Type: text/plain, Size: 115 bytes --]

; notmuch site-list config

(add-to-list 'load-path "@SITELISP@")
(autoload 'notmuch "notmuch" "Start notmuch" t)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gentoo ebuild for notmuch
  2009-11-19  8:11 Gentoo ebuild for notmuch James Rowe
@ 2009-11-20  9:39 ` Carl Worth
  2009-11-20 16:09   ` James Rowe
  0 siblings, 1 reply; 5+ messages in thread
From: Carl Worth @ 2009-11-20  9:39 UTC (permalink / raw)
  To: James Rowe, notmuch

On Thu, 19 Nov 2009 00:11:46 -0800 (PST), James Rowe <jnrowe@gmail.com> wrote:
>   Just in case other Gentoo users are trying notmuch out I thought I'd post my
> ebuild(perhaps you'll make it better for me too :).  It is working well up to
> at least e5da2b70.

Hi James,

Thanks for your contribution.

>   I won't bother the list if it requires changes, as it is available from my
> main overlay[1] if you wish to check for updated versions.

If you think it makes sense, I can add this to the notmuch repository in
a packaging/gentoo directory. Just let me know if you'd like that.

-Carl

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] Make bash completion directory configurable.
  2009-11-20 16:09   ` James Rowe
@ 2009-11-20 15:28     ` James Rowe
  2009-11-20 23:15     ` Gentoo ebuild for notmuch Carl Worth
  1 sibling, 0 replies; 5+ messages in thread
From: James Rowe @ 2009-11-20 15:28 UTC (permalink / raw)
  To: notmuch

Some systems install completion scripts in /usr/share/bash-completion, make the
location configurable from Makefile.config.
---
 Makefile.config |    1 +
 Makefile.local  |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.config b/Makefile.config
index 63c90a8..d72a39e 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -1 +1,2 @@
 prefix = /usr/local
+bash_completion_dir = /etc/bash_completion.d
diff --git a/Makefile.local b/Makefile.local
index ecd4ceb..1017a8c 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -27,14 +27,14 @@ notmuch.1.gz: notmuch.1
 
 install: all notmuch.1.gz
 	for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \
-		$(DESTDIR)/etc/bash_completion.d/ ; \
+		$(DESTDIR)$(bash_completion_dir) ; \
 	do \
 		install -d $$d ; \
 	done ;
 	install notmuch $(DESTDIR)$(prefix)/bin/
 	install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/
 	install notmuch-completion.bash \
-		$(DESTDIR)/etc/bash_completion.d/notmuch
+		$(DESTDIR)$(bash_completion_dir)/notmuch
 
 install-emacs: install emacs
 	for d in $(DESTDIR)/$(emacs_lispdir) ; \
-- 
1.6.4.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Gentoo ebuild for notmuch
  2009-11-20  9:39 ` Carl Worth
@ 2009-11-20 16:09   ` James Rowe
  2009-11-20 15:28     ` [PATCH] Make bash completion directory configurable James Rowe
  2009-11-20 23:15     ` Gentoo ebuild for notmuch Carl Worth
  0 siblings, 2 replies; 5+ messages in thread
From: James Rowe @ 2009-11-20 16:09 UTC (permalink / raw)
  To: Carl Worth, notmuch

On Fri, 20 Nov 2009 10:39:35 +0100, Carl Worth <cworth@cworth.org> wrote:
> If you think it makes sense, I can add this to the notmuch repository in
> a packaging/gentoo directory. Just let me know if you'd like that.

  Hmm... The problem is the ebuild can't currently use the install
target because the file locations are incorrect for Gentoo[1]. Which
means it could require quite a bit of churn to keep it synced as the
build process changes.

  The patch that follows makes it easier to use the install target
within the ebuild. If this sort of change is acceptable then the ebuild
will be simpler, and it is more likely to stay working without me
kicking heaps of patches at you. Given that I'd say "yes, please include
it."

Thanks,

James
 1. fex. Bash completion files are installed in to
    /usr/share/bash-completion, then enabled via a link in
    /etc/bash_completion.d if desired

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gentoo ebuild for notmuch
  2009-11-20 16:09   ` James Rowe
  2009-11-20 15:28     ` [PATCH] Make bash completion directory configurable James Rowe
@ 2009-11-20 23:15     ` Carl Worth
  1 sibling, 0 replies; 5+ messages in thread
From: Carl Worth @ 2009-11-20 23:15 UTC (permalink / raw)
  To: James Rowe, notmuch

On Fri, 20 Nov 2009 16:09:54 +0000, James Rowe <jnrowe@gmail.com> wrote:
>   The patch that follows makes it easier to use the install target
> within the ebuild. If this sort of change is acceptable then the ebuild
> will be simpler, and it is more likely to stay working without me
> kicking heaps of patches at you. Given that I'd say "yes, please include
> it."

That change looks just fine to me. Pushed now.

Feel free to send me more if you'd like it integrated to our repository.

-Carl

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-20 23:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19  8:11 Gentoo ebuild for notmuch James Rowe
2009-11-20  9:39 ` Carl Worth
2009-11-20 16:09   ` James Rowe
2009-11-20 15:28     ` [PATCH] Make bash completion directory configurable James Rowe
2009-11-20 23:15     ` Gentoo ebuild for notmuch Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).