From patchwork Mon Dec 3 16:50:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 385 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 915E5167E4; Mon, 3 Dec 2018 17:29:51 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id 1F1C0167E0 for ; Mon, 3 Dec 2018 17:29:51 +0000 (GMT) Received: from localhost ([::1]:50916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTs2X-0000sW-T6 for patchwork@mira.cbaines.net; Mon, 03 Dec 2018 12:29:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTrS1-0000nq-Sp for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTrRy-0002ac-3G for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:55110) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTrRx-0002aS-Uj for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gTrRx-0007tQ-Ra for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33540] [PATCH v2 1/3] gnu: dictionaries: Use license prefix. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Dec 2018 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33540 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33540@debbugs.gnu.org Received: via spool by 33540-submit@debbugs.gnu.org id=B33540.154385587030241 (code B ref 33540); Mon, 03 Dec 2018 16:52:01 +0000 Received: (at 33540) by debbugs.gnu.org; 3 Dec 2018 16:51:10 +0000 Received: from localhost ([127.0.0.1]:59362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTrR2-0007rH-TV for submit@debbugs.gnu.org; Mon, 03 Dec 2018 11:51:10 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:41676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTrR0-0007qj-1D for 33540@debbugs.gnu.org; Mon, 03 Dec 2018 11:51:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FfYIWYMh1qWRdButzS3lMFNoxhSYlj92viI7FbuMeTA=; b=Or0r/57ACiGigVMxnpaf6/3/0K WMykyhUZiXoPJ/AO/EO0E7021IiZncIak5jojS/5CeaW8F6gBOCCmrg7QXIEDfa1sEaI+9ayFvo9m UG69F2GxmNodWx3+uCJcq90wQiVIY5sHaa7asy+XcvfeJ+uqWvGxihLQ95RLZQDchBpc=; Received: from [103.5.134.173] (helo=steel.lan) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gTrQv-0000kc-O2; Mon, 03 Dec 2018 22:20:58 +0530 From: Arun Isaac Date: Mon, 3 Dec 2018 22:20:21 +0530 Message-Id: <20181203165024.25334-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181203165024.25334-1-arunisaac@systemreboot.net> References: <20181203165024.25334-1-arunisaac@systemreboot.net> 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: 208.118.235.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 * gnu/packages/dictionaries.scm: Import (guix licenses) with license: prefix. Fix all license fields. --- gnu/packages/dictionaries.scm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 3d58589e5..57aac87fc 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2017, 2018 Nicolas Goaziou ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018 Pierre-Antoine Rouby +;;; Copyright © 2018 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,7 +23,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages dictionaries) - #:use-module (guix licenses) + #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) @@ -87,7 +88,7 @@ (description "V.E.R.A. (Virtual Entity of Relevant Acronyms) is a list of computing acronyms distributed as an info document.") - (license fdl1.3+))) + (license license:fdl1.3+))) (define-public gcide (package @@ -125,7 +126,7 @@ acronyms distributed as an info document.") be used via the GNU Dico program or accessed online at http://gcide.gnu.org.ua/") (home-page "http://gcide.gnu.org.ua/") - (license gpl3+))) + (license license:gpl3+))) (define-public diction ;; Not quite a dictionary, not quite a spell checker either… @@ -147,7 +148,7 @@ Diction is used to identify wordy and commonly misused phrases in a body of text. Style instead analyzes surface aspects of a written work, such as sentence length and other readability measures.") (home-page "https://www.gnu.org/software/diction/") - (license gpl3+))) + (license license:gpl3+))) (define-public ding (package @@ -207,7 +208,7 @@ work, such as sentence length and other readability measures.") (description "Ding is a dictionary lookup program for the X window system. It comes with a German-English dictionary with approximately 270,000 entries.") (home-page "http://www-user.tu-chemnitz.de/~fri/ding/") - (license gpl2+))) + (license license:gpl2+))) (define-public grammalecte (package @@ -234,7 +235,7 @@ a dubious expression is wrong, it will keep silent. The package provides the command line interface, along with a server and a Python library.") - (license gpl3+))) + (license license:gpl3+))) (define-public translate-shell (package @@ -283,4 +284,5 @@ and a Python library.") translator powered by Google Translate (default), Bing Translator, Yandex.Translate and Apertium. It gives you easy access to one of these translation engines from your terminal.") - (license public-domain))) + (license license:public-domain))) + From patchwork Mon Dec 3 16:50:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 384 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 74908167E4; Mon, 3 Dec 2018 17:29:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id EFA89167E0 for ; Mon, 3 Dec 2018 17:29:31 +0000 (GMT) Received: from localhost ([::1]:50914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTs2E-0000hr-Si for patchwork@mira.cbaines.net; Mon, 03 Dec 2018 12:29:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTrS1-0000ns-Sq for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTrRy-0002d8-HU for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:55111) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTrRy-0002bq-DO for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gTrRy-0007tY-BF for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33540] [PATCH v2 2/3] gnu: Add lttoolbox. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Dec 2018 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33540 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33540@debbugs.gnu.org Received: via spool by 33540-submit@debbugs.gnu.org id=B33540.154385587130249 (code B ref 33540); Mon, 03 Dec 2018 16:52:02 +0000 Received: (at 33540) by debbugs.gnu.org; 3 Dec 2018 16:51:11 +0000 Received: from localhost ([127.0.0.1]:59366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTrR8-0007ri-J3 for submit@debbugs.gnu.org; Mon, 03 Dec 2018 11:51:10 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:41682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTrR3-0007rK-LY for 33540@debbugs.gnu.org; Mon, 03 Dec 2018 11:51:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=loA8h8nO1MR+Z73O9h+qvzeBT3uVdrVKM9vuyN+H0GY=; b=cejhjrVn1/LmAvjTxT0YRBhTQx Arja/Y5yU+XAbKwo0wg6n9rTqzU0OB478v55/djJ0sFndN2drJirUo4fEs1Qw2I5yB6+jSGu8mElK StzxnDxVUMlKEjQMZiNjJ7fVWabZavsb2P4jwg4N7M7IIAMpi+Tws8uS1DWN13Ghzy/M=; Received: from [103.5.134.173] (helo=steel.lan) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gTrQz-0000kc-JW; Mon, 03 Dec 2018 22:21:02 +0530 From: Arun Isaac Date: Mon, 3 Dec 2018 22:20:22 +0530 Message-Id: <20181203165024.25334-3-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181203165024.25334-1-arunisaac@systemreboot.net> References: <20181203165024.25334-1-arunisaac@systemreboot.net> 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: 208.118.235.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 * gnu/packages/dictionaries.scm (lttoolbox): New variable. --- gnu/packages/dictionaries.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 57aac87fc..6f58eee0a 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -30,15 +30,18 @@ #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages curl) #:use-module (gnu packages emacs) #:use-module (gnu packages fribidi) #:use-module (gnu packages linux) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages readline) #:use-module (gnu packages texinfo) #:use-module (gnu packages compression) - #:use-module (gnu packages tcl)) + #:use-module (gnu packages tcl) + #:use-module (gnu packages xml)) (define-public vera @@ -286,3 +289,30 @@ Yandex.Translate and Apertium. It gives you easy access to one of these translation engines from your terminal.") (license license:public-domain))) +(define-public lttoolbox + (package + (name "lttoolbox") + (version "3.5.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/apertium/lttoolbox/releases/download/v" + version "/lttoolbox-" version ".tar.gz")) + (sha256 + (base32 + "08y6pf1hl7prwygy1g8h6ndqww18pmb9f3r5988q0pcrp8w6xz6b")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system gnu-build-system) + (inputs + `(("libxml2" ,libxml2))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "http://wiki.apertium.org/wiki/Lttoolbox") + (synopsis "Lexical processing toolbox") + (description "Lttoolbox is a toolbox for lexical processing, morphological +analysis and generation of words. Analysis is the process of splitting a +word (e.g. cats) into its lemma \"cat\" and the grammatical information +@code{}. Generation is the opposite process.") + (license (list license:gpl2 ; main license + license:expat)))) ; utf8/* From patchwork Mon Dec 3 16:50:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 386 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 55B57167E4; Mon, 3 Dec 2018 17:38:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) by mira.cbaines.net (Postfix) with ESMTPS id C0707167E0 for ; Mon, 3 Dec 2018 17:38:09 +0000 (GMT) Received: from localhost ([::1]:51014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTsAb-0007lM-1T for patchwork@mira.cbaines.net; Mon, 03 Dec 2018 12:38:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gTrS1-0000nr-Sl for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gTrRz-0002do-0D for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:55112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gTrRy-0002dj-TQ for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gTrRy-0007tf-R1 for guix-patches@gnu.org; Mon, 03 Dec 2018 11:52:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33540] [PATCH v2 3/3] gnu: Add apertium. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Dec 2018 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33540 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 33540@debbugs.gnu.org Received: via spool by 33540-submit@debbugs.gnu.org id=B33540.154385587130256 (code B ref 33540); Mon, 03 Dec 2018 16:52:02 +0000 Received: (at 33540) by debbugs.gnu.org; 3 Dec 2018 16:51:11 +0000 Received: from localhost ([127.0.0.1]:59368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTrR8-0007rq-Tj for submit@debbugs.gnu.org; Mon, 03 Dec 2018 11:51:11 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:41686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gTrR7-0007rY-Iq for 33540@debbugs.gnu.org; Mon, 03 Dec 2018 11:51:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oMWhfxDWIrDevDINSIebFj4jksvEwD9rKGqn2JnZWtQ=; b=O6oSYIN8lXzW1U9tR+jV0I+Zy6 HfzKohEfor4sdicz1Jw0MnxvTlhHk4nnpq3r3AUQWnwagNe2F0fWaY9ZhPbRVK20nyCg/S+OCof8k W8sDWJeoJH33fjDr8/Z8QFqVAQw+tvlqCaymRPDvunpenBJmFJLv7400MRIzDBoME6Wc=; Received: from [103.5.134.173] (helo=steel.lan) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gTrR3-0000kc-FC; Mon, 03 Dec 2018 22:21:06 +0530 From: Arun Isaac Date: Mon, 3 Dec 2018 22:20:23 +0530 Message-Id: <20181203165024.25334-4-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181203165024.25334-1-arunisaac@systemreboot.net> References: <20181203165024.25334-1-arunisaac@systemreboot.net> 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: 208.118.235.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 * gnu/packages/dictionaries.scm (apertium): New variable. --- gnu/packages/dictionaries.scm | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 6f58eee0a..039ec4596 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -26,6 +26,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix build-system trivial) @@ -34,9 +35,12 @@ #:use-module (gnu packages base) #:use-module (gnu packages curl) #:use-module (gnu packages emacs) + #:use-module (gnu packages flex) #:use-module (gnu packages fribidi) #:use-module (gnu packages linux) + #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages readline) #:use-module (gnu packages texinfo) #:use-module (gnu packages compression) @@ -316,3 +320,58 @@ word (e.g. cats) into its lemma \"cat\" and the grammatical information @code{}. Generation is the opposite process.") (license (list license:gpl2 ; main license license:expat)))) ; utf8/* + +(define-public apertium + (package + (name "apertium") + (version "3.5.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/apertium/apertium/releases/download/v" + version "/apertium-" version ".tar.gz")) + (sha256 + (base32 + "0lrx58ipx2kzh1pd3xm1viz05dqyrq38jbnj9dnk92c9ckkwkp4h")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system gnu-build-system) + (inputs + `(("libxml2" ,libxml2) + ("libxslt" ,libxslt) + ("lttoolbox" ,lttoolbox) + ("pcre" ,pcre))) + (native-inputs + `(("apertium-get" + ,(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apertium/apertium-get") + (commit "692d030e68008fc123089cf2446070fe8c6e3a3b"))) + (sha256 + (base32 + "0kgp68azvds7yjwfz57z8sa5094fyk5yr0qxzblrw7bisrrihnav")))) + ("flex" ,flex) + ("pkg-config" ,pkg-config) + ;; python is only required for running the test suite + ("python-minimal" ,python-minimal))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; If apertium-get does not exist in the source tree, the build tries + ;; to download it using an svn checkout. To avoid this, copy + ;; apertium-get into the source tree. + (add-after 'unpack 'unpack-apertium-get + (lambda* (#:key inputs #:allow-other-keys) + (copy-recursively (assoc-ref inputs "apertium-get") + "apertium/apertium-get") + #t))))) + (home-page "https://www.apertium.org/") + (synopsis "Rule based machine translation system") + (description "Apertium is a rule based machine translation system +featuring a shallow-transfer machine translation engine. The design of the +system makes translations fast (translating tens of thousands of words per +second on ordinary desktop computers) and, in spite of the errors, reasonably +intelligible and easily correctable.") + (license (list license:gpl2 ; main license + license:expat)))) ; utf8/*