diff --git a/ports/polkit-qt-1/portfile.cmake b/ports/polkit-qt-1/portfile.cmake new file mode 100644 index 0000000000..4cbac64531 --- /dev/null +++ b/ports/polkit-qt-1/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_from_gitlab( + GITLAB_URL https://invent.kde.org + OUT_SOURCE_PATH SOURCE_PATH + REPO libraries/polkit-qt-1 + REF "v${VERSION}" + SHA512 b0ad001846c149cfc81108894a54bea30efddcf6f34fc115a7874c72bd5079e5c21d2d2c16bbf11c9fabe2443878d9369c311e93afdc810b4bb7c95266f25eef + HEAD_REF master +) + +vcpkg_find_acquire_program(PKGCONFIG) +set(ENV{PKG_CONFIG} "${PKGCONFIG}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_EXAMPLES=OFF + -DBUILD_TEST=OFF + -DQT_MAJOR_VERSION=6 +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup( + PACKAGE_NAME polkitqt6-1 + CONFIG_PATH lib/cmake/PolkitQt6-1 +) +vcpkg_fixup_pkgconfig(SKIP_CHECK) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*") +vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES}) diff --git a/ports/polkit-qt-1/vcpkg.json b/ports/polkit-qt-1/vcpkg.json new file mode 100644 index 0000000000..546be3f94b --- /dev/null +++ b/ports/polkit-qt-1/vcpkg.json @@ -0,0 +1,28 @@ +{ + "name": "polkit-qt-1", + "version": "0.201.1", + "description": "Qt6 wrapper around polkit-1", + "homepage": "https://invent.kde.org/libraries/polkit-qt-1", + "license": "LGPL-2.0-or-later", + "supports": "linux", + "dependencies": [ + "glib", + "polkit", + { + "name": "qtbase", + "default-features": false, + "features": [ + "dbus", + "widgets" + ] + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index c2b98bfd55..96a2ea7a8b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7840,6 +7840,10 @@ "baseline": "124", "port-version": 0 }, + "polkit-qt-1": { + "baseline": "0.201.1", + "port-version": 0 + }, "polyclipping": { "baseline": "6.4.2", "port-version": 13 diff --git a/versions/p-/polkit-qt-1.json b/versions/p-/polkit-qt-1.json new file mode 100644 index 0000000000..ee76d9e4d4 --- /dev/null +++ b/versions/p-/polkit-qt-1.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "3f5bd16f441c348d08d34f6b34fe5d33f4f95706", + "version": "0.201.1", + "port-version": 0 + } + ] +}