notmuch: Reuse GPGME_GPG variable rather than inventing our own. Not only cleaner, but also fixes a build issue seen on macOS likely related to variable definition ordering, where GPG was not set correctly and ended up trying to use a non-existent "gpg" command. This change has the added benefit of using the full path to the gpg binary instead of relying on PATH.diff -r1.56 -r1.57 pkgsrc/mail/notmuch/Makefile
(jperkin)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.56 2020/03/08 16:47:54 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.57 2020/03/25 11:06:19 jperkin Exp $ | |
2 | 2 | |||
3 | DISTNAME= notmuch-0.29.3 | 3 | DISTNAME= notmuch-0.29.3 | |
4 | PKGREVISION= 1 | 4 | PKGREVISION= 1 | |
5 | CATEGORIES= mail | 5 | CATEGORIES= mail | |
6 | MASTER_SITES= https://notmuchmail.org/releases/ | 6 | MASTER_SITES= https://notmuchmail.org/releases/ | |
7 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://notmuchmail.org/ | 10 | HOMEPAGE= https://notmuchmail.org/ | |
11 | COMMENT= Mail indexer | 11 | COMMENT= Mail indexer | |
12 | LICENSE= gnu-gpl-v3 | 12 | LICENSE= gnu-gpl-v3 | |
13 | 13 | |||
14 | HAS_CONFIGURE= yes | 14 | HAS_CONFIGURE= yes | |
@@ -28,37 +28,31 @@ CONFIGURE_ARGS+= --infodir=${PREFIX}/inf | @@ -28,37 +28,31 @@ CONFIGURE_ARGS+= --infodir=${PREFIX}/inf | |||
28 | CONFIGURE_ARGS+= --without-ruby | 28 | CONFIGURE_ARGS+= --without-ruby | |
29 | 29 | |||
30 | SUBST_CLASSES.SunOS+= gnuld | 30 | SUBST_CLASSES.SunOS+= gnuld | |
31 | SUBST_STAGE.gnuld= pre-configure | 31 | SUBST_STAGE.gnuld= pre-configure | |
32 | SUBST_FILES.gnuld= lib/Makefile.local | 32 | SUBST_FILES.gnuld= lib/Makefile.local | |
33 | SUBST_SED.gnuld= -e 's/-Wl,--[^ ]*//g' | 33 | SUBST_SED.gnuld= -e 's/-Wl,--[^ ]*//g' | |
34 | 34 | |||
35 | SUBST_CLASSES+= sphinx | 35 | SUBST_CLASSES+= sphinx | |
36 | SUBST_SED.sphinx+= -e "s,sphinx-build,sphinx-build-${PYVERSSUFFIX}," | 36 | SUBST_SED.sphinx+= -e "s,sphinx-build,sphinx-build-${PYVERSSUFFIX}," | |
37 | SUBST_FILES.sphinx+= bindings/python/docs/Makefile configure doc/Makefile.local | 37 | SUBST_FILES.sphinx+= bindings/python/docs/Makefile configure doc/Makefile.local | |
38 | SUBST_STAGE.sphinx= pre-configure | 38 | SUBST_STAGE.sphinx= pre-configure | |
39 | SUBST_MESSAGE.sphinx= Fix sphinx command names. | 39 | SUBST_MESSAGE.sphinx= Fix sphinx command names. | |
40 | 40 | |||
41 | .if !empty(PKG_BUILD_OPTIONS.gpgme:Mgnupg2) | |||
42 | GPG= gpg2 | |||
43 | .else | |||
44 | GPG= gpg | |||
45 | .endif | |||
46 | ||||
47 | SUBST_CLASSES+= gpg | 41 | SUBST_CLASSES+= gpg | |
48 | SUBST_STAGE.gpg= pre-configure | 42 | SUBST_STAGE.gpg= pre-configure | |
49 | SUBST_MESSAGE.gpg= Select GnuPG command | 43 | SUBST_MESSAGE.gpg= Select GnuPG command | |
50 | SUBST_FILES.gpg+= configure | 44 | SUBST_FILES.gpg+= configure | |
51 | SUBST_VARS.gpg= GPG | 45 | SUBST_VARS.gpg= GPGME_GPG | |
52 | 46 | |||
53 | LDFLAGS.SunOS+= -lnsl | 47 | LDFLAGS.SunOS+= -lnsl | |
54 | 48 | |||
55 | post-extract: | 49 | post-extract: | |
56 | ${MV} ${WRKSRC}/version ${WRKSRC}/version.txt | 50 | ${MV} ${WRKSRC}/version ${WRKSRC}/version.txt | |
57 | 51 | |||
58 | .include "../../lang/python/application.mk" | 52 | .include "../../lang/python/application.mk" | |
59 | BUILDLINK_API_DEPENDS.gmime3+= gmime3>=3.0.3 | 53 | BUILDLINK_API_DEPENDS.gmime3+= gmime3>=3.0.3 | |
60 | .include "../../mail/gmime3/buildlink3.mk" | 54 | .include "../../mail/gmime3/buildlink3.mk" | |
61 | BUILDLINK_API_DEPENDS.xapian+= xapian>=1.4 | 55 | BUILDLINK_API_DEPENDS.xapian+= xapian>=1.4 | |
62 | .include "../../textproc/xapian/buildlink3.mk" | 56 | .include "../../textproc/xapian/buildlink3.mk" | |
63 | .include "../../devel/talloc/buildlink3.mk" | 57 | .include "../../devel/talloc/buildlink3.mk" | |
64 | BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.5.2 | 58 | BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.5.2 |
@@ -1,11 +1,11 @@ | @@ -1,11 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.43 2019/11/27 13:30:53 ryoon Exp $ | 1 | $NetBSD: distinfo,v 1.44 2020/03/25 11:06:19 jperkin Exp $ | |
2 | 2 | |||
3 | SHA1 (notmuch-0.29.3.tar.xz) = f1cdf4d50d344ca67df182ad1e3109988e8c80e8 | 3 | SHA1 (notmuch-0.29.3.tar.xz) = f1cdf4d50d344ca67df182ad1e3109988e8c80e8 | |
4 | RMD160 (notmuch-0.29.3.tar.xz) = e935fa029a83b9f7019547e6272c68224b04b0b2 | 4 | RMD160 (notmuch-0.29.3.tar.xz) = e935fa029a83b9f7019547e6272c68224b04b0b2 | |
5 | SHA512 (notmuch-0.29.3.tar.xz) = b1e0b47ebf2d2de0ccd39976782eb8a7b417e36f2f9d78ef19e27e55719a02ee919508843a0eaf258f58138914ab2e8796d2fc1782b9cfe2d8937abb6184be65 | 5 | SHA512 (notmuch-0.29.3.tar.xz) = b1e0b47ebf2d2de0ccd39976782eb8a7b417e36f2f9d78ef19e27e55719a02ee919508843a0eaf258f58138914ab2e8796d2fc1782b9cfe2d8937abb6184be65 | |
6 | Size (notmuch-0.29.3.tar.xz) = 660536 bytes | 6 | Size (notmuch-0.29.3.tar.xz) = 660536 bytes | |
7 | SHA1 (patch-Makefile.global) = f436bdb163e3110a8d097f3c88198aefb126eafc | 7 | SHA1 (patch-Makefile.global) = f436bdb163e3110a8d097f3c88198aefb126eafc | |
8 | SHA1 (patch-Makefile.local) = d0a83ff130de36164f1667236860aa31d481d025 | 8 | SHA1 (patch-Makefile.local) = d0a83ff130de36164f1667236860aa31d481d025 | |
9 | SHA1 (patch-configure) = afbc37cdf886c6b73be4c34903d495cf0589963a | 9 | SHA1 (patch-configure) = fb498d8ca9d74be5e9c46625f0943fbbedee3dcb | |
10 | SHA1 (patch-doc_conf.py) = 7492c878c96da68df16827aa0d6407c2e9808701 | 10 | SHA1 (patch-doc_conf.py) = 7492c878c96da68df16827aa0d6407c2e9808701 | |
11 | SHA1 (patch-emacs_Makefile.local) = 4a36a2c165852a098a45c8b99c8372d65d33b07c | 11 | SHA1 (patch-emacs_Makefile.local) = 4a36a2c165852a098a45c8b99c8372d65d33b07c |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: patch-configure,v 1.1 2019/06/07 13:42:50 ryoon Exp $ | 1 | $NetBSD: patch-configure,v 1.2 2020/03/25 11:06:19 jperkin Exp $ | |
2 | 2 | |||
3 | * Select GnuPG binary | 3 | * Select GnuPG binary | |
4 | 4 | |||
5 | --- configure.orig 2019-06-07 09:46:30.000000000 +0000 | 5 | --- configure.orig 2019-06-07 09:46:30.000000000 +0000 | |
6 | +++ configure | 6 | +++ configure | |
7 | @@ -533,7 +533,7 @@ EOF | 7 | @@ -533,7 +533,7 @@ EOF | |
8 | printf 'No.\nCould not make tempdir for testing session-key support.\n' | 8 | printf 'No.\nCould not make tempdir for testing session-key support.\n' | |
9 | errors=$((errors + 1)) | 9 | errors=$((errors + 1)) | |
10 | elif ${CC} ${CFLAGS} ${gmime_cflags} _check_session_keys.c ${gmime_ldflags} -o _check_session_keys \ | 10 | elif ${CC} ${CFLAGS} ${gmime_cflags} _check_session_keys.c ${gmime_ldflags} -o _check_session_keys \ | |
11 | - && GNUPGHOME=${TEMP_GPG} gpg --batch --quiet --import < test/gnupg-secret-key.asc \ | 11 | - && GNUPGHOME=${TEMP_GPG} gpg --batch --quiet --import < test/gnupg-secret-key.asc \ | |
12 | + && GNUPGHOME=${TEMP_GPG} @GPG@ --batch --quiet --import < test/gnupg-secret-key.asc \ | 12 | + && GNUPGHOME=${TEMP_GPG} @GPGME_GPG@ --batch --quiet --import < test/gnupg-secret-key.asc \ | |
13 | && SESSION_KEY=$(GNUPGHOME=${TEMP_GPG} ./_check_session_keys) \ | 13 | && SESSION_KEY=$(GNUPGHOME=${TEMP_GPG} ./_check_session_keys) \ | |
14 | && [ $SESSION_KEY = 9:0BACD64099D1468AB07C796F0C0AC4851948A658A15B34E803865E9FC635F2F5 ] | 14 | && [ $SESSION_KEY = 9:0BACD64099D1468AB07C796F0C0AC4851948A658A15B34E803865E9FC635F2F5 ] | |
15 | then | 15 | then |