diff --git a/ports/gexiv2/portfile.cmake b/ports/gexiv2/portfile.cmake index 04fa1ad3d8..e44fe5f0c2 100644 --- a/ports/gexiv2/portfile.cmake +++ b/ports/gexiv2/portfile.cmake @@ -15,20 +15,29 @@ vcpkg_extract_source_archive( msvc_def.patch ) +if("introspection" IN_LIST FEATURES) + list(APPEND feature_options "-Dintrospection=true") + vcpkg_get_gobject_introspection_programs(PYTHON3 GIR_COMPILER GIR_SCANNER) +else() + list(APPEND feature_options "-Dintrospection=false") +endif() + vcpkg_configure_meson( SOURCE_PATH "${SOURCE_PATH}" OPTIONS - -Dintrospection=false + ${feature_options} -Dvapi=false -Dgtk_doc=false -Dpython3=false -Dtests=false -Dtools=false ADDITIONAL_BINARIES - glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums' + "glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'" + "g-ir-compiler='${GIR_COMPILER}'" + "g-ir-scanner='${GIR_SCANNER}'" ) -vcpkg_install_meson() +vcpkg_install_meson(ADD_BIN_TO_PATH) vcpkg_copy_pdbs() diff --git a/ports/gexiv2/vcpkg.json b/ports/gexiv2/vcpkg.json index 394063455d..5b0cfd8116 100644 --- a/ports/gexiv2/vcpkg.json +++ b/ports/gexiv2/vcpkg.json @@ -1,7 +1,7 @@ { "name": "gexiv2", "version": "0.14.3", - "port-version": 2, + "port-version": 3, "description": "A GObject-based Exiv2 wrapper.", "homepage": "https://gitlab.gnome.org/GNOME/gexiv2/", "license": "GPL-2.0-or-later", @@ -16,5 +16,14 @@ "name": "vcpkg-tool-meson", "host": true } - ] + ], + "features": { + "introspection": { + "description": "Enable introspection", + "supports": "!static & !windows", + "dependencies": [ + "gobject-introspection" + ] + } + } } diff --git a/versions/baseline.json b/versions/baseline.json index cbb9ce08f0..d55ec5466b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3298,7 +3298,7 @@ }, "gexiv2": { "baseline": "0.14.3", - "port-version": 2 + "port-version": 3 }, "gflags": { "baseline": "2.3.0", diff --git a/versions/g-/gexiv2.json b/versions/g-/gexiv2.json index 9199d81b33..46c5aae240 100644 --- a/versions/g-/gexiv2.json +++ b/versions/g-/gexiv2.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "9678b2c75bb1e3a83eaa9cfe8a0575a1e6a1b1d6", + "version": "0.14.3", + "port-version": 3 + }, { "git-tree": "fef5255b3edb46d8fd8b574720127964141d52f2", "version": "0.14.3",