mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
notmuch: update to 0.20.2
- cross build support - simplified packaging - notmuch-deliver doesn't exist anymore
This commit is contained in:
parent
c92823b0ac
commit
2a712570b0
6 changed files with 35 additions and 120 deletions
|
@ -1 +0,0 @@
|
||||||
notmuch
|
|
|
@ -1 +0,0 @@
|
||||||
notmuch
|
|
|
@ -1 +0,0 @@
|
||||||
notmuch
|
|
|
@ -1 +0,0 @@
|
||||||
notmuch
|
|
|
@ -1 +0,0 @@
|
||||||
notmuch
|
|
|
@ -1,151 +1,71 @@
|
||||||
# Template file for 'notmuch'
|
# Template file for 'notmuch'
|
||||||
pkgname=notmuch
|
pkgname=notmuch
|
||||||
version=0.19
|
version=0.20.2
|
||||||
revision=2
|
revision=1
|
||||||
hostmakedepends="automake libtool pkg-config"
|
hostmakedepends="pkg-config perl python-Sphinx"
|
||||||
makedepends="
|
makedepends="xapian-core-devel gmime-devel talloc-devel bash-completion"
|
||||||
xapian-core-devel gmime-devel talloc-devel perl emacs bash-completion
|
|
||||||
ruby-devel python-devel python3.4-devel python-Sphinx"
|
|
||||||
build_style=gnu-configure
|
|
||||||
configure_args="--bashcompletiondir=/usr/share/bash-completion/completions
|
|
||||||
--without-zsh-completion" # zsh completion is part of zsh itself
|
|
||||||
short_desc="The mail indexer"
|
short_desc="The mail indexer"
|
||||||
maintainer="Jan S. <jan.schreib@gmail.com>"
|
maintainer="Jan S. <jan.schreib@gmail.com>"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
homepage="http://notmuchmail.org"
|
homepage="http://notmuchmail.org"
|
||||||
distfiles="http://notmuchmail.org/releases/${pkgname}-${version}.tar.gz"
|
distfiles="http://notmuchmail.org/releases/notmuch-${version}.tar.gz"
|
||||||
checksum=396fc6548423785ebbbe9a6cce321d957d3b2e856edb8225bb0988470833eeeb
|
checksum=f741a26345bff389fd8a4a119c4174c6585730f71844809583a54ef2a865adec
|
||||||
nocross=yes
|
|
||||||
|
|
||||||
pre_build() {
|
subpackages="libnotmuch libnotmuch-devel notmuch-mutt"
|
||||||
cp -a bindings/python{,3.4}
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
i686|x86_64)
|
||||||
|
makedepends+=" emacs"
|
||||||
|
subpackages+=" notmuch-emacs"
|
||||||
|
_args="--emacslispdir=/usr/share/emacs/site-lisp/notmuch
|
||||||
|
--emacsetcdir=/usr/share/emacs/site-lisp/notmuch"
|
||||||
|
;;
|
||||||
|
*) _args="--without-emacs";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
# fool the endianess test
|
||||||
|
sed -i 's|\(util_byte_order\)=.*|\1=1234|' configure
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--bashcompletiondir=/usr/share/bash-completion/completions \
|
||||||
|
--zshcompletiondir=/usr/share/zsh/site-functions ${_args}
|
||||||
}
|
}
|
||||||
|
do_build() {
|
||||||
post_build() {
|
make ${makejobs} V=1
|
||||||
# Build notmuch-mutt
|
make -C contrib/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
|
|
||||||
}
|
}
|
||||||
|
do_install() {
|
||||||
post_install() {
|
make DESTDIR=${DESTDIR} 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() {
|
libnotmuch_package() {
|
||||||
short_desc+=" - runtime library"
|
short_desc+=" - runtime library"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/*.so.*"
|
vmove usr/lib/*.so.*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libnotmuch-devel_package() {
|
libnotmuch-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="libnotmuch>=${version}_${revision}"
|
depends="libnotmuch-${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove "usr/lib/*.so"
|
vmove usr/lib/*.so
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
notmuch-python_package() {
|
|
||||||
noarch=yes
|
|
||||||
short_desc+=" - Python2 bindings"
|
|
||||||
depends="libnotmuch>=${version}_${revision} python"
|
|
||||||
pycompile_module="notmuch"
|
|
||||||
pkg_install() {
|
|
||||||
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() {
|
notmuch-emacs_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
short_desc+=" - Emacs interface"
|
short_desc+=" - Emacs interface"
|
||||||
depends="${sourcepkg}>=${version}_${revision} virtual?emacs"
|
depends="${sourcepkg}-${version}_${revision} virtual?emacs"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/share/emacs/site-lisp
|
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() {
|
notmuch-mutt_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
short_desc+=" - Mutt interface"
|
short_desc+=" - Mutt interface"
|
||||||
depends="
|
depends="${sourcepkg}-${version}_${revision} perl-Mail-Box perl-MailTools
|
||||||
${sourcepkg}>=${version}_${revision} perl-Mail-Box perl-MailTools
|
|
||||||
perl-String-ShellQuote perl-Term-ReadLine-Gnu perl-File-Which"
|
perl-String-ShellQuote perl-Term-ReadLine-Gnu perl-File-Which"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/notmuch-mutt
|
vbin contrib/notmuch-mutt/notmuch-mutt
|
||||||
vmove usr/share/man/man1/notmuch-mutt.1
|
vman contrib/notmuch-mutt/notmuch-mutt.1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue