From 252559fe9ada1e814ff1ddc6019d928d6fb2970b Mon Sep 17 00:00:00 2001 From: luhux Date: Sun, 15 Nov 2020 20:47:46 +0800 Subject: [PATCH] gnu: Add sdcv --- gnu/packages/dictionaries.scm | 37 ++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 4e3c1e8803..bfb3216d42 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2018 Pierre-Antoine Rouby ;;; Copyright © 2018 Arun Isaac ;;; Copyright © 2019 Pierre Langlois +;;; Copyright © 2020 Lu hux ;;; ;;; This file is part of GNU Guix. ;;; @@ -32,6 +33,7 @@ #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (guix build-system copy) + #:use-module (guix build-system cmake) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages base) @@ -47,7 +49,9 @@ #:use-module (gnu packages texinfo) #:use-module (gnu packages compression) #:use-module (gnu packages tcl) - #:use-module (gnu packages xml)) + #:use-module (gnu packages xml) + #:use-module (gnu packages glib) + #:use-module (gnu packages ncurses)) (define-public vera @@ -392,3 +396,34 @@ second on ordinary desktop computers) and, in spite of the errors, reasonably intelligible and easily correctable.") (license (list license:gpl2 ; main license license:expat)))) ; utf8/* + +(define-public sdcv + (package + (name "sdcv") + (version "0.5.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Dushistov/sdcv/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "144qpl9b8r2php0zhi9b7vg6flpvdgjy6yfaipydwwhxi4wy9600")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list "-DENABLE_NLS=OFF") ;; can't build + #:tests? #f)) ;; No tests. + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("glib" ,glib) + ("ncurses" ,ncurses) + ("zlib" ,zlib) + ("readline" ,readline))) + (home-page "https://github.com/Dushistov/sdcv/") + (synopsis "Console version of StarDict") + (description "Console version of StarDict") + (license license:gpl2))) -- 2.29.2