X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=debian%2Frules;h=7a19445e93a2a3f1882c4f339bc525643fa2b126;hp=2d33f6ac8992b7da84b39a5bca0742c4962d3349;hb=79b6b0190b36f5c9f14af48a3af675d2a16a46f3;hpb=43f7ce29d670d7ebe5791c203483fb6a668bfbe6 diff --git a/debian/rules b/debian/rules index 2d33f6ac..7a19445e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,32 @@ #!/usr/bin/make -f +python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {} + %: - dh $@ + dh $@ --with python2,python3 + +override_dh_auto_configure: + dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch + +override_dh_auto_build: + dh_auto_build -- V=1 + dh_auto_build --sourcedirectory bindings/python + cd bindings/python && $(python3_all) setup.py build + cd bindings/ruby && ruby extconf.rb --vendor && make + $(MAKE) -C contrib/notmuch-mutt + +override_dh_auto_clean: + dh_auto_clean + dh_auto_clean --sourcedirectory bindings/python + cd bindings/python && $(python3_all) setup.py clean -a + dh_auto_clean --sourcedirectory bindings/ruby + $(MAKE) -C contrib/notmuch-mutt clean + +override_dh_auto_install: + dh_auto_install + dh_auto_install --sourcedirectory bindings/python + cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp + dh_auto_install --sourcedirectory bindings/ruby + +override_dh_strip: + dh_strip --dbg-package notmuch-dbg