Skip to content

Commit 8de519b

Browse files
committed
[kf6windowsystem] New port
1 parent c4de8d6 commit 8de519b

File tree

4 files changed

+103
-0
lines changed

4 files changed

+103
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO KDE/kwindowsystem
4+
REF "v${VERSION}"
5+
SHA512 3d72d5760f4492edc2a02aaac420c431ff4d54f74585f2257aa4171f3c1886584b20899e7178e29a1aca9b3aada26d998327f1b6b302f0dff405e2db625e6561
6+
HEAD_REF master
7+
)
8+
9+
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
10+
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
11+
12+
if(VCPKG_TARGET_IS_LINUX)
13+
message(WARNING "${PORT} currently requires the following libraries from the system package manager:\n libx11-dev libxcb1-dev libxcb-keysyms1-dev libxcb-res0-dev libxcb-icccm4-dev\n libwayland-dev wayland-protocols\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev libxcb1-dev libxcb-keysyms1-dev libxcb-res0-dev libxcb-icccm4-dev libwayland-dev wayland-protocols")
14+
endif()
15+
16+
vcpkg_check_features(
17+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
18+
FEATURES
19+
qml KWINDOWSYSTEM_QML
20+
INVERTED_FEATURES
21+
translations KF_SKIP_PO_PROCESSING
22+
)
23+
24+
vcpkg_cmake_configure(
25+
SOURCE_PATH "${SOURCE_PATH}"
26+
OPTIONS
27+
-DBUILD_TESTING=OFF
28+
-DKDE_INSTALL_PLUGINDIR=plugins
29+
${FEATURE_OPTIONS}
30+
)
31+
32+
vcpkg_cmake_install()
33+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/KF6WindowSystem)
34+
vcpkg_copy_pdbs()
35+
vcpkg_fixup_pkgconfig(SKIP_CHECK)
36+
37+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
38+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
39+
40+
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
41+
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})

ports/kf6windowsystem/vcpkg.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "kf6windowsystem",
3+
"version": "6.23.0",
4+
"description": "Access to the windowing system",
5+
"homepage": "https://invent.kde.org/frameworks/kwindowsystem",
6+
"documentation": "https://api.kde.org/kwindowsystem-index.html",
7+
"dependencies": [
8+
"ecm",
9+
{
10+
"name": "plasma-wayland-protocols",
11+
"platform": "linux"
12+
},
13+
{
14+
"name": "qtbase",
15+
"default-features": false
16+
},
17+
{
18+
"name": "vcpkg-cmake",
19+
"host": true
20+
},
21+
{
22+
"name": "vcpkg-cmake-config",
23+
"host": true
24+
}
25+
],
26+
"features": {
27+
"qml": {
28+
"description": "Build QML bindings",
29+
"dependencies": [
30+
{
31+
"name": "qtdeclarative",
32+
"default-features": false
33+
}
34+
]
35+
},
36+
"translations": {
37+
"description": "Build and install translation files",
38+
"dependencies": [
39+
{
40+
"name": "qttools",
41+
"host": true,
42+
"features": [
43+
"linguist"
44+
]
45+
}
46+
]
47+
}
48+
}
49+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4456,6 +4456,10 @@
44564456
"baseline": "6.23.0",
44574457
"port-version": 0
44584458
},
4459+
"kf6windowsystem": {
4460+
"baseline": "6.23.0",
4461+
"port-version": 0
4462+
},
44594463
"kfr": {
44604464
"baseline": "6.3.1",
44614465
"port-version": 0

versions/k-/kf6windowsystem.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "e51890742a0d55fe4472474f6501a55eb85d6e27",
5+
"version": "6.23.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)