From patchwork Mon Jun 7 20:05:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Trofimov X-Patchwork-Id: 30011 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 B5B9927BC81; Mon, 7 Jun 2021 21:06:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED,URIBL_SBL,URIBL_SBL_A autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3487127BC78 for ; Mon, 7 Jun 2021 21:06:13 +0100 (BST) Received: from localhost ([::1]:48212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqLVk-0001dO-94 for patchwork@mira.cbaines.net; Mon, 07 Jun 2021 16:06:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqLVb-0001ZL-0k for guix-patches@gnu.org; Mon, 07 Jun 2021 16:06:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45189) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqLVa-0005jS-An for guix-patches@gnu.org; Mon, 07 Jun 2021 16:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqLVZ-0001Ya-PX for guix-patches@gnu.org; Mon, 07 Jun 2021 16:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48909] [PATCH] gnu: Add goldendict. Resent-From: Sergey Trofimov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Jun 2021 20:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48909 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48909@debbugs.gnu.org Cc: Sergey Trofimov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16230963285919 (code B ref -1); Mon, 07 Jun 2021 20:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jun 2021 20:05:28 +0000 Received: from localhost ([127.0.0.1]:56729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqLV1-0001XP-Ve for submit@debbugs.gnu.org; Mon, 07 Jun 2021 16:05:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:35564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqLV0-0001XI-VY for submit@debbugs.gnu.org; Mon, 07 Jun 2021 16:05:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqLV0-0001VE-QR for guix-patches@gnu.org; Mon, 07 Jun 2021 16:05:26 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:42909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqLUr-0005CR-Im for guix-patches@gnu.org; Mon, 07 Jun 2021 16:05:26 -0400 Received: by mail-wm1-x333.google.com with SMTP id l7-20020a05600c1d07b02901b0e2ebd6deso406651wms.1 for ; Mon, 07 Jun 2021 13:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sarg.org.ru; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z5NzA929V5PUMvbKOGPwrIi5rwk/SthxCwLYfG/8dUg=; b=dfR4oDKRGTvTK9y3Hj9TdbDYx6WdH3YfpCuM9CUBz23lL+CmbTKd9GqI9rjOKveZY3 YqcrVKoeFDhP6t1EEqDUeq2GnMf6Tm9i1+j0jJYsuM53V2bV/PVfr1ixRPVATQVXKIr1 cEHBeklpD/5Ex6lXVbDEixft2fA7lsAYaTmyg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=z5NzA929V5PUMvbKOGPwrIi5rwk/SthxCwLYfG/8dUg=; b=GF6cns78UqvNFoqGt7u1IqqDxOwbkCm2CN8yXp20ssSKel3FG2aCoJnRH8S5uKMPJC iBFcia3X2sQgwSreBPrSHD7EGFvhT8NtO2Q0wC4uZ74SZQffG4JGVeCnCAu5YOZll4TW AAsHthKVTh38Ycc1po8q40PeiBOrRFTK14rYEWuRcgq0b6gTZEB1uPOSkm/hb/rV913a bfFcXYtlqReTcJg+D6ZQ2t00zRxXoWDRpJImaZGxPJS1O+NrFwot45cLYCLAks6Z/oKA jsJwrtbRHirvnyscFnvzyl6ppL3+C8oDtEGBS+pHYBK9ccwPT92+BjigHM1tMGbYH4t+ s80Q== X-Gm-Message-State: AOAM532As0zU+qC72PY5k4JmOL7Wj6/W2gdnQd+oZAC8qepu/qFhul1z DPjTY1qtY6m+L4/AmBhbfNDVD0RjkLQu8w== X-Google-Smtp-Source: ABdhPJzWkQ/QnZNhevdVHurhEMZI/cFiGtBDQ47ROmMJ5m0E0HQ1C5GZ0WqK1JWBABeI8+gDA4zmvg== X-Received: by 2002:a05:600c:2256:: with SMTP id a22mr691156wmm.113.1623096313106; Mon, 07 Jun 2021 13:05:13 -0700 (PDT) Received: from localhost ([92.206.237.187]) by smtp.gmail.com with ESMTPSA id k25sm600688wmi.36.2021.06.07.13.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 13:05:12 -0700 (PDT) From: Sergey Trofimov Date: Mon, 7 Jun 2021 22:05:32 +0200 Message-Id: <20210607200532.27565-1-sarg@sarg.org.ru> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Received-SPF: none client-ip=2a00:1450:4864:20::333; envelope-from=sarg@sarg.org.ru; helo=mail-wm1-x333.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_PDS_PRO_TLD=0.01, URIBL_SBL_A=0.1 autolearn=ham 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 --- gnu/packages/dictionaries.scm | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 2b1f7f0ad1..74e15b884b 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -52,6 +52,12 @@ #:use-module (gnu packages texinfo) #:use-module (gnu packages compression) #:use-module (gnu packages tcl) + #:use-module (gnu packages xiph) + #:use-module (gnu packages libreoffice) + #:use-module (gnu packages xorg) + #:use-module (gnu packages image) + #:use-module (gnu packages qt) + #:use-module (gnu packages video) #:use-module (gnu packages xml)) @@ -398,6 +404,63 @@ intelligible and easily correctable.") (license (list license:gpl2 ; main license license:expat)))) ; utf8/* +(define-public goldendict + (package + (name "goldendict") + (version "2020-12-09") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/goldendict/goldendict.git") + (commit "261e45a5d79f9df2fbc050292410bed0f4ef3132"))) + + (sha256 + (base32 "01pny06d4cmwf998hpqd7xx7mccbbasb8js1bv3rkdi1ljg01f7n")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (invoke "qmake" "goldendict.pro" + "CONFIG+=no_epwing_support" + (string-append "QMAKE_LRELEASE=" + (assoc-ref inputs "qttools") + "/bin/lrelease") + (string-append "PREFIX=" + (assoc-ref outputs "out")))))))) + + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libvorbis" ,libvorbis) + ("zlib" ,zlib) + ("hunspell" ,hunspell) + ("x11proto-record-x11" ,xproto) + ("libtiff" ,libtiff) + ("qtbase" ,qtbase) + ("qtmultimedia" ,qtmultimedia) + ("qtsvg" ,qtsvg) + ("qttools" ,qttools) + ("qtwebkit" ,qtwebkit) + ("qtwebview" ,qtwebview) + ("qtx11extras" ,qtx11extras) + ("libxtst" ,libxtst) + ("lzo" ,lzo) + ("bzip2" ,bzip2) + ("ao" ,ao) + ("ffmpeg" ,ffmpeg))) + (synopsis "A feature-rich dictionary lookup program") + (description + "GoldenDict is a feature-rich dictionary lookup program, +supporting multiple dictionary formats (StarDict, Babylon, Lingvo, Dictd, AARD, +MDict, SDict) and online dictionaries, featuring perfect article rendering with +the complete markup, illustrations and other content retained, and allowing you +to type in words without any accents or correct case.") + (home-page "http://goldendict.org/") + (license license:gpl3+))) + (define-public sdcv (package (name "sdcv")