2014-01-24 23:17:13 +01:00
|
|
|
# Template file for 'notmuch'
|
|
|
|
pkgname=notmuch
|
2014-10-31 10:31:10 +01:00
|
|
|
version=0.18.2
|
|
|
|
revision=1
|
2014-09-09 22:22:09 +02:00
|
|
|
hostmakedepends="automake libtool pkg-config"
|
|
|
|
makedepends="
|
|
|
|
xapian-core-devel gmime-devel talloc-devel perl emacs bash-completion
|
2014-10-31 10:31:10 +01:00
|
|
|
ruby-devel python-devel python3.4-devel python-Sphinx"
|
2014-01-24 23:17:13 +01:00
|
|
|
build_style=gnu-configure
|
2014-09-09 22:22:09 +02:00
|
|
|
configure_args="--bashcompletiondir=/usr/share/bash-completion/completions
|
|
|
|
--without-zsh-completion" # zsh completion is part of zsh itself
|
|
|
|
short_desc="The mail indexer"
|
2014-01-24 23:17:13 +01:00
|
|
|
maintainer="Jan S. <jan.schreib@gmail.com>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="http://notmuchmail.org"
|
2014-03-22 02:40:02 +01:00
|
|
|
distfiles="http://notmuchmail.org/releases/${pkgname}-${version}.tar.gz"
|
2014-10-31 10:31:10 +01:00
|
|
|
checksum=e99f7bfee1250aa9f23e05d926ec278316fb8dd135262b0e24f4ba1a78febc9c
|
2014-08-23 20:27:30 +02:00
|
|
|
nocross=yes
|
2014-03-09 21:16:16 +01:00
|
|
|
|
2014-09-09 22:22:09 +02:00
|
|
|
pre_build() {
|
|
|
|
cp -a bindings/python{,3.4}
|
|
|
|
}
|
|
|
|
|
|
|
|
post_build() {
|
|
|
|
# Build notmuch-mutt
|
|
|
|
make -C contrib/${pkgname}-mutt
|
|
|
|
|
|
|
|
# Build notmuch-deliver
|
|
|
|
cd ${wrksrc}/contrib/${pkgname}-deliver
|
|
|
|
./autogen.sh
|
|
|
|
LDFLAGS="-L$(pwd)/../../lib/" CPPFLAGS="-I$(pwd)/../../lib/" \
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --includedir=/usr/include
|
|
|
|
make ${makejobs}
|
|
|
|
|
|
|
|
# Build ruby bindings
|
|
|
|
cd ${wrksrc}/bindings/ruby
|
|
|
|
ruby extconf.rb --vendor
|
|
|
|
make ${makejobs}
|
|
|
|
|
|
|
|
# Build python bindings
|
|
|
|
cd ${wrksrc}/bindings/python
|
|
|
|
python setup.py build
|
|
|
|
cd ${wrksrc}/bindings/python3.4
|
|
|
|
python3.4 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# Install notmuch-mutt
|
|
|
|
vbin contrib/${pkgname}-mutt/${pkgname}-mutt
|
|
|
|
vman contrib/${pkgname}-mutt/${pkgname}-mutt.1
|
|
|
|
|
|
|
|
# Install notmuch-deliver
|
|
|
|
make -C contrib/${pkgname}-deliver DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
# Install ruby bindings
|
|
|
|
make -C bindings/ruby DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
# Install python bindings
|
|
|
|
cd ${wrksrc}/bindings/python
|
|
|
|
python setup.py install --root=${DESTDIR}
|
|
|
|
cd ${wrksrc}/bindings/python3.4
|
|
|
|
python3.4 setup.py install --root=${DESTDIR}
|
|
|
|
|
|
|
|
# Install vim interface
|
|
|
|
vmkdir usr/share/vim/vimfiles
|
|
|
|
cd ${wrksrc}/contrib/${pkgname}-vim
|
|
|
|
vcopy "plugin syntax" usr/share/vim/vimfiles
|
|
|
|
}
|
|
|
|
|
|
|
|
libnotmuch_package() {
|
|
|
|
short_desc+=" - runtime library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-25 11:51:42 +01:00
|
|
|
libnotmuch-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="libnotmuch>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-09-09 22:22:09 +02:00
|
|
|
notmuch-python_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - Python2 bindings"
|
|
|
|
depends="libnotmuch>=${version}_${revision} python"
|
|
|
|
pycompile_module="notmuch"
|
2014-01-25 11:51:42 +01:00
|
|
|
pkg_install() {
|
2014-09-09 22:22:09 +02:00
|
|
|
vmove usr/lib/python2.7
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
notmuch-python3.4_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - Python3.4 bindings"
|
|
|
|
depends="libnotmuch>=${version}_${revision} python3.4"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="notmuch"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
notmuch-ruby_package() {
|
|
|
|
short_desc+=" - Ruby bindings"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/ruby
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
notmuch-deliver_package() {
|
|
|
|
short_desc+=" - Maildir delivery tool"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/notmuch-deliver
|
|
|
|
vmove usr/share/doc/notmuch-deliver
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
notmuch-emacs_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - Emacs interface"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} virtual?emacs"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/emacs/site-lisp
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
notmuch-vim_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - Vim interface"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} notmuch-ruby vim-huge"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/vim/vimfiles
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
notmuch-mutt_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - Mutt interface"
|
|
|
|
depends="
|
|
|
|
${sourcepkg}>=${version}_${revision} perl-Mail-Box perl-MailTools
|
|
|
|
perl-String-ShellQuote perl-Term-ReadLine-Gnu perl-File-Which"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/notmuch-mutt
|
|
|
|
vmove usr/share/man/man1/notmuch-mutt.1
|
2014-01-25 11:51:42 +01:00
|
|
|
}
|
|
|
|
}
|