From: Amadeusz Żołnowski Date: Mon, 24 Oct 2011 00:03:22 +0000 (+0000) Subject: app-text/notmuch: New package, version 0.9. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a5ed7e3042d66f9588361eb4fda14b70f6446d7;p=gentoo.git app-text/notmuch: New package, version 0.9. Initial ebuild without python and ruby bindings yet. Package-Manager: portage-2.1.10.29/cvs/Linux x86_64 --- diff --git a/app-text/notmuch/ChangeLog b/app-text/notmuch/ChangeLog new file mode 100644 index 000000000000..6033206cd7d7 --- /dev/null +++ b/app-text/notmuch/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-text/notmuch +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/notmuch/ChangeLog,v 1.1 2011/10/24 00:03:22 aidecoe Exp $ + +*notmuch-0.9 (23 Oct 2011) + + 23 Oct 2011; Amadeusz Å»ołnowski + +files/0.9-fix-lib-makefile-local.patch, +notmuch-0.9.ebuild, +metadata.xml: + Initial ebuild without python and ruby bindings yet. + diff --git a/app-text/notmuch/Manifest b/app-text/notmuch/Manifest new file mode 100644 index 000000000000..cce88f9e4eb2 --- /dev/null +++ b/app-text/notmuch/Manifest @@ -0,0 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 0.9-fix-lib-makefile-local.patch 1897 RMD160 a5cb4d7fdb0a47e19cd5c73894400c90b470b897 SHA1 929983d5551d90393552f45e3fad4d197941468c SHA256 ce2a844ac18b3ef1059c44998e521df0594824383742a7e2d12069d9a45621e9 +DIST notmuch-0.9.tar.gz 398868 RMD160 b956ceb629943bfa65c1c6fab6b10dc78639588b SHA1 988e93545880e9465380383f00d591d8a23c61dd SHA256 e6f1046941d2894d143cb7c19d4810f97946f98742f6d9b8a7208ddb858c57e4 +EBUILD notmuch-0.9.ebuild 1321 RMD160 bdd8e3ce2b5a047796fa207fe1e709148031b4c7 SHA1 5649749f137c4fee8173aa304609f3abb9572f77 SHA256 bfc8f56dac2c1abacbf95c97dd0ca34ac952c264e6934f8846e5c614e2bad0f9 +MISC ChangeLog 426 RMD160 3d0480407a94316dccc44d7c37bf5f7e93a45901 SHA1 af2e579b7b078db28b38c941de1f58e7be765fb7 SHA256 dfef8401f6374a4f69cad88c30d3e54f171f282ece4557cddf69f3fdb407aaea +MISC metadata.xml 627 RMD160 f2cc57d77e2c7bfd188e7883d3966a3f1a0ca441 SHA1 09143e8aa79e0e17142a74b3d1a200a53e67b2ba SHA256 d868e95af15996458f4e28c1694e93357d51054883435b7874984e910ed38147 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iQEcBAEBAgAGBQJOpKtQAAoJEPATRTHh2/q1EHIH/iHDHlXbapRYDHRFVhXz0weH +j8e84XeUzh9kF+a+EsoqLMXZ2dW8MknbFS/rxCTbh/O+juIsmyVwgdsDm8hZPb7b +qGnZyLuGc3JxRvsuS6thpC2xQYuv9dB6Jxr6V1G3oSeJEDqSsUjS8ZAjkjOXsgGi +PmGAxO6L1sqyKlhobQgmZ04t2ggTaIK7FPmLt1zVRRKtDSUdsniRHDyo3J/M/zeW +GrN6GlsH9g5vum8X8SzOjpE7PBuhzRvZE13LpwiX1rTifFPgu2ykOD53+9trWqKr +pFEzpr/oj9xe0WN+vJp5JbyPfUK95dE5bCnBQoEtq+NE6QEegbHusmxrXj4bSfk= +=XkK0 +-----END PGP SIGNATURE----- diff --git a/app-text/notmuch/files/0.9-fix-lib-makefile-local.patch b/app-text/notmuch/files/0.9-fix-lib-makefile-local.patch new file mode 100644 index 000000000000..a454f9db84e2 --- /dev/null +++ b/app-text/notmuch/files/0.9-fix-lib-makefile-local.patch @@ -0,0 +1,53 @@ +From 42ba9b5456567686c77acbac716982e21a154172 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= +Date: Sun, 23 Oct 2011 16:24:36 +0200 +Subject: [PATCH] Prefix lib/notmuch.h and lib/gen-version-script.sh with + $(srcdir) + +lib/notmuch.h and lib/gen-version-script.sh couldn't have been found +when building out of sources directory. +--- + lib/Makefile.local | 13 +++++++------ + 1 files changed, 7 insertions(+), 6 deletions(-) + +diff --git a/lib/Makefile.local b/lib/Makefile.local +index ea20b2b..be51eaa 100644 +--- a/lib/Makefile.local ++++ b/lib/Makefile.local +@@ -41,6 +41,11 @@ endif + dir := lib + extra_cflags += -I$(srcdir)/$(dir) -fPIC + ++# The (often-reused) $dir works fine within targets/prerequisites, ++# but cannot be used reliably within commands, so copy its value to a ++# variable that is not reused. ++lib := $(dir) ++ + libnotmuch_c_srcs = \ + $(notmuch_compat_srcs) \ + $(dir)/filenames.c \ +@@ -68,8 +73,8 @@ $(dir)/libnotmuch.a: $(libnotmuch_modules) + $(dir)/$(LIBNAME): $(libnotmuch_modules) notmuch.sym + $(call quiet,CXX $(CXXFLAGS)) $(libnotmuch_modules) $(FINAL_LIBNOTMUCH_LDFLAGS) $(LIBRARY_LINK_FLAG) -o $@ + +-notmuch.sym: lib/notmuch.h $(libnotmuch_modules) +- sh lib/gen-version-script.sh $< $(libnotmuch_modules) > $@ ++notmuch.sym: $(srcdir)/$(dir)/notmuch.h $(libnotmuch_modules) ++ sh $(srcdir)/$(lib)/gen-version-script.sh $< $(libnotmuch_modules) > $@ + + $(dir)/$(SONAME): $(dir)/$(LIBNAME) + ln -sf $(LIBNAME) $@ +@@ -79,10 +84,6 @@ $(dir)/$(LINKER_NAME): $(dir)/$(SONAME) + + install: install-$(dir) + +-# The (often-reused) $dir works fine within targets/prerequisites, +-# but cannot be used reliably within commands, so copy its value to a +-# variable that is not reused. +-lib := $(dir) + install-$(dir): $(dir)/$(LIBNAME) + mkdir -p "$(DESTDIR)$(libdir)/" + install -m0644 "$(lib)/$(LIBNAME)" "$(DESTDIR)$(libdir)/" +-- +1.7.7 + diff --git a/app-text/notmuch/metadata.xml b/app-text/notmuch/metadata.xml new file mode 100644 index 000000000000..407c40db8d8a --- /dev/null +++ b/app-text/notmuch/metadata.xml @@ -0,0 +1,18 @@ + + + + + aidecoe@gentoo.org + Amadeusz Å»ołnowski + + + Install Vim script which allows reading notmuch mail + through Vim + + + Notmuch is a system for indexing, searching, reading, and tagging large + collections of email messages in maildir or mh format. It uses the + Xapian library to provide fast, full-text search with a convenient + search syntax. + + diff --git a/app-text/notmuch/notmuch-0.9.ebuild b/app-text/notmuch/notmuch-0.9.ebuild new file mode 100644 index 000000000000..88937c192345 --- /dev/null +++ b/app-text/notmuch/notmuch-0.9.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/notmuch/notmuch-0.9.ebuild,v 1.1 2011/10/24 00:03:22 aidecoe Exp $ + +EAPI=4 + +inherit autotools-utils elisp-common + +DESCRIPTION="The mail indexer" +HOMEPAGE="http://notmuchmail.org/" +SRC_URI="${HOMEPAGE}/releases/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="bash-completion debug emacs vim zsh-completion" + +DEPEND=" + >=dev-libs/glib-2.14 + dev-libs/gmime:2.4 + dev-libs/xapian + sys-libs/talloc + debug? ( dev-util/valgrind ) + emacs? ( >=virtual/emacs-23 ) + vim? ( || ( >=app-editors/vim-7.0 >=app-editors/gvim-7.0 ) ) + " +RDEPEND="${DEPEND} + zsh-completion? ( app-shells/zsh ) + " + +DOCS=( AUTHORS NEWS README TODO ) +PATCHES=( "${FILESDIR}/${PV}-fix-lib-makefile-local.patch" ) + +pkg_pretend() { + if use emacs; then + elisp-need-emacs 23 || die "Emacs version too low" + fi +} + +src_configure() { + local myeconfargs=( + --bashcompletiondir=/usr/share/bash-completion + --zshcompletiondir=/usr/share/zsh/site-functions + $(use_with bash-completion) + $(use_with emacs) + $(use_with zsh-completion) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + if use vim; then + insinto /usr/share/vim/vimfiles + doins -r vim/plugin vim/syntax + fi +}