[gpgme] no absolute paths (#21626)

This commit is contained in:
autoantwort 2021-11-26 10:02:41 +01:00 committed by GitHub
parent e2b97363d3
commit ca163edd6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 9 deletions

View File

@ -1,4 +1,3 @@
vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports unix platform" ON_TARGET "Windows")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -16,7 +15,7 @@ string(REPLACE ";" "," LANGUAGES "${FEATURES}")
vcpkg_configure_make(
AUTOCONFIG
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
--disable-gpgconf-test
--disable-gpg-test
@ -28,8 +27,16 @@ vcpkg_configure_make(
)
vcpkg_install_make()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Gpgmepp)
vcpkg_copy_pdbs()
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()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
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)

View File

@ -1,13 +1,17 @@
{
"name": "gpgme",
"version-string": "1.14.0",
"port-version": 1,
"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"
"libgpg-error",
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"default-features": [
"cpp"

View File

@ -2538,7 +2538,7 @@
},
"gpgme": {
"baseline": "1.14.0",
"port-version": 1
"port-version": 2
},
"gppanel": {
"baseline": "2020-05-20",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f037926ddc1a092f0db7089609e65ff9f221fa77",
"version-string": "1.14.0",
"port-version": 2
},
{
"git-tree": "e31d219a153f314d3c6ceedb7765ae30a2113daa",
"version-string": "1.14.0",