From patchwork Fri Nov 30 07:16:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 358 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 2DF3D16842; Fri, 30 Nov 2018 07:18:20 +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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 A245A16825 for ; Fri, 30 Nov 2018 07:18:19 +0000 (GMT) Received: from localhost ([::1]:58429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSd46-0002YC-Nx for patchwork@mira.cbaines.net; Fri, 30 Nov 2018 02:18:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSd3v-0002X7-0Z for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSd3q-0000lf-Rh for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51185) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSd3q-0000lR-KP for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gSd3q-0006cr-G6 for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33540] [PATCH 1/3] gnu: dictionaries: Use license prefix. References: <20181128165506.4580-1-arunisaac@systemreboot.net> In-Reply-To: <20181128165506.4580-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Nov 2018 07:18: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.154356223425393 (code B ref 33540); Fri, 30 Nov 2018 07:18:02 +0000 Received: (at 33540) by debbugs.gnu.org; 30 Nov 2018 07:17:14 +0000 Received: from localhost ([127.0.0.1]:55437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSd2z-0006bD-DS for submit@debbugs.gnu.org; Fri, 30 Nov 2018 02:17:14 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:33872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSd2u-0006au-78 for 33540@debbugs.gnu.org; Fri, 30 Nov 2018 02:17:05 -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: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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FfYIWYMh1qWRdButzS3lMFNoxhSYlj92viI7FbuMeTA=; b=gAJxcLJC2HDgo4XOKej6wrVQcW Yml0WpHoXpdk9XwqzN27ipOJHnTevIFVvvZuwE4doaPIGM/RiBpPtolGLodZ1gt4O1T4qWWPbnqZR M+Pk//yTcvK7E+pIuAA8qF67jmkFvWsvXmpr13yiK6g3OLp2Q0GzKrVdkJxtcVY1rLA4=; Received: from [14.139.128.15] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gSd2p-0000nP-M0; Fri, 30 Nov 2018 12:47:00 +0530 From: Arun Isaac Date: Fri, 30 Nov 2018 12:46:10 +0530 Message-Id: <20181130071612.6268-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.19.1 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 Fri Nov 30 07:16:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 356 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 C451216842; Fri, 30 Nov 2018 07:18:14 +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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 33D0816825 for ; Fri, 30 Nov 2018 07:18:14 +0000 (GMT) Received: from localhost ([::1]:58428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSd40-0002Xo-Tq for patchwork@mira.cbaines.net; Fri, 30 Nov 2018 02:18:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSd3v-0002X9-1E for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSd3r-0000m7-B8 for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSd3r-0000m0-6f for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gSd3r-0006cz-0u for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33540] [PATCH 2/3] gnu: Add lttoolbox. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Nov 2018 07:18: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.154356223525400 (code B ref 33540); Fri, 30 Nov 2018 07:18:02 +0000 Received: (at 33540) by debbugs.gnu.org; 30 Nov 2018 07:17:15 +0000 Received: from localhost ([127.0.0.1]:55441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSd34-0006bW-OC for submit@debbugs.gnu.org; Fri, 30 Nov 2018 02:17:14 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:33878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSd2z-0006b8-Fb for 33540@debbugs.gnu.org; Fri, 30 Nov 2018 02:17: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=CCxaKOxz7U89oqh5QeyqHuFs2/8y2AlLFZk0agf+Y5w=; b=olXtPrHr33iesAyce3a96qSlBV TgTACjnnBZm0Xvas/Q2HtmRstR6NCYTwDg1LSRT5Ae0tEihn1MnOl6FEm6rlJLQYzB/CWTVjTsjND g/BOD6gLype2ky+KE88LPlo93NZFUtCNMo2JUuPIXWPhlsIjKtRWLsBZxBVeyTMA1k9g=; Received: from [14.139.128.15] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gSd2v-0000nP-3k; Fri, 30 Nov 2018 12:47:06 +0530 From: Arun Isaac Date: Fri, 30 Nov 2018 12:46:11 +0530 Message-Id: <20181130071612.6268-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181130071612.6268-1-arunisaac@systemreboot.net> References: <20181130071612.6268-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 | 43 ++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 57aac87fc..b97535979 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,41 @@ 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 + "0p8yjjyx1jqhxj8n5afmmhb55h4xg8gn2pysx0k2mnp8ic1hnzri")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system gnu-build-system) + (inputs + `(("libxml2" ,libxml2))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-autogen + (lambda _ + (substitute* "autogen.sh" + ((" && ./configure \"\\$@\"") "")) + #t))))) + (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 +. Generation is the opposite process.") + (license (list license:gpl2 ; main license + license:expat)))) ; utf8/* From patchwork Fri Nov 30 07:16:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 357 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 44DE116842; Fri, 30 Nov 2018 07:18:19 +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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 B4D4116825 for ; Fri, 30 Nov 2018 07:18:18 +0000 (GMT) Received: from localhost ([::1]:58427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSd45-0002Xe-Uf for patchwork@mira.cbaines.net; Fri, 30 Nov 2018 02:18:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSd3v-0002X8-1D for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSd3r-0000mS-No for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:51187) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSd3r-0000mG-JG for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gSd3r-0006d6-Fj for guix-patches@gnu.org; Fri, 30 Nov 2018 02:18:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#33540] [PATCH 3/3] gnu: Add apertium. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Nov 2018 07:18:03 +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.154356223525406 (code B ref 33540); Fri, 30 Nov 2018 07:18:03 +0000 Received: (at 33540) by debbugs.gnu.org; 30 Nov 2018 07:17:15 +0000 Received: from localhost ([127.0.0.1]:55443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSd35-0006bd-1e for submit@debbugs.gnu.org; Fri, 30 Nov 2018 02:17:15 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:33884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gSd33-0006bN-9l for 33540@debbugs.gnu.org; Fri, 30 Nov 2018 02:17:13 -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=GuY+Is+WBlnlkB4bn6id0PZKim69vttdJICMY347YQw=; b=dBqQuZg3hywX/ZiviXrDlaTI6f P7BonXPcYxL6AOCFd29G756TNpSi1b9feNseD22mNWazpnlPF1NGa915XOLVAKV4nLbTDTyX+KESi WwtaC0YE65mWCzOoKRUWQl9wb0fRmi1Of0LCw61Ax1RNk2WEyV0oG5RP/urkmzXG0pB0=; Received: from [14.139.128.15] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gSd2y-0000nP-V2; Fri, 30 Nov 2018 12:47:10 +0530 From: Arun Isaac Date: Fri, 30 Nov 2018 12:46:12 +0530 Message-Id: <20181130071612.6268-3-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181130071612.6268-1-arunisaac@systemreboot.net> References: <20181130071612.6268-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 | 62 +++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index b97535979..28cce41d0 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) @@ -327,3 +331,61 @@ word (e.g. cats) into its lemma \"cat\" and the grammatical information . 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")))) + ("autoconf" ,autoconf) + ("automake" ,automake) + ("flex" ,flex) + ("libtool" ,libtool) + ("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/*