z572 pushed a commit to branch kde-team in repository guix. commit 14ca95dacfe36d8808a19ce2084aaf17a54270f8 Author: Zheng Junjie <zhengjun...@iscas.ac.cn> AuthorDate: Wed Mar 6 18:50:35 2024 +0800
gnu: Add ksyntaxhighlighting-6. * gnu/packages/kde-frameworks.scm (ksyntaxhighlighting-6): New variable. (ksyntaxhighlighting): Inherit above. Change-Id: I7c6cfa1f98137a7ee61ea4d7081c9af5da68cbea --- gnu/packages/kde-frameworks.scm | 57 +++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 284612fc63..9506f6d297 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -1370,10 +1370,10 @@ pixel units.") (list extra-cmake-modules qttools-5)) (arguments '()))) -(define-public ksyntaxhighlighting +(define-public ksyntaxhighlighting-6 (package (name "ksyntaxhighlighting") - (version "5.114.0") + (version "6.1.0") (source (origin (method url-fetch) (uri (string-append @@ -1382,27 +1382,25 @@ pixel units.") "syntax-highlighting-" version ".tar.xz")) (sha256 (base32 - "1skblg2m0sar63qrgkjsg0w9scixggm5qj7lp4gzjn4hwq6m3n63")))) + "1dnacxfrr0llsv2zkn55iywrp3lm8xb7w5fn2pb9fghf5c2ljx0y")))) (build-system cmake-build-system) (native-inputs - (list extra-cmake-modules perl qttools-5 - ;; Optional, for compile-time validation of syntax definition files: - qtxmlpatterns)) + (list extra-cmake-modules perl qttools)) (inputs - (list qtbase-5)) + (list qtbase qtdeclarative)) (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'patch-source-shebangs 'unpatch-source-shebang - (lambda _ - ;; revert the patch-shebang phase on scripts which are - ;; in fact test data - (substitute* '("autotests/input/highlight.sh" - "autotests/folding/highlight.sh.fold") - (((which "sh")) " /bin/sh")) ;; space in front! - (substitute* '("autotests/input/highlight.pl" - "autotests/folding/highlight.pl.fold") - (((which "perl")) "/usr/bin/perl"))))))) + (list #:phases + #~(modify-phases %standard-phases + (add-after 'patch-source-shebangs 'unpatch-source-shebang + (lambda _ + ;; revert the patch-shebang phase on scripts which are + ;; in fact test data + (substitute* '("autotests/input/highlight.sh" + "autotests/folding/highlight.sh.fold") + (((which "sh")) " /bin/sh")) ;; space in front! + (substitute* '("autotests/input/highlight.pl" + "autotests/folding/highlight.pl.fold") + (((which "perl")) "/usr/bin/perl"))))))) (home-page "https://community.kde.org/Frameworks") (synopsis "Syntax highlighting engine for Kate syntax definitions") (description "This is a stand-alone implementation of the Kate syntax @@ -1413,6 +1411,27 @@ integration with a custom editor as well as a ready-to-use (properties `((upstream-name . "syntax-highlighting"))) (license license:lgpl2.1+))) +(define-public ksyntaxhighlighting + (package + (inherit ksyntaxhighlighting-6) + (name "ksyntaxhighlighting") + (version "5.114.0") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://kde/stable/frameworks/" + (version-major+minor version) "/" + "syntax-highlighting-" version ".tar.xz")) + (sha256 + (base32 + "1skblg2m0sar63qrgkjsg0w9scixggm5qj7lp4gzjn4hwq6m3n63")))) + (native-inputs + (list extra-cmake-modules perl qttools-5 + ;; Optional, for compile-time validation of syntax definition files: + qtxmlpatterns)) + (inputs + (list qtbase-5)))) + (define-public plasma-wayland-protocols (package (name "plasma-wayland-protocols")