diff options
| author | Kuntal Majumder <12135951+hellozee@users.noreply.github.com> | 2021-08-05 15:37:52 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-05 03:07:52 -0700 |
| commit | aacdf5fd5a538d2e72470deeba8f83da3f3ef681 (patch) | |
| tree | 17802469105f750afbd4af70569115dc2797abf2 | |
| parent | 4caec04fdbcf489010e2936d6b0cfa407b333953 (diff) | |
| download | vcpkg-aacdf5fd5a538d2e72470deeba8f83da3f3ef681.tar.gz vcpkg-aacdf5fd5a538d2e72470deeba8f83da3f3ef681.zip | |
[ libsnoretoast ] new port (#19281)
* Add libsnoretoast port
* Skip the ci check for libsnoretoast on osx and linux
* Add the version baseline
* replace deprecated cmake commands
* Update version database
* make uwp as unsupported
* Update version database
* use copy_tools and add quotes
* Update version database
* removed explicit defaults, made fail on uwp and updated the description
* Update version database
| -rw-r--r-- | ports/libsnoretoast/portfile.cmake | 28 | ||||
| -rw-r--r-- | ports/libsnoretoast/vcpkg.json | 17 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/l-/libsnoretoast.json | 9 |
4 files changed, 58 insertions, 0 deletions
diff --git a/ports/libsnoretoast/portfile.cmake b/ports/libsnoretoast/portfile.cmake new file mode 100644 index 000000000..a9159e3c3 --- /dev/null +++ b/ports/libsnoretoast/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_fail_port_install(ON_TARGET "osx" "linux" "uwp")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KDE/snoretoast
+ REF v0.8.0
+ SHA512 233751b6cc3f8099c742e4412a3c9ba8707a2f3c69b57bab93dd83b028aa0c0656cade8de1ece563843ace576fd0d8e5f3a29c254a07ed939d0a69cd2d4f6c2a
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_STATIC_RUNTIME=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/libsnoretoast")
+vcpkg_copy_tools(
+ TOOL_NAMES "snoretoast"
+ AUTO_CLEAN
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/etc")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+file(INSTALL "${SOURCE_PATH}/COPYING.LGPL-3" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/libsnoretoast/vcpkg.json b/ports/libsnoretoast/vcpkg.json new file mode 100644 index 000000000..bfc244ad5 --- /dev/null +++ b/ports/libsnoretoast/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "libsnoretoast", + "version-semver": "0.8.0", + "description": "A tool to create Windows Toast notifications and parse them on Windows 8 or later.", + "homepage": "https://invent.kde.org/libraries/snoretoast", + "supports": "windows & !uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index b5592ba22..39e52b6a1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3604,6 +3604,10 @@ "baseline": "1.0.31", "port-version": 0 }, + "libsnoretoast": { + "baseline": "0.8.0", + "port-version": 0 + }, "libsodium": { "baseline": "1.0.18", "port-version": 5 diff --git a/versions/l-/libsnoretoast.json b/versions/l-/libsnoretoast.json new file mode 100644 index 000000000..609c6e70e --- /dev/null +++ b/versions/l-/libsnoretoast.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "7ddd1b84089de293b4a9d74af6b7593d089084a9", + "version-semver": "0.8.0", + "port-version": 0 + } + ] +} |
