New package: notmuch-python-0.25.2

Closes #9283.
This commit is contained in:
Felix Van der Jeugt 2017-10-24 11:47:39 +02:00 committed by Enno Boland
parent c5b354ea28
commit 97708494fa
2 changed files with 18 additions and 3 deletions

1
srcpkgs/notmuch-python Symbolic link
View file

@ -0,0 +1 @@
notmuch

View file

@ -1,8 +1,8 @@
# Template file for 'notmuch' # Template file for 'notmuch'
pkgname=notmuch pkgname=notmuch
version=0.25.2 version=0.25.2
revision=1 revision=2
hostmakedepends="pkg-config perl python-Sphinx" hostmakedepends="python-devel python-setuptools pkg-config perl python-Sphinx"
makedepends="xapian-core-devel gmime-devel talloc-devel bash-completion" makedepends="xapian-core-devel gmime-devel talloc-devel bash-completion"
short_desc="Thread-based email index, search, and tagging" short_desc="Thread-based email index, search, and tagging"
maintainer="Jan S. <jan.schreib@gmail.com>" maintainer="Jan S. <jan.schreib@gmail.com>"
@ -11,7 +11,7 @@ homepage="http://notmuchmail.org"
distfiles="http://http.debian.net/debian/pool/main/n/notmuch/notmuch_${version}.orig.tar.gz" distfiles="http://http.debian.net/debian/pool/main/n/notmuch/notmuch_${version}.orig.tar.gz"
checksum=e4b6ba9d4016b10249a4acc24e063d23e0c52ed6f8c1cbe4f98e7f9ef4da262a checksum=e4b6ba9d4016b10249a4acc24e063d23e0c52ed6f8c1cbe4f98e7f9ef4da262a
subpackages="libnotmuch libnotmuch-devel notmuch-mutt" subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) i686*|x86_64*)
makedepends+=" emacs" makedepends+=" emacs"
@ -32,9 +32,15 @@ do_configure() {
do_build() { do_build() {
make ${makejobs} V=1 make ${makejobs} V=1
make -C contrib/notmuch-mutt make -C contrib/notmuch-mutt
make -C bindings
cd bindings/python
python setup.py build --build-base=build-2
} }
do_install() { do_install() {
make DESTDIR=${DESTDIR} install make DESTDIR=${DESTDIR} install
cd bindings/python
python2 setup.py build --build-base=build-2 \
install --prefix=/usr --root=${DESTDIR}
} }
libnotmuch_package() { libnotmuch_package() {
@ -69,3 +75,11 @@ notmuch-mutt_package() {
vman contrib/notmuch-mutt/notmuch-mutt.1 vman contrib/notmuch-mutt/notmuch-mutt.1
} }
} }
notmuch-python_package() {
depends="libnotmuch-devel>=${version}_${revision}"
short_desc+=" - Python2 bindings"
pycompile_module="notmuch"
pkg_install() {
vmove ${py2_sitelib}
}
}