unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#44659] New package: sdcv
@ 2020-11-15 13:04 luhux
  2020-12-30 13:20 ` bug#44659: " Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: luhux @ 2020-11-15 13:04 UTC (permalink / raw)
  To: 44659

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-gnu-Add-sdcv.patch --]
[-- Type: text/plain, Size: 2586 bytes --]

From 252559fe9ada1e814ff1ddc6019d928d6fb2970b Mon Sep 17 00:00:00 2001
From: luhux <luhux@outlook.com>
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 <contact@parouby.fr>
 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
+;;; Copyright © 2020 Lu hux <luhux@outlook.com>
 ;;;
 ;;; 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#44659: New package: sdcv
  2020-11-15 13:04 [bug#44659] New package: sdcv luhux
@ 2020-12-30 13:20 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2020-12-30 13:20 UTC (permalink / raw)
  To: luhux; +Cc: 44659-done

[-- Attachment #1: Type: text/plain, Size: 566 bytes --]

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   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-30 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 13:04 [bug#44659] New package: sdcv luhux
2020-12-30 13:20 ` bug#44659: " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).