Skip to content

Commit

Permalink
Merge pull request microsoft#8858 from zrax/kf5libs
Browse files Browse the repository at this point in the history
[kf5 libs] Update existing and add syntax-highlighting
  • Loading branch information
ras0219-msft authored Feb 4, 2020
2 parents 6f47720 + 1114035 commit a692a06
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 21 deletions.
2 changes: 1 addition & 1 deletion ports/ecm/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: ecm
Version: 5.60.0-2
Version: 5.64.0-1
Homepage: https://github.com/KDE/extra-cmake-modules
Description: Extra CMake Modules (ECM), extra modules and scripts for CMake
4 changes: 2 additions & 2 deletions ports/ecm/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/extra-cmake-modules
REF v5.60.0
SHA512 98c7cbb0a84fbd4806cdf84538cb16717cbbb13fa5cce5c4bf9a507a699c579fa6f88af5091b3d311bdd504a119d6147114b2fad5de2dfd5f18448bca60cdc92
REF v5.64.0
SHA512 849718414912051b7b25bf0787448c03f94afc61d240cdec2b83ea181899d4784361492cab01927e68452798e98b964215e56689fd9e43f608a31d239cdbd7f2
HEAD_REF master
)

Expand Down
4 changes: 2 additions & 2 deletions ports/kf5archive/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: kf5archive
Version: 5.58.0
Version: 5.64.0
Description: File compression
Build-Depends: ecm, qt5-base, zlib, bzip2
Build-Depends: ecm, qt5-base, zlib, bzip2
6 changes: 2 additions & 4 deletions ports/kf5archive/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/karchive
REF v5.58.0
SHA512 8ac1ff25db7e27881cbea640744639a087a8fc87251337bca5c557b3ef3ec2b3490d3d1f2caf8fc22e0671dad1945e9263a59d22e4d1c395bd3b422cbb7ad1de
REF v5.64.0
SHA512 006cd9117eec02e1471b3b0082ee5f21161dc9c52855b6e4be7f3f3614bde9e22a3392f4a90be23654b648a003761bfa70a5497974577da43807eaf56fa126ba
HEAD_REF master
)

Expand Down
4 changes: 2 additions & 2 deletions ports/kf5holidays/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: kf5holidays
Version: 5.58.0
Version: 5.64.0
Description: Holiday calculation library
Build-Depends: ecm, qt5-base, qt5-declarative, qt5-tools
Build-Depends: ecm, qt5-base, qt5-tools
6 changes: 2 additions & 4 deletions ports/kf5holidays/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kholidays
REF v5.58.0
SHA512 1451603816617eef7e37c67085d12f34ce2e4b10db97220222450c9a7c5dc3200479718b86ea39b279bab93651790a8c70941ac1280458de7864ca04f9cf6471
REF v5.64.0
SHA512 a4d9a88bb12b89c636ac63d848505c7895c672ef0e540e7fa45de22fb085048fa5f76729be60fceafbe63ab4b325251fdc65f36b58ab6d9bae7f50678578d4c8
HEAD_REF master
)

Expand Down
4 changes: 2 additions & 2 deletions ports/kf5plotting/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: kf5plotting
Version: 5.58.0
Version: 5.64.0
Homepage: https://api.kde.org/frameworks/kplotting/html/index.html
Description: Lightweight plotting framework
Build-Depends: ecm, qt5-base
Build-Depends: ecm, qt5-base, qt5-tools
8 changes: 4 additions & 4 deletions ports/kf5plotting/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
include(vcpkg_common_functions)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kplotting
REF v5.58.0
SHA512 4d2fd69bad6c3117084811453bd32fdd92d1f1df89dba489e6109caad9268107d908e0df6f3e35a460878aa32fe4744173cf96ff292858d657c49582ee1674fc
REF v5.64.0
SHA512 831b26a5e85a8baa1d49405e1358c7cda62b0a643e85b9677e2ceee413938fd03b96ff2c060dc2e0fa012da0a45452f32b734633ec4c99eecbf9d6228ff722b4
HEAD_REF master
)

Expand All @@ -22,4 +20,6 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5Plotting)
vcpkg_copy_pdbs()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/plugins ${CURRENT_PACKAGES_DIR}/debug/plugins)
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/plugins ${CURRENT_PACKAGES_DIR}/plugins)
file(INSTALL ${SOURCE_PATH}/COPYING.LIB DESTINATION ${CURRENT_PACKAGES_DIR}/share/kf5plotting RENAME copyright)
5 changes: 5 additions & 0 deletions ports/kf5syntaxhighlighting/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Source: kf5syntaxhighlighting
Version: 5.64.0
Homepage: https://github.com/KDE/syntax-highlighting
Description: Syntax highlighting engine for Kate syntax definitions
Build-Depends: ecm, qt5-base, qt5-tools, qt5-xmlpatterns
34 changes: 34 additions & 0 deletions ports/kf5syntaxhighlighting/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/syntax-highlighting
REF v5.64.0
SHA512 b33a136fad0e55054660c34328a208a19834c1adc9cdb9e8f334e9224492f2894bbcb355e61c8f6da6301363a11f832fa7e38cff293be249876048dd34c39476
HEAD_REF master
)

vcpkg_find_acquire_program(PERL)
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
vcpkg_add_to_path("${PERL_EXE_PATH}")

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
)

vcpkg_install_cmake(ADD_BIN_TO_PATH)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KF5SyntaxHighlighting)
vcpkg_copy_pdbs()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/kf5syntaxhighlighting RENAME copyright)

file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/kate-syntax-highlighter.exe)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/kf5syntaxhighlighting)
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/kate-syntax-highlighter.exe
${CURRENT_PACKAGES_DIR}/tools/kf5syntaxhighlighting/kate-syntax-highlighter.exe)

vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/kf5syntaxhighlighting)

0 comments on commit a692a06

Please sign in to comment.