aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hansen <zrax0111@gmail.com>2019-11-01 16:51:40 -0700
committerMichael Hansen <zrax0111@gmail.com>2019-12-21 12:47:39 -0800
commit7c47da60af3f6df4743487dfe1f696b65b676702 (patch)
tree47ae3782e1a608bcfbb1a6c852a889a881ac7e5d
parent9dd6ebbc4120158f6e839973e356aebccbcb4e6f (diff)
downloadvcpkg-7c47da60af3f6df4743487dfe1f696b65b676702.tar.gz
vcpkg-7c47da60af3f6df4743487dfe1f696b65b676702.zip
Add port for kf5syntaxhighlighting.
-rw-r--r--ports/kf5syntaxhighlighting/CONTROL4
-rw-r--r--ports/kf5syntaxhighlighting/portfile.cmake36
2 files changed, 40 insertions, 0 deletions
diff --git a/ports/kf5syntaxhighlighting/CONTROL b/ports/kf5syntaxhighlighting/CONTROL
new file mode 100644
index 000000000..1682c88b8
--- /dev/null
+++ b/ports/kf5syntaxhighlighting/CONTROL
@@ -0,0 +1,4 @@
+Source: kf5syntaxhighlighting
+Version: 5.64.0
+Description: Syntax highlighting engine for Kate syntax definitions
+Build-Depends: ecm, qt5-base, qt5-tools, qt5-xmlpatterns
diff --git a/ports/kf5syntaxhighlighting/portfile.cmake b/ports/kf5syntaxhighlighting/portfile.cmake
new file mode 100644
index 000000000..83ee02241
--- /dev/null
+++ b/ports/kf5syntaxhighlighting/portfile.cmake
@@ -0,0 +1,36 @@
+include(vcpkg_common_functions)
+
+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)