From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45332) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i070J-0002L7-4U for guix-patches@gnu.org; Tue, 20 Aug 2019 12:29:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i070H-0004HC-U7 for guix-patches@gnu.org; Tue, 20 Aug 2019 12:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i070H-0004H0-Qj for guix-patches@gnu.org; Tue, 20 Aug 2019 12:29:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i070H-0001tH-Lq for guix-patches@gnu.org; Tue, 20 Aug 2019 12:29:01 -0400 Subject: [bug#37098] [PATCH 05/20] gnu: Add python2-tegaki-pygtk. References: <864l2bx2yz.fsf@gmail.com> In-Reply-To: <864l2bx2yz.fsf@gmail.com> Resent-Message-ID: From: Alex Vong Date: Wed, 21 Aug 2019 00:27:58 +0800 Message-ID: <86tvabu7ht.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37098@debbugs.gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0005-gnu-Add-python2-tegaki-pygtk.patch Content-Transfer-Encoding: quoted-printable From=20e6f96553078b289da61a325130d0ef2bd0ec41d0 Mon Sep 17 00:00:00 2001 From: Alex Vong Date: Thu, 8 Aug 2019 13:53:26 +0800 Subject: [PATCH 05/20] gnu: Add python2-tegaki-pygtk. * gnu/packages/language.scm (python2-tegaki-pygtk): New variable. =2D-- gnu/packages/language.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm index 2ef4fed721..bc02ff9681 100644 =2D-- 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-wagom= u) + ((#: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 libra= ry)") + (license gpl2+))) ; all files =2D-=20 2.22.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQwb8uPLAHCXSnTBVZh71Au9gJS8gUCXVwfjgAKCRBh71Au9gJS 8pnVAP0XNVE8urHshpckrG3wbC4+2uV8aFh9N2TAZpraKpiDJAD/VPTHA33s50xa wnqLSlY2KbEy3bqyx1Cowv5KSW2NcwE= =mV3w -----END PGP SIGNATURE----- --==-=-=--