notmuch: add python3 binding subpackage
This commit is contained in:
parent
9051c36403
commit
71f30b6a73
1
srcpkgs/notmuch-python3
Symbolic link
1
srcpkgs/notmuch-python3
Symbolic link
|
@ -0,0 +1 @@
|
|||
notmuch
|
|
@ -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. <jan.schreib@gmail.com>"
|
||||
|
@ -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}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user