Merge branch 'release'

still painfully slowly assembling 0.18.1
This commit is contained in:
David Bremner 2014-06-15 15:52:18 -03:00
commit 9e7bc02530
5 changed files with 82 additions and 43 deletions

10
debian/changelog vendored
View file

@ -1,3 +1,13 @@
notmuch (0.18.1-1) unstable; urgency=medium
* New upstream bug fix release
* Tighten dependence of python packages on libnotmuch
(Closes: #749881).
* Redo emacsen-install script from sample in emacsen-common
(Closes: #739839).
-- David Bremner <bremner@debian.org> Sat, 14 Jun 2014 07:50:28 -0300
notmuch (0.18-3) unstable; urgency=medium notmuch (0.18-3) unstable; urgency=medium
* Disable atomicity tests on armel. * Disable atomicity tests on armel.

8
debian/control vendored
View file

@ -69,7 +69,7 @@ Description: thread-based email index, search and tagging (development)
Package: python-notmuch Package: python-notmuch
Architecture: all Architecture: all
Section: python Section: python
Depends: ${misc:Depends}, ${python:Depends}, libnotmuch3 Depends: ${misc:Depends}, ${python:Depends}, libnotmuch3 (>= ${source:Version})
Description: python interface to the notmuch mail search and index library Description: python interface to the notmuch mail search and index library
Notmuch is a system for indexing, searching, reading, and tagging Notmuch is a system for indexing, searching, reading, and tagging
large collections of email messages in maildir or mh format. It uses large collections of email messages in maildir or mh format. It uses
@ -82,7 +82,7 @@ Description: python interface to the notmuch mail search and index library
Package: python3-notmuch Package: python3-notmuch
Architecture: all Architecture: all
Section: python Section: python
Depends: ${misc:Depends}, ${python3:Depends}, libnotmuch3 Depends: ${misc:Depends}, ${python3:Depends}, libnotmuch3 (>= ${source:Version})
Description: Python 3 interface to the notmuch mail search and index library Description: Python 3 interface to the notmuch mail search and index library
Notmuch is a system for indexing, searching, reading, and tagging Notmuch is a system for indexing, searching, reading, and tagging
large collections of email messages in maildir or mh format. It uses large collections of email messages in maildir or mh format. It uses
@ -110,10 +110,10 @@ Architecture: all
Section: mail Section: mail
Breaks: notmuch (<<0.6~254~) Breaks: notmuch (<<0.6~254~)
Replaces: notmuch (<<0.6~254~) Replaces: notmuch (<<0.6~254~)
Conflicts: emacsen-common (<< 2.0.0)
Depends: ${misc:Depends}, notmuch (>= ${source:Version}), Depends: ${misc:Depends}, notmuch (>= ${source:Version}),
emacs23 (>= 23~) | emacs23-nox (>=23~) | emacs23-lucid (>=23~) | emacs23 (>= 23~) | emacs23-nox (>=23~) | emacs23-lucid (>=23~) |
emacs24 (>= 24~) | emacs24-nox (>=24~) | emacs24-lucid (>=24~) emacs24 (>= 24~) | emacs24-nox (>=24~) | emacs24-lucid (>=24~),
emacsen-common (>= 2.0.8)
Description: thread-based email index, search and tagging (emacs interface) Description: thread-based email index, search and tagging (emacs interface)
Notmuch is a system for indexing, searching, reading, and tagging Notmuch is a system for indexing, searching, reading, and tagging
large collections of email messages in maildir or mh format. It uses large collections of email messages in maildir or mh format. It uses

View file

@ -1,45 +1,48 @@
#! /bin/sh -e #!/bin/sh
# /usr/lib/emacsen-common/packages/install/notmuch-emacs # /usr/lib/emacsen-common/packages/install/notmuch-emacs
set -e
# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
FLAVOR=$1 FLAVOR=$1
PACKAGE=notmuch PACKAGE=notmuch
# We know that the notmuch emacs code doesn't work with emacs before emacs23 case "${FLAVOR}" in
if [ ${FLAVOR} = emacs21 ]; then exit 0; fi emacs)
if [ ${FLAVOR} = emacs22 ]; then exit 0; fi return 0
if [ ${FLAVOR} = xemacs21 ]; then exit 0; fi ;;
if [ ${FLAVOR} = xemacs22 ]; then exit 0; fi xemacs*|emacs2[12])
# patches welcome.
echo install/${PACKAGE}: skipping install for unsupported emacsen flavor ${FLAVOR}
exit 0
;;
*)
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
esac
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
#FLAVORTEST=`echo $FLAVOR | cut -c-6` elc_dir=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
#if [ ${FLAVORTEST} = xemacs ] ; then el_dir=/usr/share/emacs/site-lisp/${PACKAGE}
# SITEFLAG="-no-site-file"
#else
# SITEFLAG="--no-site-file"
#fi
#FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
FLAGS="--no-site-file -q -batch -l path.el -f batch-byte-compile"
ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} byte_compile_options="--quick --directory=${el_dir} -batch -f batch-byte-compile"
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
install -m 755 -d ${ELCDIR} echo install/${PACKAGE}: byte-compiling for ${FLAVOR}
cd ${ELDIR}
FILES=`echo *.el`
cd ${ELCDIR}
for file in ${FILES}; do
ln -sf ${ELDIR}/${file} .
done
cat << EOF > path.el [ -d ${elc_dir} ] || mkdir ${elc_dir}
(setq load-path (cons "." load-path) byte-compile-warnings nil)
EOF
${FLAVOR} ${FLAGS} ${FILES}
rm -f *.el
exit 0 # Create symlinks to the .el files (see section 6E in debian-emacs
# polcy). This makes complation easy, and also allows find-function
# and find-library to work properly.
(cd ${elc_dir} && cp -s ${el_dir}/*.el .)
# Byte compile them
(cd ${elc_dir}
set +e
${FLAVOR} ${byte_compile_options} *.el > Install.log 2>&1
if test $? -ne 0
then
cat Install.log
exit 1
fi
set -e
gzip -9 Install.log)
exit 0;

View file

@ -1,8 +1,34 @@
#!/bin/sh -e #!/bin/sh
# /usr/lib/emacsen-common/packages/remove/notmuch-emacs # /usr/lib/emacsen-common/packages/remove/notmuch
set -e
FLAVOR=$1 FLAVOR=$1
PACKAGE=notmuch PACKAGE=notmuch
elc_dir=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} case "${FLAVOR}" in
rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} emacs)
return 0
;;
xemacs*|emacs2[12])
# patches welcome.
echo install/${PACKAGE}: skipping removal for unsupported emacsen flavor ${FLAVOR}
exit 0
;;
*)
echo remove/${PACKAGE}: Handling removal for emacsen flavor ${FLAVOR}
esac
echo remove/${PACKAGE}: Handling removal of emacsen flavor ${FLAVOR}
echo emacsen-common: purging byte-compiled files for ${FLAVOR}
rm -f ${elc_dir}/*.elc
rm -f ${elc_dir}/*.el
rm -f ${elc_dir}/Install.log*
if test -e "${elc_dir}"
then
rmdir --ignore-fail-on-non-empty "${elc_dir}"
fi
exit 0;

View file

@ -69,7 +69,7 @@ install: install-emacs
endif endif
.PHONY: install-emacs .PHONY: install-emacs
install-emacs: install-emacs: $(emacs_sources) $(emacs_images)
mkdir -p "$(DESTDIR)$(emacslispdir)" mkdir -p "$(DESTDIR)$(emacslispdir)"
install -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)" install -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)"
ifeq ($(HAVE_EMACS),1) ifeq ($(HAVE_EMACS),1)