parent
c5b354ea28
commit
97708494fa
|
@ -0,0 +1 @@
|
|||
notmuch
|
|
@ -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. <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"
|
||||
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}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue