diff --git a/srcpkgs/notmuch-python b/srcpkgs/notmuch-python new file mode 120000 index 00000000000..67778b7eb37 --- /dev/null +++ b/srcpkgs/notmuch-python @@ -0,0 +1 @@ +notmuch \ No newline at end of file diff --git a/srcpkgs/notmuch/template b/srcpkgs/notmuch/template index 156feeacf20..c73e943e660 100644 --- a/srcpkgs/notmuch/template +++ b/srcpkgs/notmuch/template @@ -1,8 +1,8 @@ # Template file for 'notmuch' pkgname=notmuch version=0.25.2 -revision=1 -hostmakedepends="pkg-config perl python-Sphinx" +revision=2 +hostmakedepends="python-devel python-setuptools pkg-config perl python-Sphinx" makedepends="xapian-core-devel gmime-devel talloc-devel bash-completion" short_desc="Thread-based email index, search, and tagging" maintainer="Jan S. " @@ -11,7 +11,7 @@ homepage="http://notmuchmail.org" distfiles="http://http.debian.net/debian/pool/main/n/notmuch/notmuch_${version}.orig.tar.gz" checksum=e4b6ba9d4016b10249a4acc24e063d23e0c52ed6f8c1cbe4f98e7f9ef4da262a -subpackages="libnotmuch libnotmuch-devel notmuch-mutt" +subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python" case "$XBPS_TARGET_MACHINE" in i686*|x86_64*) makedepends+=" emacs" @@ -32,9 +32,15 @@ do_configure() { do_build() { make ${makejobs} V=1 make -C contrib/notmuch-mutt + make -C bindings + cd bindings/python + python setup.py build --build-base=build-2 } do_install() { make DESTDIR=${DESTDIR} install + cd bindings/python + python2 setup.py build --build-base=build-2 \ + install --prefix=/usr --root=${DESTDIR} } libnotmuch_package() { @@ -69,3 +75,11 @@ notmuch-mutt_package() { 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} + } +}