Skip to content

Commit

Permalink
[kdsingleapplication] Fix copyright file (microsoft#42746)
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz authored Dec 17, 2024
1 parent a258b5e commit db3a4f0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
12 changes: 12 additions & 0 deletions ports/kdsingleapplication/fix-license-text.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/LICENSE.txt b/LICENSE.txt
index 12ee586..ac0144d 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,6 +1,6 @@
KDSingleApplication is (C) 2019-2023, Klarälvdalens Datakonsult AB,
and is available under the terms of the MIT license.

-See the full license text in the LICENSES folder.
+See the full license text provided below in this file.

Contact KDAB at <info@kdab.com> to inquire about commercial licensing.
9 changes: 4 additions & 5 deletions ports/kdsingleapplication/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ vcpkg_from_github(
REF "v${VERSION}"
SHA512 12540e70014f04b20529d19bc41bf089580c8a82e407511979017020d3f1d96c60112b208d5abe1e6c4e90ed65d3b0ca9dc2f09f20c8b580c3b8a17ae9a84ae0
HEAD_REF master
PATCHES "fix-license-text.patch"
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KDSingleApplication_STATIC)
Expand All @@ -25,13 +26,11 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(
COPY
vcpkg_install_copyright(
FILE_LIST
"${SOURCE_PATH}/LICENSE.txt"
"${SOURCE_PATH}/LICENSES/BSD-3-Clause.txt"
"${SOURCE_PATH}/LICENSES/MIT.txt"
DESTINATION
"${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSES/"
)

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
1 change: 1 addition & 0 deletions ports/kdsingleapplication/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kdsingleapplication",
"version": "1.1.0",
"port-version": 1,
"description": "KDSingleApplication is a helper class for single-instance policy applications.",
"homepage": "https://github.com/KDAB/KDSingleApplication",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3950,7 +3950,7 @@
},
"kdsingleapplication": {
"baseline": "1.1.0",
"port-version": 0
"port-version": 1
},
"kdsoap": {
"baseline": "2.2.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/k-/kdsingleapplication.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5ee7be30605e7b02d718073e03de51bcbba9e9ad",
"version": "1.1.0",
"port-version": 1
},
{
"git-tree": "97d5185143331c6d5e9f744d6aa0164436ae4e6d",
"version": "1.1.0",
Expand Down

0 comments on commit db3a4f0

Please sign in to comment.