aboutsummaryrefslogtreecommitdiff
path: root/ports/gpgme/disable-tests.patch
diff options
context:
space:
mode:
authorDawid Wróbel <me@dawidwrobel.com>2020-12-23 02:19:18 -0500
committerGitHub <noreply@github.com>2020-12-22 23:19:18 -0800
commit4cf45e80e3eab2eece9b89e11015920da3a50580 (patch)
tree57065b177c56fe8dec6335dff68354b5357c1b9b /ports/gpgme/disable-tests.patch
parent229f537c9414da5a577484b467a1f7ab0f4d8f34 (diff)
downloadvcpkg-4cf45e80e3eab2eece9b89e11015920da3a50580.tar.gz
vcpkg-4cf45e80e3eab2eece9b89e11015920da3a50580.zip
[many ports] add GnuPG libraries (#13950)
Diffstat (limited to 'ports/gpgme/disable-tests.patch')
-rw-r--r--ports/gpgme/disable-tests.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/ports/gpgme/disable-tests.patch b/ports/gpgme/disable-tests.patch
new file mode 100644
index 000000000..c7158508f
--- /dev/null
+++ b/ports/gpgme/disable-tests.patch
@@ -0,0 +1,51 @@
+From b05747aea79083106b27ac7d829db3e65e192682 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Dawid=20Wro=CC=81bel?= <me@dawidwrobel.com>
+Date: Thu, 29 Oct 2020 13:23:56 -0400
+Subject: [PATCH] cpp,python: Respect --disable-gpg-test for tests
+
+* lang/cpp/Makefile.am: Respect --disable-gpg-test
+* lang/python/Makefile.am: Respect --disable-gpg-test
+
+This is similar to the qt that had it already enabled
+---
+ lang/cpp/Makefile.am | 8 +++++++-
+ lang/python/Makefile.am | 8 +++++++-
+ 2 files changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/lang/cpp/Makefile.am b/lang/cpp/Makefile.am
+index 724da6ca..70ca7462 100644
+--- a/lang/cpp/Makefile.am
++++ b/lang/cpp/Makefile.am
+@@ -18,6 +18,12 @@
+ # License along with this program; if not, see <https://gnu.org/licenses/>.
+ # SPDX-License-Identifier: LGPL-2.1-or-later
+
+-SUBDIRS = src tests
++if RUN_GPG_TESTS
++tests = tests
++else
++tests =
++endif
++
++SUBDIRS = src ${tests}
+
+ EXTRA_DIST = README
+diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
+index 845b7b17..68b98e8e 100644
+--- a/lang/python/Makefile.am
++++ b/lang/python/Makefile.am
+@@ -23,7 +23,13 @@ EXTRA_DIST = \
+ gpgme.i \
+ helpers.c helpers.h private.h
+
+-SUBDIRS = . tests examples doc src
++if RUN_GPG_TESTS
++tests = tests
++else
++tests =
++endif
++
++SUBDIRS = . ${tests} examples doc src
+
+ .PHONY: prepare
+ prepare: copystamp