From 5393705c81abc8f901d15198770cbc61be8f03e2 Mon Sep 17 00:00:00 2001 From: Tal Regev Date: Tue, 4 Feb 2025 15:39:18 +0200 Subject: [PATCH] Add gexiv2 new port --- ports/gexiv2/portfile.cmake | 34 ++++++++++++++++++++++++++++++++++ ports/gexiv2/vcpkg.json | 20 ++++++++++++++++++++ versions/baseline.json | 4 ++++ versions/g-/gexiv2.json | 9 +++++++++ 4 files changed, 67 insertions(+) create mode 100644 ports/gexiv2/portfile.cmake create mode 100644 ports/gexiv2/vcpkg.json create mode 100644 versions/g-/gexiv2.json diff --git a/ports/gexiv2/portfile.cmake b/ports/gexiv2/portfile.cmake new file mode 100644 index 00000000000000..cc7fa6ab04bafc --- /dev/null +++ b/ports/gexiv2/portfile.cmake @@ -0,0 +1,34 @@ +vcpkg_download_distfile(ARCHIVE + URLS "https://download.gnome.org/sources/gexiv2/0.14/gexiv2-${VERSION}.tar.xz" + FILENAME "gexiv2-${VERSION}.tar.xz" + SHA512 24c97fa09b9ee32cb98da4637ea78eb72ae7e2d1792f9ebb31d63e305b3e0e1f6935b8647589c76c39ba631a15c1d8d2f3879c7dff81433786e9533b6348b6a0 +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" + PATCHES +) + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Dintrospection=false + -Dvapi=false + -Dgtk_doc=false + -Dpython3=false + -Dtests=false + -Dtools=false + ADDITIONAL_BINARIES + glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums' +) + +vcpkg_install_meson() + +vcpkg_copy_pdbs() + +vcpkg_fixup_pkgconfig() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") diff --git a/ports/gexiv2/vcpkg.json b/ports/gexiv2/vcpkg.json new file mode 100644 index 00000000000000..37fd04d6ed0412 --- /dev/null +++ b/ports/gexiv2/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "gexiv2", + "version": "0.14.3", + "description": "A GObject-based Exiv2 wrapper.", + "homepage": "https://gitlab.gnome.org/GNOME/gexiv2/", + "license": "GPL-2.0-or-later", + "supports": "!windows | mingw", + "dependencies": [ + "exiv2", + "glib", + { + "name": "glib", + "host": true + }, + { + "name": "vcpkg-tool-meson", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index b65ca1a3505cbe..b70775ebf7aeb2 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3080,6 +3080,10 @@ "baseline": "2017-10-14", "port-version": 6 }, + "gexiv2": { + "baseline": "0.14.3", + "port-version": 0 + }, "gflags": { "baseline": "2.2.2", "port-version": 9 diff --git a/versions/g-/gexiv2.json b/versions/g-/gexiv2.json new file mode 100644 index 00000000000000..53dd677630ef47 --- /dev/null +++ b/versions/g-/gexiv2.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "26bff3144361079f7395a3c835794793e2c8bb62", + "version": "0.14.3", + "port-version": 0 + } + ] +}