From 05796ff5e54d54eddc52f9b9d1d0feb5ebfaa67d Mon Sep 17 00:00:00 2001 From: Max Khon Date: Thu, 26 May 2022 09:07:01 +0000 Subject: [PATCH] at-spi2-atk 2.38.0 port at-spi2-core 2.44.1 port --- ports/at-spi2-atk/portfile.cmake | 25 ++++++++++++++++++ ports/at-spi2-atk/vcpkg.json | 16 +++++++++++ ports/at-spi2-core/portfile.cmake | 44 +++++++++++++++++++++++++++++++ ports/at-spi2-core/vcpkg.json | 19 +++++++++++++ versions/a-/at-spi2-atk.json | 9 +++++++ versions/a-/at-spi2-core.json | 9 +++++++ versions/baseline.json | 8 ++++++ 7 files changed, 130 insertions(+) create mode 100644 ports/at-spi2-atk/portfile.cmake create mode 100644 ports/at-spi2-atk/vcpkg.json create mode 100644 ports/at-spi2-core/portfile.cmake create mode 100644 ports/at-spi2-core/vcpkg.json create mode 100644 versions/a-/at-spi2-atk.json create mode 100644 versions/a-/at-spi2-core.json diff --git a/ports/at-spi2-atk/portfile.cmake b/ports/at-spi2-atk/portfile.cmake new file mode 100644 index 00000000000000..b22614b1e06e4a --- /dev/null +++ b/ports/at-spi2-atk/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_gitlab( + OUT_SOURCE_PATH SOURCE_PATH + GITLAB_URL https://gitlab.gnome.org + REPO GNOME/at-spi2-atk + REF AT_SPI2_ATK_2_38_0 + SHA512 d065a22e46f5d9459e14bc81050795e8b60ba8d6650ec9edf90ec6c205e68eb4ea3cc01f096cf636b066439b85892f203bc7a1c9d41f8ca899f29777556aa6cd +) + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Dtests=false +) + +vcpkg_install_meson() + +vcpkg_copy_pdbs() + +vcpkg_fixup_pkgconfig() + +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() diff --git a/ports/at-spi2-atk/vcpkg.json b/ports/at-spi2-atk/vcpkg.json new file mode 100644 index 00000000000000..d6d228e1be6f81 --- /dev/null +++ b/ports/at-spi2-atk/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "at-spi2-atk", + "version": "2.38.0", + "description": "Implementation of the ATK interfaces in terms of the libatspi2 API.", + "homepage": "https://www.gtk.org/", + "license": null, + "supports": "linux", + "dependencies": [ + "at-spi2-core", + "libxml2", + { + "name": "vcpkg-tool-meson", + "host": true + } + ] +} diff --git a/ports/at-spi2-core/portfile.cmake b/ports/at-spi2-core/portfile.cmake new file mode 100644 index 00000000000000..d612daae341e08 --- /dev/null +++ b/ports/at-spi2-core/portfile.cmake @@ -0,0 +1,44 @@ +vcpkg_from_gitlab( + OUT_SOURCE_PATH SOURCE_PATH + GITLAB_URL https://gitlab.gnome.org + REPO GNOME/at-spi2-core + REF AT_SPI2_CORE_2_44_1 + SHA512 4e98b76e019f33af698a5e2b7ae7ce17ce0ff57784b4d505fe4bad58b097080899c1ca82b443502068c5504b60886e2d4a341bba833e0279ebef352211bf3813 +) + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Dintrospection=no + ADDITIONAL_NATIVE_BINARIES + glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal' + glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums' + ADDITIONAL_CROSS_BINARIES + glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal' + glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums' +) + +vcpkg_install_meson() + +vcpkg_copy_pdbs() + +vcpkg_fixup_pkgconfig() + +if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/atspi-2.pc" + "-DG_LOG_DOMAIN=\"dbind\"" "" + ) +endif() +if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/atspi-2.pc" + "-DG_LOG_DOMAIN=\"dbind\"" "" + ) +endif() + +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() diff --git a/ports/at-spi2-core/vcpkg.json b/ports/at-spi2-core/vcpkg.json new file mode 100644 index 00000000000000..bab5f6f62ed462 --- /dev/null +++ b/ports/at-spi2-core/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "at-spi2-core", + "version": "2.44.1", + "description": "Base DBus XML interfaces for accessibility, the accessibility registry daemon, and atspi library.", + "homepage": "https://www.gtk.org/", + "license": null, + "supports": "linux", + "dependencies": [ + "glib", + { + "name": "glib", + "host": true + }, + { + "name": "vcpkg-tool-meson", + "host": true + } + ] +} diff --git a/versions/a-/at-spi2-atk.json b/versions/a-/at-spi2-atk.json new file mode 100644 index 00000000000000..fa2fc46c3a875a --- /dev/null +++ b/versions/a-/at-spi2-atk.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "3964020a18bb3aacefa75099045e07f8150f9671", + "version": "2.38.0", + "port-version": 0 + } + ] +} diff --git a/versions/a-/at-spi2-core.json b/versions/a-/at-spi2-core.json new file mode 100644 index 00000000000000..0915d41533e696 --- /dev/null +++ b/versions/a-/at-spi2-core.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "01a49a230433c035896810ebcb52193a72b7891d", + "version": "2.44.1", + "port-version": 0 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index ad426a70d7b2e0..5eda804ac46cbf 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -204,6 +204,14 @@ "baseline": "1.1", "port-version": 1 }, + "at-spi2-atk": { + "baseline": "2.38.0", + "port-version": 0 + }, + "at-spi2-core": { + "baseline": "2.44.1", + "port-version": 0 + }, "atk": { "baseline": "2.38.0", "port-version": 1