Skip to content

Commit

Permalink
[kf5sonnet] new port (#19199)
Browse files Browse the repository at this point in the history
* Add kf5sonnet port

* [kf5sonnet] remove binaries

* Fixed kf5sonnet for windows

* [kf5sonnet] fix windows build

* [kf5sonnet] update to 5.75.0

* [kf5sonnet] update to 5.84.0

* [kf5sonnet] update versions

* [kf5sonnet] use semver

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>

* [kf5sonnet] replace deprecated functions

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>

* [kf5sonnet] update versions

* [kf5sonnet] DISABLE_PARALLEL_CONFIGURE

* [kf5sonnet] update versions

* [kf5sonnet] fix MAYBE_UNUSED_VARIABLES usage

* [kf5sonnet] update versions

Co-authored-by: Kuntal Majumder <hellozee@disroot.org>
Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 29, 2021
1 parent 5304f82 commit bfa4cea
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
52 changes: 52 additions & 0 deletions ports/kf5sonnet/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/sonnet
REF v5.84.0
SHA512 9e7d121f447e3320c27c3708f5d1d4cc735e775749cded268502b593a0b1f6ea703e68ce1d2d4f1806e0adb73aafaedf660586f8ee740f4a9a834e23cb9880e4
HEAD_REF master
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DBUILD_TESTING=OFF
-DKDE_INSTALL_PLUGINDIR=plugins
-DKDE_INSTALL_DATAROOTDIR=data
-DKDE_INSTALL_QTPLUGINDIR=plugins
-DBUILD_HTML_DOCS=OFF
-DBUILD_MAN_DOCS=OFF
-DBUILD_QTHELP_DOCS=OFF
MAYBE_UNUSED_VARIABLES
BUILD_HTML_DOCS
BUILD_MAN_DOCS
BUILD_QTHELP_DOCS
)

vcpkg_add_to_path(PREPEND "${CURRENT_INSTALLED_DIR}/bin")
vcpkg_add_to_path(PREPEND "${CURRENT_INSTALLED_DIR}/debug/bin")

vcpkg_cmake_install()

file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/gentrigrams${VCPKG_HOST_EXECUTABLE_SUFFIX}" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/gentrigrams${VCPKG_HOST_EXECUTABLE_SUFFIX}")
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/parsetrigrams${VCPKG_HOST_EXECUTABLE_SUFFIX}" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/parsetrigrams${VCPKG_HOST_EXECUTABLE_SUFFIX}")

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/KF5Sonnet)

vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
file(APPEND "${CURRENT_PACKAGES_DIR}/tools/${PORT}/qt.conf" "Data = ${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/data")

vcpkg_copy_pdbs()

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/etc")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/gentrigrams${VCPKG_HOST_EXECUTABLE_SUFFIX}")
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/parsetrigrams${VCPKG_HOST_EXECUTABLE_SUFFIX}")

file(INSTALL ${SOURCE_PATH}/LICENSES/ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
19 changes: 19 additions & 0 deletions ports/kf5sonnet/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "kf5sonnet",
"version-semver": "5.84.0",
"description": "Multi-language spell checker",
"homepage": "https://api.kde.org/frameworks/sonnet/html/index.html",
"dependencies": [
"ecm",
"qt5-base",
"qt5-tools",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2916,6 +2916,10 @@
"baseline": "5.84.0",
"port-version": 0
},
"kf5sonnet": {
"baseline": "5.84.0",
"port-version": 0
},
"kf5syntaxhighlighting": {
"baseline": "5.84.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/k-/kf5sonnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7f6d9ebeec45c6354fd96f1ee04b9e34063e33b0",
"version-semver": "5.84.0",
"port-version": 0
}
]
}

0 comments on commit bfa4cea

Please sign in to comment.