summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Pisemsky <mail@pisemsky.site>2025-01-30 16:25:09 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-02-04 14:05:46 +0000
commit7e58d45adf7ca2092a593192e6334336a577f968 (patch)
tree2ca2ef2c44f8da728cc59d8f8d99016886effef1
parent214b9d500f1434f745c26c5d9f826615d754a3ce (diff)
gnu: Add emacs-go-translate.
* gnu/packages/emacs-xyz.scm (emacs-go-translate): New variable. Change-Id: I623079b65f6df2180537a7589b953eaeb57d6a77 Reviewed-by: Cayetano Santos <csantosb@inventati.org> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/emacs-xyz.scm45
1 files changed, 44 insertions, 1 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2788626d97..e50622195b 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -126,7 +126,7 @@
;;; Copyright © 2020, 2021, 2022, 2023 Andrew Tropin <andrew@trop.in>
;;; Copyright © 2023 Dominik Delgado Steuter <d@delgado.nrw>
;;; Copyright © 2023 Juliana Sims <juli@incana.org>
-;;; Copyright © 2023 Evgeny Pisemsky <mail@pisemsky.site>
+;;; Copyright © 2023, 2025 Evgeny Pisemsky <mail@pisemsky.site>
;;; Copyright © 2023 Gabriel Wicki <gabriel@erlikon.ch>
;;; Copyright © 2022-2023 Simon Josefsson <simon@josefsson.org>
;;; Copyright © 2023 Fabio Natali <me@fabionatali.com>
@@ -29187,6 +29187,49 @@ A screenshot is taken for every user action. Call
the GIF result.")
(license license:gpl3+)))
+(define-public emacs-go-translate
+ (package
+ (name "emacs-go-translate")
+ (version "3.0.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/lorniu/go-translate/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0603iq1vjbm44sl7qrmkdfcqzzc703h1g5hdcswpj7pi0w7fxb4s"))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:tests? #t
+ #:test-command #~(list "emacs"
+ "-Q"
+ "--batch"
+ "-L"
+ "."
+ "-l"
+ "gt-tests.el"
+ "-f"
+ "ert-run-tests-batch-and-exit")
+ #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'skip-failing-tests
+ (lambda _
+ (substitute* "gt-tests.el"
+ (("\\(ert-deftest test--gt-translation-life-cycle .*"
+ all)
+ (string-append all "(skip-unless nil)\n"))
+ (("\\(ert-deftest test--gt-valid-literally .*" all)
+ (string-append all "(skip-unless nil)\n"))))))))
+ (home-page "https://github.com/lorniu/go-translate/")
+ (synopsis "Configurable and scalable translation framework")
+ (description
+ "This is a translation framework on Emacs, with high configurability
+and extensibility. It can easily be extended to various Text-to-Text
+conversion scenarios.")
+ (license license:gpl3+)))
+
(define-public emacs-google-translate
(package
(name "emacs-google-translate")