From a17a5ca06f7f6a7efeba264cffb131173dcb36b1 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Mon, 31 Oct 2022 21:24:38 +0100 Subject: [PATCH] [xapian] no absolute paths (#27497) --- ports/xapian/portfile.cmake | 12 +++++++++--- ports/xapian/vcpkg.json | 3 ++- versions/baseline.json | 2 +- versions/x-/xapian.json | 5 +++++ 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ports/xapian/portfile.cmake b/ports/xapian/portfile.cmake index 2566256fb1876d..bd41b1b97f4ae1 100644 --- a/ports/xapian/portfile.cmake +++ b/ports/xapian/portfile.cmake @@ -4,10 +4,9 @@ vcpkg_download_distfile(ARCHIVE SHA512 4071791daf47f5ae77f32f358c6020fcfa9aa81c15c8da25489b055eef30383695e449ab1cb73670f2f5db2b2a5f78056da0e8eea89d83aaad91dfe340a6b13a ) -vcpkg_extract_source_archive_ex( - OUT_SOURCE_PATH SOURCE_PATH +vcpkg_extract_source_archive( + SOURCE_PATH ARCHIVE "${ARCHIVE}" - ) if(WIN32) @@ -34,5 +33,12 @@ vcpkg_install_make() vcpkg_fixup_pkgconfig() vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/xapian) +if (NOT VCPKG_TARGET_IS_WINDOWS) + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/xapian-config" "\"${CURRENT_INSTALLED_DIR}\"" "`dirname $0`/../../..") + if(NOT VCPKG_BUILD_TYPE) + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/xapian-config" "\"${CURRENT_INSTALLED_DIR}/debug\"" "`dirname $0`/../../../../debug") + endif() +endif() + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY) diff --git a/ports/xapian/vcpkg.json b/ports/xapian/vcpkg.json index 31b7704076f0bc..d185f263b95d0b 100644 --- a/ports/xapian/vcpkg.json +++ b/ports/xapian/vcpkg.json @@ -1,10 +1,11 @@ { "name": "xapian", "version": "1.4.21", + "port-version": 1, "description": "Xapian is an Open Source Search Engine Library, released under the GPL v2+. It's written in C++, with bindings to allow use from Perl, Python 2, Python 3, PHP 5, PHP 7, Java, Tcl, C#, Ruby, Lua, Erlang, Node.js and R (so far!)", "homepage": "https://github.com/xapian/xapian", "license": "GPL-2.0-or-later", - "supports": "!(arm | uwp)", + "supports": "!(windows & arm) & !uwp", "dependencies": [ { "name": "vcpkg-cmake-config", diff --git a/versions/baseline.json b/versions/baseline.json index d814af9f1665de..25cf63af0a4a14 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -8002,7 +8002,7 @@ }, "xapian": { "baseline": "1.4.21", - "port-version": 0 + "port-version": 1 }, "xaudio2redist": { "baseline": "1.2.9", diff --git a/versions/x-/xapian.json b/versions/x-/xapian.json index fd46a42f1158cd..31672ba282450c 100644 --- a/versions/x-/xapian.json +++ b/versions/x-/xapian.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "88d78609c12312fdd2b7260e1c4c1fb3838373b7", + "version": "1.4.21", + "port-version": 1 + }, { "git-tree": "e5f0103eea3c5622af1b593bfca64e9045c55cb5", "version": "1.4.21",