From patchwork Tue Aug 20 16:30:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Vong X-Patchwork-Id: 15002 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 20549172F7; Tue, 20 Aug 2019 17:31:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id D96F3172F5 for ; Tue, 20 Aug 2019 17:31:11 +0100 (BST) Received: from localhost ([::1]:39582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i072N-0004A3-BM for patchwork@mira.cbaines.net; Tue, 20 Aug 2019 12:31:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45575) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i072G-00047O-1g for guix-patches@gnu.org; Tue, 20 Aug 2019 12:31:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i072E-000620-SE for guix-patches@gnu.org; Tue, 20 Aug 2019 12:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i072E-00061s-OZ for guix-patches@gnu.org; Tue, 20 Aug 2019 12:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i072E-0002v3-Ii for guix-patches@gnu.org; Tue, 20 Aug 2019 12:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37098] [PATCH 08/20] gnu: Add tegaki-zinnia-japanese. References: <864l2bx2yz.fsf@gmail.com> In-Reply-To: <864l2bx2yz.fsf@gmail.com> Resent-From: Alex Vong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Aug 2019 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37098 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37098@debbugs.gnu.org Received: via spool by 37098-submit@debbugs.gnu.org id=B37098.15663186258838 (code B ref 37098); Tue, 20 Aug 2019 16:31:02 +0000 Received: (at 37098) by debbugs.gnu.org; 20 Aug 2019 16:30:25 +0000 Received: from localhost ([127.0.0.1]:33796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i071d-0002I5-3O for submit@debbugs.gnu.org; Tue, 20 Aug 2019 12:30:25 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i071c-0002C8-0y for 37098@debbugs.gnu.org; Tue, 20 Aug 2019 12:30:24 -0400 Received: by mail-pf1-f196.google.com with SMTP id o70so3698384pfg.5 for <37098@debbugs.gnu.org>; Tue, 20 Aug 2019 09:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=CpIGg7Z5ODH25ANP5ESkZRBacwTBY4l6V7vKW/R5qLE=; b=KbOlkz6iWVZajYhU+9nFGvNs0dN3XWZ3nyStqW3a/37Vk+NDeWZnj8LJtIyRhzqzAu KNrmfTlYoe14MOKRhZ2AUc3YFiEctgmg3So3/OCYCn1XOTodYe1eZ3XyD+4PbARDKiRC ORpcjNtR91sIm7uXulCqz4AdDkZvmFVQUcHhW8ApgUMC6PsA6b+1Ycv7F5KEpzkMfaMj djiaHKaAK+APcMgmfI/HVkcTkJcei8mpx1eYhcc04qVU9fLwzYEVLDnaNfwKIzSIisNk EDLWapKWQm1xb6lIHr13jHEFCmbGhHJhttf21QWWHeiorWqN0zEbTRtiI8l/O5435WTd Bxbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=CpIGg7Z5ODH25ANP5ESkZRBacwTBY4l6V7vKW/R5qLE=; b=n1F0jKuR8lbmI89CjKXKuapGlLm7MLAYMrY2opZ7t1Zty9rdMfnEdbRubIqcqREERH 7UI/O0qhtlAQsodp3kRAwEmufwK53AaPcv94LuGb0JY/OUgxGnoNlrHkkbHGwFWECZtN Mmtu9T7yIdKk4MOIHtu6GdctryNTJr6pR74kG55v7S3xT1/WrA+BGiYAgUamLKbQD6+g 8YNo5cE27RK0tdkYHtFWKrJGBrFnF75A5aXSXtLIWaM47mVMqLBQg42pd+DtwKOrTKaj YJckxO+jzzhGecYPs0jO3Ww6Ks/0LiAFwolSMy7Hvp5399e4JxJhmXZAdNjayEeMFNk5 irhw== X-Gm-Message-State: APjAAAXEr2414+o8tBFFgb/aaZbgXMDQLaQEAxHFQKQDoXgqYvJDyoT/ cAELaU6u6gbWVFYIZrquvRokVETJ X-Google-Smtp-Source: APXvYqzXvjFghYmbrFgS2sL+zzsW6JU3pnU6INDniHkXLlZifKjQRfVD7Fh9uMWU59hnTKSwplkyig== X-Received: by 2002:a17:90a:2767:: with SMTP id o94mr805385pje.25.1566318612861; Tue, 20 Aug 2019 09:30:12 -0700 (PDT) Received: from debian (1-64-82-217.static.netvigator.com. [1.64.82.217]) by smtp.gmail.com with ESMTPSA id v8sm19686092pgs.82.2019.08.20.09.30.11 for <37098@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 09:30:12 -0700 (PDT) User-agent: mu4e 1.2.0; emacs 26.2 From: Alex Vong Date: Wed, 21 Aug 2019 00:30:09 +0800 Message-ID: <86pnkzu7e6.fsf@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 6cdacc2aec203aef13de7dfe10da20b9bb61fa04 Mon Sep 17 00:00:00 2001 From: Alex Vong Date: Thu, 8 Aug 2019 14:03:26 +0800 Subject: [PATCH 08/20] gnu: Add tegaki-zinnia-japanese. * gnu/packages/language.scm (tegaki-zinnia-japanese): 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 ad7cf2a4b3..db5a7cb8d2 100644 --- a/gnu/packages/language.scm +++ b/gnu/packages/language.scm @@ -32,6 +32,7 @@ #:use-module (gnu packages web) #:use-module (gnu packages xorg) #:use-module (guix packages) + #:use-module (guix build-system gnu) #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module ((guix licenses) @@ -648,3 +649,40 @@ suitable for both the desktop and mobile devices.") #t)))))) (synopsis "Chinese and Japanese Handwriting Recognition (Main program)") (license gpl2+)))) ; all files + +(define-public tegaki-zinnia-japanese + (package + (inherit python2-tegaki-wagomu) + (name "tegaki-zinnia-japanese") + (version "0.3") + (source + (origin + (method url-fetch) + (uri (tegaki-release-uri name version "zip")) + (sha256 + (base32 + "1nmg9acxhcqly9gwkyb9m0hpy76fll91ywk4b1q4xms0ajxip1h7")) + (modules remove-pre-compiled-files-modules) + (snippet (remove-pre-compiled-files "model")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" + (("/usr/local") + (assoc-ref outputs "out"))) + #t))))) + ;; override inherited inputs + (inputs '()) + (native-inputs + `(("python2-tegaki-tools" ,python2-tegaki-tools))) + (propagated-inputs '()) + (native-search-paths + (list (search-path-specification + (variable "TEGAKI_MODEL_PATH") + (files '("share/tegaki/models"))))) + (synopsis "Chinese and Japanese Handwriting Recognition (Model)") + (license lgpl2.1))) ; all files -- 2.22.0