Truly independent web browser
Meta: Update libpsl to version 0.23.3#0
Shannon Booth321649902e22
diff --git a/Meta/CMake/flatpak/org.ladybird.Ladybird.json b/Meta/CMake/flatpak/org.ladybird.Ladybird.jsonindex c0d32cb33e4..3d773aba3bf 100644--- a/Meta/CMake/flatpak/org.ladybird.Ladybird.json+++ b/Meta/CMake/flatpak/org.ladybird.Ladybird.json@@ -230,7 +230,7 @@{"type": "git","url": "https://github.com/rockdaboot/libpsl.git",- "tag": "0.21.5"+ "tag": "0.23.3"},{"type": "file",diff --git a/Meta/CMake/vcpkg/overlay-ports/libpsl/portfile.cmake b/Meta/CMake/vcpkg/overlay-ports/libpsl/portfile.cmakenew file mode 100644index 00000000000..4c3dc2797f1--- /dev/null+++ b/Meta/CMake/vcpkg/overlay-ports/libpsl/portfile.cmake@@ -0,0 +1,53 @@+# NB: This is vcpkg's own libpsl port at a newer version than vcpkg has.+vcpkg_from_github(+ OUT_SOURCE_PATH SOURCE_PATH+ REPO rockdaboot/libpsl+ REF "${VERSION}"+ SHA512 "b9e360fd7eb5f219594de33b705090a68fdf3568b2e017cf6df2d15774bf5165c0976a441648646a5b9a10cb94e292b9bf14e9d0abc1df61697d6d1a9e901ca5"+ HEAD_REF master+)++set(list_ref 0ed17ee161ed2ae551c78f3b399ac8f2724d2154)+string(SUBSTRING "${list_ref}" 0 6 short_hash)+vcpkg_download_distfile(+ PUBLIC_SUFFIX_LIST_DAT+ URLS https://raw.githubusercontent.com/publicsuffix/list/${list_ref}/public_suffix_list.dat+ FILENAME "libpsl-public_suffix_list-${short_hash}.dat"+ SHA512 7969c40b0600baf2786af0e6503b4282d487b6603418c41f28c3b39e9cd9320ac66c0d2e8fbfa2b794e461f26843e3479d60ec24ac5c0990fe8f0c6bfaeee69d+)++vcpkg_list(SET RUNTIME_OPTIONS)+if(libidn2 IN_LIST FEATURES)+ list(APPEND RUNTIME_OPTIONS -Druntime=libidn2)+endif()+if(libicu IN_LIST FEATURES)+ list(APPEND RUNTIME_OPTIONS -Druntime=libicu)+endif()+if(RUNTIME_OPTIONS STREQUAL "")+ message(FATAL_ERROR "At least one of libidn2 and libicu should be selected.")+endif()++vcpkg_configure_meson(+ SOURCE_PATH "${SOURCE_PATH}"+ OPTIONS+ ${RUNTIME_OPTIONS}+ "-Dpsl_file=${PUBLIC_SUFFIX_LIST_DAT}"+ -Ddocs=false+ -Dtests=false+)++vcpkg_install_meson()+vcpkg_fixup_pkgconfig()++if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libpsl.h" "defined PSL_STATIC" "1")+endif()++file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}")+file(RENAME "${CURRENT_PACKAGES_DIR}/bin/psl-make-dafsa" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/psl-make-dafsa")+file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/psl-make-dafsa")+vcpkg_copy_tools(TOOL_NAMES psl AUTO_CLEAN)++file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")++vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")diff --git a/Meta/CMake/vcpkg/overlay-ports/libpsl/vcpkg.json b/Meta/CMake/vcpkg/overlay-ports/libpsl/vcpkg.jsonnew file mode 100644index 00000000000..ab1527659cf--- /dev/null+++ b/Meta/CMake/vcpkg/overlay-ports/libpsl/vcpkg.json@@ -0,0 +1,40 @@+{+ "name": "libpsl",+ "version": "0.23.3",+ "description": "C library for the Public Suffix List",+ "homepage": "https://rockdaboot.github.io/libpsl/",+ "license": "MIT",+ "supports": "!uwp",+ "dependencies": [+ {+ "name": "vcpkg-tool-meson",+ "host": true+ }+ ],+ "default-features": [+ {+ "name": "libicu",+ "platform": "windows"+ },+ {+ "name": "libidn2",+ "platform": "!windows"+ }+ ],+ "features": {+ "libicu": {+ "description": "choose libicu as runtime",+ "supports": "windows",+ "dependencies": [+ "icu"+ ]+ },+ "libidn2": {+ "description": "choose libidn2 as runtime",+ "supports": "!windows",+ "dependencies": [+ "libidn2"+ ]+ }+ }+}diff --git a/vcpkg.json b/vcpkg.jsonindex 4b96edef631..08302671182 100644--- a/vcpkg.json+++ b/vcpkg.json@@ -358,7 +358,7 @@},{"name": "libpsl",- "version": "0.21.5#1"+ "version": "0.23.3#0"},{"name": "libtommath",