tweak for cygwin again

Sat, 06 May 2017 03:00:39 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 06 May 2017 03:00:39 -0400
changeset 569
0190a692645c
parent 568
d2eda02fa3c0
child 570
fe86d57f654a

tweak for cygwin again

.mutt/roomag/config file | annotate | diff | comparison | revisions
bin/setup-neomutt file | annotate | diff | comparison | revisions
--- a/.mutt/roomag/config
+++ b/.mutt/roomag/config
@@ -3,7 +3,7 @@
 unalternates *
 unlists *
 
-source "gpg2 -d ~/.mutt/roomag/private.gpg |"
+source "cd ~/.mutt/roomag && gpg2 -d private.gpg |"
 
 set folder    = imaps://mhoward@ramdas.roomag.org/
 set spoolfile = "+Virtual.Mailbox"
--- a/bin/setup-neomutt
+++ b/bin/setup-neomutt
@@ -16,18 +16,24 @@ fi
 
 cd sandbox/neomutt
 
-case "${OSTYPE:-}" in
+PLATFORM="$(uname -o)"
+HCACHE="tokyocabinet"
+
+case "$PLATFORM" in
   darwin*)
     # Use macports' headers
     OPENSSL_PREFIX=/opt/local
     ;;
+  Cygwin)
+    HCACHE=lmdb
+    ;;
 esac
 
 ./prepare -q \
  --with-mailpath=/var/spool/mail \
  --with-ssl${OPENSSL_PREFIX:+=$OPENSSL_PREFIX} \
  --with-sasl \
- --with-tokyocabinet \
+ --with-${HCACHE} \
  --enable-gpgme \
  --enable-imap --enable-smtp \
 
@@ -55,4 +61,12 @@ neomutt build.
   apt install autoconf links pandoc gnupg2 gpgsm urlscan libncursesw5-dev \
     libssl-dev libsasl2-dev libtokyocabinet-dev libgpgme11-dev
 
+=head2 Cygwin / Babun
+
+ pact install autoconf links libncursesw-devel openssl-devel libsasl2-devel \
+   liblmdb-devel libgpgme-devel
+
+gpg2 isn't available in cygwin, but there is a windows build.  using it with
+cygwin paths requires a wrapper though.
+
 =cut

mercurial