From 71f30b6a73280d2e4753822d8a8233cf8c940a9d Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Wed, 7 Nov 2018 10:21:24 +0100 Subject: [PATCH] notmuch: add python3 binding subpackage --- srcpkgs/notmuch-python3 | 1 + srcpkgs/notmuch/template | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 120000 srcpkgs/notmuch-python3 diff --git a/srcpkgs/notmuch-python3 b/srcpkgs/notmuch-python3 new file mode 120000 index 00000000000..67778b7eb37 --- /dev/null +++ b/srcpkgs/notmuch-python3 @@ -0,0 +1 @@ +notmuch \ No newline at end of file diff --git a/srcpkgs/notmuch/template b/srcpkgs/notmuch/template index 12b3a478ab1..2d56305c3a6 100644 --- a/srcpkgs/notmuch/template +++ b/srcpkgs/notmuch/template @@ -2,7 +2,7 @@ pkgname=notmuch version=0.28 revision=1 -hostmakedepends="perl pkg-config python-Sphinx python-devel" +hostmakedepends="perl pkg-config python-Sphinx python-devel python3-Sphinx python3-devel" makedepends="bash-completion gmime-devel talloc-devel xapian-core-devel" short_desc="Thread-based email index, search, and tagging" maintainer="Jan S. " @@ -11,7 +11,7 @@ homepage="https://notmuchmail.org" distfiles="${DEBIAN_SITE}/main/n/notmuch/notmuch_${version}.orig.tar.xz" checksum=3b08a925f9fac87120a3aae9a0efbbc581894cd021cd8d6201056a74b59f7e11 -subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python" +subpackages="libnotmuch libnotmuch-devel notmuch-mutt notmuch-python notmuch-python3" case "$XBPS_TARGET_MACHINE" in i686*|x86_64*) @@ -37,6 +37,7 @@ do_build() { make -C bindings cd bindings/python python2 setup.py build --build-base=build-2 + python3 setup.py build --build-base=build-3 } do_install() { @@ -44,6 +45,8 @@ do_install() { cd bindings/python python2 setup.py build --build-base=build-2 \ install --prefix=/usr --root=${DESTDIR} + python3 setup.py build --build-base=build-3 \ + install --prefix=/usr --root=${DESTDIR} } libnotmuch_package() { @@ -90,3 +93,12 @@ notmuch-python_package() { vmove ${py2_sitelib} } } + +notmuch-python3_package() { + depends="libnotmuch-devel>=${version}_${revision}" + short_desc+=" - Python3 bindings" + pycompile_module="notmuch" + pkg_install() { + vmove ${py3_sitelib} + } +}