Skip to content

Commit 41b7b12

Browse files
committed
[kf6windowsystem] New port
1 parent c4de8d6 commit 41b7b12

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
INVERTED_FEATURES
19+
translations KF_SKIP_PO_PROCESSING
20+
)
21+
22+
vcpkg_cmake_configure(
23+
SOURCE_PATH "${SOURCE_PATH}"
24+
OPTIONS
25+
-DBUILD_TESTING=OFF
26+
-DKDE_INSTALL_PLUGINDIR=plugins
27+
${FEATURE_OPTIONS}
28+
)
29+
30+
vcpkg_cmake_install()
31+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/KF6WindowSystem)
32+
vcpkg_copy_pdbs()
33+
vcpkg_fixup_pkgconfig()
34+
35+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
36+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
37+
38+
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
39+
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})

ports/kf6windowsystem/vcpkg.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
"translations": {
28+
"description": "Build and install translation files",
29+
"dependencies": [
30+
{
31+
"name": "qttools",
32+
"host": true,
33+
"features": [
34+
"linguist"
35+
]
36+
}
37+
]
38+
}
39+
}
40+
}

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": "64bf4bff6e70f0d053de6b7cc10780f0c1c50c5b",
5+
"version": "6.23.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)