Subject: bug#44659: closed (Re: [bug#44659] New package: sdcv)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 30 Dec 2020 13:21:02 +0000

Your bug report

#44659: New package: sdcv

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
44659: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44659
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#44659] New package: sdcv
From: Efraim Flashner <[email-masked]>
To: luhux <[email-masked]>
Cc: [email-masked]
Date: Wed, 30 Dec 2020 15:20:15 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Sorry for taking so long to get to this package.

I was able to enable the tests by passing "-DENABLE_TESTS=YES" to
configure-flags, and I was able to build the languages by adding an
extra phase to run 'make lang'. I expanded the description a bit and
re-ordered the module imports and the package inputs alphabetically.

Patch pushed! Thanks.

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Subject: New package: sdcv
From: luhux <[email-masked]>
To: [email-masked]
Date: Sun, 15 Nov 2020 13:04:13 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

>From 252559fe9ada1e814ff1ddc6019d928d6fb2970b Mon Sep 17 00:00:00 2001
From: luhux <[email-masked]>
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 <[email-masked]>
 ;;; Copyright © 2018 Arun Isaac <[email-masked]>
 ;;; Copyright © 2019 Pierre Langlois <[email-masked]>
+;;; Copyright © 2020 Lu hux <[email-masked]>
 ;;;
 ;;; 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