guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/11: gnu: Add opencc.


From: Ludovic Courtès
Subject: 06/11: gnu: Add opencc.
Date: Sat, 10 Nov 2018 17:34:02 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 1a0363cf0794bb7f8149800b665f80728b3635ff
Author: Meiyo Peng <address@hidden>
Date:   Mon Oct 29 11:22:55 2018 +0800

    gnu: Add opencc.
    
    * gnu/packages/textutils.scm (opencc): New variable.
    
    Signed-off-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/textutils.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 084017d..1d498b5 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2017 Alex Vong <address@hidden>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2018 Pierre Neidhardt <address@hidden>
+;;; Copyright © 2018 Meiyo Peng <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -756,3 +757,26 @@ indentation.
 @end itemize\n")
     (home-page "http://docx2txt.sourceforge.net";)
     (license license:gpl3+)))
+
+(define-public opencc
+  (package
+    (name "opencc")
+    (version "1.0.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/BYVoid/OpenCC";
+                           "/archive/ver." version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "01870gbkf711msirf3206k0ajaabypjhnx3fny5wikw0ladn9q8w"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("python" ,python-wrapper)))
+    (home-page "https://github.com/BYVoid/OpenCC";)
+    (synopsis "Convert between Traditional Chinese and Simplified Chinese")
+    (description "Open Chinese Convert (OpenCC) converts between Traditional
+Chinese and Simplified Chinese, supporting character-level conversion,
+phrase-level conversion, variant conversion, and regional idioms among
+Mainland China, Taiwan, and Hong-Kong.")
+    (license license:asl2.0)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]