From patchwork Sat Aug 13 12:18:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tiantian X-Patchwork-Id: 41606 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 3C3A827BBEA; Sat, 13 Aug 2022 13:20:50 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9E16A27BBE9 for ; Sat, 13 Aug 2022 13:20:49 +0100 (BST) Received: from localhost ([::1]:42362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMq8G-0006UO-Np for patchwork@mira.cbaines.net; Sat, 13 Aug 2022 08:20:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMq7W-0006Sp-ON for guix-patches@gnu.org; Sat, 13 Aug 2022 08:20:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41965) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMq7W-0001uh-6o for guix-patches@gnu.org; Sat, 13 Aug 2022 08:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMq7W-0002g9-2Y for guix-patches@gnu.org; Sat, 13 Aug 2022 08:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57172] [PATCH] gnu: Add crow-translate. Resent-From: typ22@foxmail.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Aug 2022 12:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57172@debbugs.gnu.org Cc: tiantian X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166039319410261 (code B ref -1); Sat, 13 Aug 2022 12:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Aug 2022 12:19:54 +0000 Received: from localhost ([127.0.0.1]:59943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMq7N-0002fI-J4 for submit@debbugs.gnu.org; Sat, 13 Aug 2022 08:19:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:57638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMq7K-0002f9-AS for submit@debbugs.gnu.org; Sat, 13 Aug 2022 08:19:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMq7D-0006Jx-I5 for guix-patches@gnu.org; Sat, 13 Aug 2022 08:19:50 -0400 Received: from out203-205-221-190.mail.qq.com ([203.205.221.190]:56412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMq75-0001lB-5u for guix-patches@gnu.org; Sat, 13 Aug 2022 08:19:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1660393162; bh=92FAapmxDc/YxOLxXbfelmf2nUFfYuBV/mfcOqwTcUQ=; h=From:To:Cc:Subject:Date; b=qobhObPQIwHG2y/yOSg1niT7dBUVP/8WC+uoBTNqTIhxZrg8VUp2QV9LFLdbv+Dh6 bJYBk6K2It+gukQws44hPkh0QXIrR2zBSkQHkQh+hkUUy9wGtW5UPCsnxfCM6chAGY A9RBo1rn9bPE9bSqk7tXIfisGjLwNSaLTzka392Y= Received: from tt-arch.localdomain ([240e:398:28a8:8a61:93cb:904f:d3de:9a6d]) by newxmesmtplogicsvrsza32.qq.com (NewEsmtp) with SMTP id 4D50DC2C; Sat, 13 Aug 2022 20:19:21 +0800 X-QQ-mid: xmsmtpt1660393161th89mw21i Message-ID: X-QQ-XMAILINFO: MVKy59SpMLfUQDhkgKZs8cpf9S2W11e6tIl2AZpIJnggtj4vUGRh6TdWU/lsOo RKQiqFHC3bzBQfn7jxkK7IK2rJ0IoDZE88EKCUVNdV/EIAXsnVhmUpvaZ7eytTK7uocZO5lukLC2 Hq+Nn77nxqZABEf6hOlh+scDKEoA40YDhPGb/fozCLG3lOjvKdkL/exkL9ZEgS1q29wZ9QzK7QA/ tescGUgEPS130zjyewxgJFdNhh1Ycl5MNjATdRqU7les8C7Hn6xca56Ll6B+Dhg9EWhwSyRd8N/L AkpDO1qlKP3f5HBJWfWLLGdElU2eMSJQdkahP3r+xLHernEZCvC7EYt0+n2pGF1POu7FvHuZK8Tb rgEigEP8SYTFCd80j6aQZE/7bTgPSWlJowmwdbq9WMPfkDyKt7LD5QvSebpvoulXKoHWIc0p7pGw pKgw8qGi9prh+N+HmXsnMQeobJJe6ZFwlYnaxfW/AtxhwOzPzXMxzG5EEDwD76bE6DSNJMhqWwz6 mDslwlm44SWGavfVE9aDpsmAQU4zYXNzS/CvqJ5YPu+povH3/Bxko0Wm5MLGWDI+++dTMJGhojB3 baGr39cGrao9fAWQpUocvRjCoK4RrMkEJyKmTY+0PB3RUVRQSImWaBJwE7AB0Np7XIoRL5S/YgaC LKOkryiLVRe1m4viEPjJrfNRgWjgGvnyvi4rZPcOXdhm4CDizwBNp0XlKHvaVHHokW/eKpNi9jSZ tRVHKXadOSTfi8tQbQzG2SWrx/Noc5JvEwj0Q0VmKlBPExnyWgGqxocuQZNjpQmM2q8oJNSH6yD2 t6gjRtiHKBe66+7D2PzrquoM6VtBrWWN74PSWYNp54VB51jG2wee/OFZU2fIbLU5KPpTM2rkDova aO7wY0FqTJAKCdvnrMgVvKwVT1Y+DT7j9iBaOyWuU/kvCgY5aXeZXAro6hR8+b2g== From: typ22@foxmail.com Date: Sat, 13 Aug 2022 20:18:43 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Received-SPF: pass client-ip=203.205.221.190; envelope-from=typ22@foxmail.com; helo=out203-205-221-190.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: tiantian * gnu/packages/dictionaries.scm (crow-translate): New variable. --- gnu/packages/dictionaries.scm | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) base-commit: bf35cded1837a97be93524046e4c9cc63f3b85f5 diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index f9d6e57877..d2f422dbc8 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -27,6 +27,7 @@ (define-module (gnu packages dictionaries) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (guix gexp) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system gnu) @@ -38,16 +39,21 @@ (define-module (gnu packages dictionaries) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages curl) + #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) #:use-module (gnu packages flex) #:use-module (gnu packages fribidi) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages image) + #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) + #:use-module (gnu packages ocr) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages qt) #:use-module (gnu packages readline) #:use-module (gnu packages texinfo) #:use-module (gnu packages compression) @@ -431,3 +437,46 @@ (define-public sdcv (description "sdcv is simple text-based utility for work with dictionaries in StarDict's format.") (license license:gpl2+))) + +(define-public crow-translate + (package + (name "crow-translate") + (version "2.9.12") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/crow-translate/crow-translate") + (commit version) + (recursive? #t))) + (sha256 + (base32 + "0xvw81wlgymj2cvjia1xfhgdl5x9fjxzy698fc15jpk6ilfk6s9l")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f + #:phases #~(modify-phases %standard-phases + (delete 'patch-dot-desktop-files) + (add-after 'unpack 'patch-desktop-file + (lambda _ + (let ((file + "data/io.crow_translate.CrowTranslate.desktop") + (exec-program #$(file-append qttools-5 + "/bin/qdbus"))) + (substitute* file + (("Exec=qdbus") + (string-append "Exec=" exec-program))))))))) + (inputs (list kwayland + leptonica + qtbase-5 + qttools-5 + qtx11extras + qtmultimedia-5 + tesseract-ocr)) + (native-inputs (list doxygen extra-cmake-modules pkg-config)) + (synopsis "Simple and lightweight translator") + (description "@code{Crow Translate} is a simple and lightweight translator +written in C++/Qt that allows you to translate and speak text using Google, +Yandex Bing, LibreTranslate and Lingva.") + (home-page "https://crow-translate.github.io/") + (license license:gpl3)))