From 48ee41e5676874cdffd447faf9bb76b7bbbd0459 Mon Sep 17 00:00:00 2001 From: Bruno Date: Mon, 6 Apr 2026 14:44:24 -0300 Subject: [PATCH] [iso-codes] Add new port (#50955) --- ports/iso-codes/portfile.cmake | 23 +++++++++++++++++++++++ ports/iso-codes/vcpkg.json | 21 +++++++++++++++++++++ versions/baseline.json | 4 ++++ versions/i-/iso-codes.json | 9 +++++++++ 4 files changed, 57 insertions(+) create mode 100644 ports/iso-codes/portfile.cmake create mode 100644 ports/iso-codes/vcpkg.json create mode 100644 versions/i-/iso-codes.json diff --git a/ports/iso-codes/portfile.cmake b/ports/iso-codes/portfile.cmake new file mode 100644 index 0000000000..86f5babeaf --- /dev/null +++ b/ports/iso-codes/portfile.cmake @@ -0,0 +1,23 @@ +# data-only port +set(VCPKG_BUILD_TYPE release) +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) + +vcpkg_from_gitlab( + GITLAB_URL https://salsa.debian.org + OUT_SOURCE_PATH SOURCE_PATH + REPO iso-codes-team/iso-codes + REF "v${VERSION}" + SHA512 2b5690b109da3d4f969c62f1a9653f6a12f6529794b97d0c834d708ff9a407bc0193047992b2acea7525f4638a68dbd9a6dceec8b0b0d08f23a2fd2e3124b1d2 +) + +vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin") + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_install_meson() + +vcpkg_fixup_pkgconfig() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSES/LGPL-2.1-or-later.txt") diff --git a/ports/iso-codes/vcpkg.json b/ports/iso-codes/vcpkg.json new file mode 100644 index 0000000000..d6da1f110b --- /dev/null +++ b/ports/iso-codes/vcpkg.json @@ -0,0 +1,21 @@ +{ + "name": "iso-codes", + "version": "4.20.1", + "description": "Lists of the country, language, and currency names", + "homepage": "https://salsa.debian.org/iso-codes-team/iso-codes", + "license": "LGPL-2.1-or-later", + "dependencies": [ + { + "name": "gettext", + "host": true, + "default-features": false, + "features": [ + "tools" + ] + }, + { + "name": "vcpkg-tool-meson", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 065cf61cd4..4343d136e5 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4048,6 +4048,10 @@ "baseline": "1.15.0", "port-version": 0 }, + "iso-codes": { + "baseline": "4.20.1", + "port-version": 0 + }, "itay-grudev-singleapplication": { "baseline": "3.5.4", "port-version": 0 diff --git a/versions/i-/iso-codes.json b/versions/i-/iso-codes.json new file mode 100644 index 0000000000..8e93681740 --- /dev/null +++ b/versions/i-/iso-codes.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "6abba4c49f45325fda174b29b8d972e9e9bd8195", + "version": "4.20.1", + "port-version": 0 + } + ] +}