all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: 33540@debbugs.gnu.org
Subject: [bug#33540] [PATCH 3/3] gnu: Add apertium.
Date: Fri, 30 Nov 2018 12:46:12 +0530	[thread overview]
Message-ID: <20181130071612.6268-3-arunisaac@systemreboot.net> (raw)
In-Reply-To: <20181130071612.6268-1-arunisaac@systemreboot.net>

* 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
 <n><pl>.  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/*
-- 
2.19.1

  parent reply	other threads:[~2018-11-30  7:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28 16:55 [bug#33540] [PATCH 0/3] Add apertium Arun Isaac
2018-11-30  0:22 ` swedebugia
2018-11-30  7:12   ` Arun Isaac
2018-11-30  7:16 ` [bug#33540] [PATCH 1/3] gnu: dictionaries: Use license prefix Arun Isaac
2018-11-30  7:16   ` [bug#33540] [PATCH 2/3] gnu: Add lttoolbox Arun Isaac
2018-12-02 22:26     ` Ludovic Courtès
2018-12-03  7:36       ` Arun Isaac
2018-12-03  9:36         ` Ludovic Courtès
2018-11-30  7:16   ` Arun Isaac [this message]
2018-12-02 22:28     ` [bug#33540] [PATCH 3/3] gnu: Add apertium Ludovic Courtès
2018-12-02 22:23   ` [bug#33540] [PATCH 1/3] gnu: dictionaries: Use license prefix Ludovic Courtès
2018-12-03 16:50 ` [bug#33540] [PATCH v2 0/3] Add lttoolbox, apertium Arun Isaac
2018-12-03 16:50   ` [bug#33540] [PATCH v2 1/3] gnu: dictionaries: Use license prefix Arun Isaac
2018-12-03 16:50   ` [bug#33540] [PATCH v2 2/3] gnu: Add lttoolbox Arun Isaac
2018-12-03 16:50   ` [bug#33540] [PATCH v2 3/3] gnu: Add apertium Arun Isaac
2018-12-04  8:36   ` [bug#33540] [PATCH v2 0/3] Add lttoolbox, apertium Ludovic Courtès
2018-12-04 18:41     ` bug#33540: " Arun Isaac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181130071612.6268-3-arunisaac@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=33540@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.