Received: (at submit) by debbugs.gnu.org; 13 Aug 2022 12:19:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 13 08:19:54 2022 Received: from localhost ([127.0.0.1]:59943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oMq7N-0002fI-J4 for submit <at> 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 <typ22@HIDDEN>) id 1oMq7K-0002f9-AS for submit <at> 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 <typ22@HIDDEN>) id 1oMq7D-0006Jx-I5 for guix-patches@HIDDEN; 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 <typ22@HIDDEN>) id 1oMq75-0001lB-5u for guix-patches@HIDDEN; 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: <tencent_76187516A70650354F0F6942A68C06F14108@HIDDEN> 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@HIDDEN To: guix-patches@HIDDEN Subject: [PATCH] gnu: Add crow-translate. Date: Sat, 13 Aug 2022 20:18:43 +0800 X-OQ-MSGID: <abae24cffba648d900ce2c9138eb16357ab167a8.1660392807.git.typ22@HIDDEN> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=203.205.221.190; envelope-from=typ22@HIDDEN; 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-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit Cc: tiantian <typ22@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.1 (--) From: tiantian <typ22@HIDDEN> * gnu/packages/dictionaries.scm (crow-translate): New variable. --- gnu/packages/dictionaries.scm | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) 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))) base-commit: bf35cded1837a97be93524046e4c9cc63f3b85f5 -- 2.37.1
typ22@HIDDEN
:guix-patches@HIDDEN
.
Full text available.guix-patches@HIDDEN
:bug#57172
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.