From cd5ebae25e76f9f1c91934b5c0f4a54e4e3086a9 Mon Sep 17 00:00:00 2001 From: Sughosha Date: Sat, 12 Aug 2023 23:05:50 +0200 Subject: [PATCH] gnu: Add kimageannotator. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/kde-frameworks.scm (kimageannotator): New variable. Signed-off-by: 宋文武 --- gnu/packages/kde-frameworks.scm | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm index 5bf09289b5..9778d9a1c6 100644 --- a/gnu/packages/kde-frameworks.scm +++ b/gnu/packages/kde-frameworks.scm @@ -50,6 +50,7 @@ #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages calendar) + #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages databases) #:use-module (gnu packages docbook) @@ -1842,6 +1843,43 @@ used by file indexers to retrieve the metadata. This library can also be used by applications to write metadata.") (license (list license:lgpl2.0 license:lgpl2.1 license:lgpl3)))) +(define-public kimageannotator + (package + (name "kimageannotator") + (version "0.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ksnip/kImageAnnotator") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gm85d1cnhf51ssj0gs2253fifl48r05d3q5s93jwk3jkq01inll")))) + (build-system qt-build-system) + (arguments + (list #:configure-flags #~'("-DBUILD_TESTS=ON") + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda _ + ;; 1 test requires a running X server, it calls + ;; 'XCloseDisplay'. + (system "Xvfb :1 -screen 0 640x480x24 &") + (setenv "DISPLAY" ":1") + (invoke "ctest" "--test-dir" "tests")))))) + (native-inputs + (list qttools-5 xorg-server-for-tests)) + (inputs + (list googletest qtsvg-5 kcolorpicker)) + (propagated-inputs + (list qtbase-5)) + (home-page "https://github.com/ksnip/kImageAnnotator") + (synopsis "Image annotating library") + (description "This library provides tools to annotate images.") + (license license:lgpl3+))) + (define-public kimageformats (package (name "kimageformats")