[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/20: gnu: Add python2-tegaki-pygtk.
From: |
guix-commits |
Subject: |
05/20: gnu: Add python2-tegaki-pygtk. |
Date: |
Tue, 17 Sep 2019 01:34:22 -0400 (EDT) |
alexvong1995 pushed a commit to branch master
in repository guix.
commit 58ac928925f4593bfc45c723c2f5cd2d93ba995b
Author: Alex Vong <address@hidden>
Date: Thu Aug 8 13:53:26 2019 +0800
gnu: Add python2-tegaki-pygtk.
* gnu/packages/language.scm (python2-tegaki-pygtk): New variable.
---
gnu/packages/language.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 2ef4fed..bc02ff9 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -22,6 +22,7 @@
(define-module (gnu packages language)
#:use-module (gnu packages)
#:use-module (gnu packages glib)
+ #:use-module (gnu packages gtk)
#:use-module (gnu packages ocr)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@@ -29,6 +30,7 @@
#:use-module (gnu packages perl-check)
#:use-module (gnu packages swig)
#:use-module (gnu packages web)
+ #:use-module (gnu packages xorg)
#:use-module (guix packages)
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
@@ -529,3 +531,39 @@ suitable for both the desktop and mobile devices.")
(license (list gpl2+ ; all files except...
bsd-3 ; dictutils.py
zpl2.1)))) ; minjson.py
+
+(define-public python2-tegaki-pygtk
+ (package
+ (inherit python2-tegaki-wagomu)
+ (name "python2-tegaki-pygtk")
+ (version "0.3.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (tegaki-release-uri "tegaki-pygtk" version))
+ (sha256
+ (base32
+ "1cip0azxhjdj2dg2z85cp1z3lz4qwx3w1j7z4xmcm7npapmsaqs2"))
+ (modules remove-pre-compiled-files-modules)
+ (snippet (remove-pre-compiled-files "pyc"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments python2-tegaki-wagomu)
+ ((#:phases _)
+ `(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "tegakigtk/fakekey.py"
+ (("libX11.so.6" so)
+ (string-append (assoc-ref inputs "libx11") "/lib/" so))
+ (("libXtst.so.6" so)
+ (string-append (assoc-ref inputs "libxtst") "/lib/" so)))
+ #t))))))
+ (inputs ; required for sending key strokes
+ `(("libx11" ,libx11)
+ ("libxtst" ,libxtst)))
+ (native-inputs '()) ; override inherited inputs
+ (propagated-inputs
+ `(("python2-pygtk" ,python2-pygtk)
+ ("python2-tegaki-python" ,python2-tegaki-python)))
+ (synopsis "Chinese and Japanese Handwriting Recognition (Base UI library)")
+ (license gpl2+))) ; all files
- branch master updated (82c4ad9 -> 0ed97e6), guix-commits, 2019/09/17
- 02/20: gnu: Add python2-zinnia., guix-commits, 2019/09/17
- 01/20: gnu: Add zinnia., guix-commits, 2019/09/17
- 06/20: gnu: Add python2-tegaki-tools., guix-commits, 2019/09/17
- 08/20: gnu: Add tegaki-zinnia-japanese., guix-commits, 2019/09/17
- 14/20: gnu: Add tegaki-zinnia-traditional-chinese., guix-commits, 2019/09/17
- 18/20: gnu: Add tegaki-wagomu-japanese-joyo., guix-commits, 2019/09/17
- 12/20: gnu: Add tegaki-zinnia-simplified-chinese., guix-commits, 2019/09/17
- 16/20: gnu: Add tegaki-wagomu-japanese., guix-commits, 2019/09/17
- 15/20: gnu: Add tegaki-zinnia-traditional-chinese-light., guix-commits, 2019/09/17
- 05/20: gnu: Add python2-tegaki-pygtk.,
guix-commits <=
- 04/20: gnu: Add python2-tegaki-python., guix-commits, 2019/09/17
- 03/20: gnu: Add python2-tegaki-wagomu., guix-commits, 2019/09/17
- 09/20: gnu: Add tegaki-zinnia-japanese-light., guix-commits, 2019/09/17
- 10/20: gnu: Add tegaki-zinnia-japanese-kyoiku., guix-commits, 2019/09/17
- 07/20: gnu: Add python2-tegaki-recognize., guix-commits, 2019/09/17
- 11/20: gnu: Add tegaki-zinnia-japanese-joyo., guix-commits, 2019/09/17
- 17/20: gnu: Add tegaki-wagomu-japanese-kyoiku., guix-commits, 2019/09/17
- 19/20: gnu: Add tegaki-wagomu-simplified-chinese., guix-commits, 2019/09/17
- 20/20: gnu: Add tegaki-wagomu-traditional-chinese., guix-commits, 2019/09/17
- 13/20: gnu: Add tegaki-zinnia-simplified-chinese-light., guix-commits, 2019/09/17