diff -u -r -N mutt-devel.orig/Portfile mutt-devel/Portfile
old
|
new
|
|
4 | 4 | |
5 | 5 | name mutt-devel |
6 | 6 | version 1.5.20 |
7 | | revision 1 |
| 7 | revision 2 |
8 | 8 | categories mail |
9 | 9 | platforms darwin |
10 | 10 | maintainers simon openmaintainer |
… |
… |
|
177 | 177 | variant gpgme description {Enable GPGME crypto support} { |
178 | 178 | configure.args-append --enable-gpgme --with-gpgme-prefix=${prefix} |
179 | 179 | depends_lib-append port:gpgme |
| 180 | # the following patch makes mutt 1.5.20 compatible with gpgme 1.2.0, |
| 181 | # cf. http://bugs.gentoo.org/show_bug.cgi?id=278394 |
| 182 | # and http://dev.mutt.org/trac/ticket/3300 |
| 183 | patchfiles-append patch-1.5.20.gpgme.diff |
| 184 | checksums-append patch-1.5.20.gpgme.diff md5 \ |
| 185 | 6faa84e2520dad7c603e8a8b9e0a9b30 |
180 | 186 | } |
181 | 187 | |
182 | 188 | livecheck.type regex |
diff -u -r -N mutt-devel.orig/files/patch-1.5.20.gpgme.diff mutt-devel/files/patch-1.5.20.gpgme.diff
old
|
new
|
|
| 1 | --- mutt-1.5.20/init.c.orig 2009-07-21 17:54:59 +0200 |
| 2 | +++ mutt-1.5.20/init.c 2009-07-21 17:59:47 +0200 |
| 3 | @@ -37,7 +37,6 @@ |
| 4 | #endif |
| 5 | |
| 6 | |
| 7 | - |
| 8 | #include "mx.h" |
| 9 | #include "init.h" |
| 10 | #include "mailbox.h" |
| 11 | @@ -50,6 +49,10 @@ |
| 12 | #include <errno.h> |
| 13 | #include <sys/wait.h> |
| 14 | |
| 15 | +#if defined(CRYPT_BACKEND_GPGME) |
| 16 | +#include <gpgme.h> |
| 17 | +#endif |
| 18 | + |
| 19 | #define CHECK_PAGER \ |
| 20 | if ((CurrentMenu == MENU_PAGER) && (idx >= 0) && \ |
| 21 | (MuttVars[idx].flags & R_RESORT)) \ |
| 22 | @@ -3262,6 +3265,11 @@ |
| 23 | |
| 24 | mutt_read_histfile (); |
| 25 | |
| 26 | +#ifdef CRYPT_BACKEND_GPGME |
| 27 | + /* needed since version 1.2.0, ticket #3300 */ |
| 28 | + gpgme_check_version (NULL); |
| 29 | +#endif |
| 30 | + |
| 31 | #if 0 |
| 32 | set_option (OPTWEED); /* turn weeding on by default */ |
| 33 | #endif |