X-Loop: help-debbugs@HIDDEN Subject: [bug#57172] [PATCH] gnu: Add crow-translate. Resent-From: typ22@HIDDEN Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Sat, 13 Aug 2022 12:20:02 +0000 Resent-Message-ID: <handler.57172.B.166039319410261 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 57172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57172 <at> debbugs.gnu.org Cc: tiantian <typ22@HIDDEN> X-Debbugs-Original-To: guix-patches@HIDDEN Received: via spool by submit <at> 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 <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 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-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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: typ22@HIDDEN Subject: bug#57172: Acknowledgement ([PATCH] gnu: Add crow-translate.) Message-ID: <handler.57172.B.166039319410261.ack <at> debbugs.gnu.org> References: <tencent_76187516A70650354F0F6942A68C06F14108@HIDDEN> X-Gnu-PR-Message: ack 57172 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 57172 <at> debbugs.gnu.org Date: Sat, 13 Aug 2022 12:20:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 57172 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 57172: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D57172 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.