summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2011-10-24 00:03:22 +0000
committerAmadeusz Piotr Żołnowski <aidecoe@gentoo.org>2011-10-24 00:03:22 +0000
commit88238472b077ca62b29a5390a6ac987a47034f2b (patch)
tree0b5e50229fa5f1a8a37b843b465d0aeae3e55953
parentDepend on correct slot of pygobject. (diff)
downloadgentoo-2-88238472b077ca62b29a5390a6ac987a47034f2b.tar.gz
gentoo-2-88238472b077ca62b29a5390a6ac987a47034f2b.tar.bz2
gentoo-2-88238472b077ca62b29a5390a6ac987a47034f2b.zip
app-text/notmuch: New package, version 0.9.
Initial ebuild without python and ruby bindings yet. (Portage version: 2.1.10.29/cvs/Linux x86_64)
-rw-r--r--app-text/notmuch/ChangeLog10
-rw-r--r--app-text/notmuch/files/0.9-fix-lib-makefile-local.patch53
-rw-r--r--app-text/notmuch/metadata.xml18
-rw-r--r--app-text/notmuch/notmuch-0.9.ebuild58
4 files changed, 139 insertions, 0 deletions
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 <aidecoe@gentoo.org>
+ +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/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?= <aidecoe@aidecoe.name>
+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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>aidecoe@gentoo.org</email>
+ <name>Amadeusz Żołnowski</name>
+ </maintainer>
+ <use>
+ <flag name="vim">Install Vim script which allows reading notmuch mail
+ through Vim</flag>
+ </use>
+ <longdescription lang="en">
+ 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.
+ </longdescription>
+</pkgmetadata>
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
+}