vcpkg/ports/kf5i18n/portfile.cmake
Dawid Wróbel bc96cd54bf
[many ports] Update existing KF5 frameworks to 5.75 (#13467)
* Update KF5 framework to 5.73

kf5crash
  - make x11 patch exclusive to linux
  - enable win/macOS builds
kf5syntaxhighlighting
  - fix building on non-Win by removing the cli tool from all platforms

* Add kf5auth port

* Revert "Add kf5auth port"

This reverts commit 8703c24236.

* Add kf5globalaccel port

* Revert "Add kf5globalaccel port"

This reverts commit f1ac3db8e2.

* [ecm] use  where possible

* [kf5holidays] use PORT placeholder where possible

* [kf5syntaxhighlighting] use PORT placeholder where possible

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5plotting] use PORT placeholder where possible

* [kf5crash] fix logical condition in the patch

* [kf5crash] logical condition again, include other BSDs

* [kf5i18n] acquire python3

* [kf5i18n] remove vcpk cmake wrapper added mistakenly

* Update KF5 framework to 5.73

kf5crash
  - make x11 patch exclusive to linux
  - enable win/macOS builds
kf5syntaxhighlighting
  - fix building on non-Win by removing the cli tool from all platforms

* Add kf5auth port

* Revert "Add kf5auth port"

This reverts commit 8703c24236.

* Add kf5globalaccel port

* Revert "Add kf5globalaccel port"

This reverts commit f1ac3db8e2.

* [ecm] use  where possible

* [kf5holidays] use PORT placeholder where possible

* [kf5syntaxhighlighting] use PORT placeholder where possible

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5plotting] use PORT placeholder where possible

* [kf5crash] fix logical condition in the patch

* [kf5crash] logical condition again, include other BSDs

* [kf5i18n] acquire python3

* [kf5i18n] remove vcpk cmake wrapper added mistakenly

* [ecm] Remove 'skip' from windows baseline

* Fixed KF5ItemModel for windows

* [kf5syntaxhighlighting] fix Windows build

* Fixed k5syntaxhighlighting for windows

* [kf5plotting] fix license files

* [kf5archive] fix license files

* [kf5*] update to 5.75.0

* [kf5holidays] fix sha sum

* [kf5syntaxhighlighting] fix licensing

* [kf5itemviews] fix windows static build

* [kf5widgetsaddons] fix windows static build

* [kf5completion] fix windows static build

* [kf5*] fix windows static build

* [kf5i18n] fix windows static build

* [kf5windowsystem] require libxcb-res0-dev

* [kf5windowsystem] depend on qt5-x11extras

* [qt5] fix brotli reference

* Delete duplicate apt entries.

* kf5crash: fix linux build

* kf5i18n: fix Linux build

* ecm: do not override custom clang format files

* kf5i18n: fix Windows build

* [kf5*] update versions

* [kf5i18n] fix logical NOT

* [kf5syntaxhighlighting] disable parallel configure

* [kf5*] update versions

* [kf5*] convert CONTROL to manifest

* [kf5*] update versions

* [kf5*] update versioning scheme

* [ecm] syntax formatting

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5syntaxhighlighting] syntax formatting

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5holidays] syntax formatting

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

* [kf5archive] restore original line order

* [kf5holidays] restore CRLF

* [kf5archive] restore CRLF

* [kf5syntaxhighlighting] syntax formatting

* [kf5syntaxhighlighting] quotations

* [kf5syntaxhighlighting] fix \bin removal redundancy

* [kf5*] update versions

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Kuntal Majumder <hellozee@disroot.org>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-04-12 10:15:11 -07:00

64 lines
3.2 KiB
CMake

if(NOT VCPKG_TARGET_IS_WINDOWS)
list(APPEND PATCHES "prevent-cmake-failing-with-variable-notfound.patch")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/ki18n
REF v5.75.0
SHA512 9e059afb8c3bd074ecdfcb1bf4cf3c9340159dc9f7276c9bb81abb1fa73fc893229abade8c4fac344ffec555889232d3a789df72974d6f9c7c6437627872a356
PATCHES ${PATCHES}
)
if(CMAKE_HOST_WIN32)
vcpkg_acquire_msys(MSYS_ROOT NO_DEFAULT_PACKAGES DIRECT_PACKAGES
"https://repo.msys2.org/mingw/i686/mingw-w64-i686-gettext-0.19.8.1-9-any.pkg.tar.zst"
c632877544183def8b19659421c5511b87f8339596e1606bd47608277a0bf427d370aba1732915c2832c91f6d525261623401f145b951ff3015f79ac54179c19
"https://repo.msys2.org/mingw/i686/mingw-w64-i686-libiconv-1.16-1-any.pkg.tar.xz"
ba236e1efc990cb91d459f938be6ca6fc2211be95e888d73f8de301bce55d586f9d2b6be55dacb975ec1afa7952b510906284eff70210238919e341dffbdbeb8
"https://repo.msys2.org/mingw/i686/mingw-w64-i686-gcc-libs-10.2.0-1-any.pkg.tar.zst"
113d8b3b155ea537be8b99688d454f781d70c67c810c2643bc02b83b332d99bfbf3a7fcada6b927fda67ef02cf968d4fdf930466c5909c4338bda64f1f3f483e
"https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst"
2c3d9e6b2eee6a4c16fd69ddfadb6e2dc7f31156627d85845c523ac85e5c585d4cfa978659b1fe2ec823d44ef57bc2b92a6127618ff1a8d7505458b794f3f01c
"https://repo.msys2.org/mingw/i686/mingw-w64-i686-mpc-1.1.0-1-any.pkg.tar.xz"
d236b815ec3cf569d24d96a386eca9f69a2b1e8af18e96c3f1e5a4d68a3598d32768c7fb3c92207ecffe531259822c1a421350949f2ffabd8ee813654f1af864
"https://repo.msys2.org/mingw/i686/mingw-w64-i686-mpfr-4.1.0-2-any.pkg.tar.zst"
caac5cb73395082b479597a73c7398bf83009dbc0051755ef15157dc34996e156d4ed7881ef703f9e92861cfcad000888c4c32e4bf38b2596c415a19aafcf893
"https://repo.msys2.org/mingw/i686/mingw-w64-i686-gmp-6.2.0-1-any.pkg.tar.xz"
37747f3f373ebff1a493f5dec099f8cd6d5abdc2254d9cd68a103ad7ba44a81a9a97ccaba76eaee427b4d67b2becb655ee2c379c2e563c8051b6708431e3c588
)
set(GETTEXT_PATH ${MSYS_ROOT}/mingw32/bin)
vcpkg_add_to_path(${GETTEXT_PATH})
endif()
vcpkg_find_acquire_program(PYTHON3)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_HTML_DOCS=OFF
-DBUILD_MAN_DOCS=OFF
-DBUILD_QTHELP_DOCS=OFF
-DBUILD_TESTING=OFF
-DKDE_INSTALL_PLUGINDIR=plugins
-DPYTHON_EXECUTABLE=${PYTHON3}
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5I18n)
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}/bin/data)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin/data)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/etc)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/etc)
file(INSTALL ${SOURCE_PATH}/LICENSES/ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)