early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/Makefile.am b/Makefile.am
index 1772d69..9bf9863 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,7 +45,7 @@ else
tests =
endif
-SUBDIRS = src ${tests} doc lang
+SUBDIRS = src ${tests} lang
# Fix the version of the spec file.
dist-hook: gen-ChangeLog

View File

@@ -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

42
externals/vcpkg/ports/gpgme/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,42 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO gpg/gpgme
REF gpgme-1.14.0
SHA512 b4608fd1d9a4122d8886917274e323afc9a30494c13a3dea51e17e9779f925bf8d67e584434d6a13018f274a6cbcf0a5e36f2fea794a065906bbb556b765398e
HEAD_REF master
PATCHES
disable-tests.patch
disable-docs.patch
)
list(REMOVE_ITEM FEATURES core)
string(REPLACE ";" "," LANGUAGES "${FEATURES}")
vcpkg_configure_make(
AUTOCONFIG
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
--disable-gpgconf-test
--disable-gpg-test
--disable-gpgsm-test
--disable-g13-test
--enable-languages=${LANGUAGES}
--with-libgpg-error-prefix=${CURRENT_INSTALLED_DIR}/tools/libgpg-error
--with-libassuan-prefix=${CURRENT_INSTALLED_DIR}/tools/libassuan
)
vcpkg_install_make()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Gpgmepp)
vcpkg_copy_pdbs()
# We have no dependency on glib, so remove this extra .pc file
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gpgme-glib.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gpgme-glib.pc")
vcpkg_fixup_pkgconfig()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/gpgme/bin/gpgme-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
if (NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/gpgme/debug/bin/gpgme-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../..")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

24
externals/vcpkg/ports/gpgme/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,24 @@
{
"name": "gpgme",
"version-string": "1.14.0",
"port-version": 2,
"description": "A library designed to make access to GnuPG easier for applications",
"homepage": "https://gnupg.org/software/gpgme/index.html",
"supports": "!windows",
"dependencies": [
"libassuan",
"libgpg-error",
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"cpp"
],
"features": {
"cpp": {
"description": "C++ bindings"
}
}
}