File tree Expand file tree Collapse file tree 7 files changed +109
-0
lines changed Expand file tree Collapse file tree 7 files changed +109
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/src/KDReportsConfig.cmake.in b/src/KDReportsConfig.cmake.in
2
+ index fa26517..49b9054 100644
3
+ --- a/src/KDReportsConfig.cmake.in
4
+ +++ b/src/KDReportsConfig.cmake.in
5
+ @@ -9,10 +9,10 @@
6
+
7
+ include(CMakeFindDependencyMacro)
8
+
9
+ - find_dependency(Qt@Qt_VERSION_MAJOR@Core @QT_MIN_VERSION@)
10
+ - find_dependency(Qt@Qt_VERSION_MAJOR@Widgets @QT_MIN_VERSION@)
11
+ - find_dependency(Qt@Qt_VERSION_MAJOR@PrintSupport @QT_MIN_VERSION@)
12
+ - find_dependency(Qt@Qt_VERSION_MAJOR@Xml @QT_MIN_VERSION@)
13
+ + find_dependency(Qt@QT_VERSION_MAJOR@Core @QT_MIN_VERSION@)
14
+ + find_dependency(Qt@QT_VERSION_MAJOR@Widgets @QT_MIN_VERSION@)
15
+ + find_dependency(Qt@QT_VERSION_MAJOR@PrintSupport @QT_MIN_VERSION@)
16
+ + find_dependency(Qt@QT_VERSION_MAJOR@Xml @QT_MIN_VERSION@)
17
+
18
+ if (@KDChart_FOUND@)
19
+ find_dependency(KDChart)
Original file line number Diff line number Diff line change
1
+ diff --git a/LICENSE.txt b/LICENSE.txt
2
+ index 110b884..db69306 100644
3
+ --- a/LICENSE.txt
4
+ +++ b/LICENSE.txt
5
+ @@ -3,4 +3,4 @@ License
6
+ The KD Reports Software is © 2007 Klarälvdalens Datakonsult AB (KDAB),
7
+ and is available under the terms of the MIT license.
8
+
9
+ - See the full license text in the LICENSES folder.
10
+ + See the full license text provided below in this file.
Original file line number Diff line number Diff line change
1
+ vcpkg_from_github (
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO KDAB/KDReports
4
+ REF "kdreports-${VERSION} "
5
+ SHA512 f9b3785d71c68d032a0e1420ba3adae517994d257a02df69aaffcff4a8909b24d081c91b4cc9e1cc00311768f92e63b9288a99cfaac8422ebd1cae7321b3edbb
6
+ HEAD_REF master
7
+ PATCHES
8
+ "fix-cmake-config.patch"
9
+ "fix-license-text.patch"
10
+ )
11
+
12
+ string (COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE} " "static" KDReports_STATIC )
13
+
14
+ vcpkg_cmake_configure (
15
+ SOURCE_PATH ${SOURCE_PATH}
16
+ OPTIONS
17
+ -DKDReports_QT6=ON
18
+ -DKDReports_STATIC=${KDReports_STATIC}
19
+ -DKDReports_TESTS=OFF
20
+ -DKDReports_EXAMPLES=OFF
21
+ -DKDReports_DOCS=OFF
22
+ -DCMAKE_DISABLE_FIND_PACKAGE_KDChart-qt6=ON
23
+ )
24
+ vcpkg_cmake_install ()
25
+ vcpkg_copy_pdbs ()
26
+ vcpkg_cmake_config_fixup (PACKAGE_NAME KDReports-qt6 CONFIG_PATH lib/cmake/KDReports-qt6 )
27
+
28
+ file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /share/doc" )
29
+ file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /debug/include" )
30
+ file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /debug/share" )
31
+
32
+ vcpkg_install_copyright (
33
+ FILE_LIST
34
+ "${SOURCE_PATH} /LICENSE.txt"
35
+ "${SOURCE_PATH} /LICENSES/BSD-3-Clause.txt"
36
+ "${SOURCE_PATH} /LICENSES/MIT.txt"
37
+ )
38
+
39
+ file (INSTALL "${CMAKE_CURRENT_LIST_DIR} /usage" DESTINATION "${CURRENT_PACKAGES_DIR} /share/${PORT} " )
Original file line number Diff line number Diff line change
1
+ kdreports provides CMake targets:
2
+
3
+ find_package(KDReports-qt6 CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE KDReports::kdreports)
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " kdreports" ,
3
+ "version" : " 2.3.0" ,
4
+ "description" : " KD Reports is a Qt tool that lets you easily create printable reports by providing all of the necessary features for a variety of applications." ,
5
+ "homepage" : " https://github.com/KDAB/KDReports" ,
6
+ "license" : " MIT" ,
7
+ "dependencies" : [
8
+ {
9
+ "name" : " qtbase" ,
10
+ "default-features" : false ,
11
+ "features" : [
12
+ " widgets"
13
+ ]
14
+ },
15
+ {
16
+ "name" : " vcpkg-cmake" ,
17
+ "host" : true
18
+ },
19
+ {
20
+ "name" : " vcpkg-cmake-config" ,
21
+ "host" : true
22
+ }
23
+ ]
24
+ }
Original file line number Diff line number Diff line change 3948
3948
"baseline" : " 2.1.0" ,
3949
3949
"port-version" : 1
3950
3950
},
3951
+ "kdreports" : {
3952
+ "baseline" : " 2.3.0" ,
3953
+ "port-version" : 0
3954
+ },
3951
3955
"kdsingleapplication" : {
3952
3956
"baseline" : " 1.1.0" ,
3953
3957
"port-version" : 1
Original file line number Diff line number Diff line change
1
+ {
2
+ "versions" : [
3
+ {
4
+ "git-tree" : " 48775584d32659e830bfd206d7e9fd9256d3a802" ,
5
+ "version" : " 2.3.0" ,
6
+ "port-version" : 0
7
+ }
8
+ ]
9
+ }
You can’t perform that action at this time.
0 commit comments