unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#69635] [PATCH] gnu: Add tran.
@ 2024-03-08 12:26 Artyom V. Poptsov
  2024-05-16 22:27 ` bug#69635: " Sharlatan Hellseher
  0 siblings, 1 reply; 2+ messages in thread
From: Artyom V. Poptsov @ 2024-03-08 12:26 UTC (permalink / raw)
  To: 69635; +Cc: Artyom V. Poptsov

* gnu/packages/shellutils.scm (tran): New variable.

Change-Id: I861be63cf773dbc67d929c86f50c4d50bdb9b41e
---
 gnu/packages/shellutils.scm | 50 +++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index e58e9e61fc..1f32c4725b 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -55,6 +55,7 @@ (define-module (gnu packages shellutils)
   #:use-module (gnu packages golang-xyz)
   #:use-module (gnu packages libunistring)
   #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
@@ -483,6 +484,55 @@ (define-public trash-cli
 are already there.")
     (license license:gpl2+)))
 
+(define-public tran
+  (let ((commit "039df9529d5dfb8283edfb3c8b3cc16c01f0bfce")
+        (revision "0"))
+    (package
+      (name "tran")
+      ;; The latest upstream version seems to be "v5".
+      (version (git-version "5.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/kilobyte/tran")
+               (commit commit)))
+         (file-name (string-append name "-" version "-checkout"))
+         (sha256
+          (base32 "1kzr3lfhi5f8wpwjzrzlwkxjv9rasdr9ndjdns9kd16vsh0gl2rd"))))
+      (build-system gnu-build-system)
+      (inputs (list perl))
+      (arguments
+       `(#:tests? #f ;no tests
+         #:phases (modify-phases %standard-phases
+                    (delete 'configure)
+                    (add-after 'unpack 'patch
+                      (lambda* (#:key outputs #:allow-other-keys)
+                        (let ((out (assoc-ref outputs "out")))
+                          (substitute* "tran"
+                            (("my \\$DATA=\"data\"")
+                             (format #f "my $DATA=\"~a/share/tran/data\"" out))))))
+                    (replace 'build
+                      (lambda* (#:key outputs #:allow-other-keys)
+                        (invoke "make" "all")))
+                    (delete 'strip)
+                    (replace 'install
+                      (lambda* (#:key outputs #:allow-other-keys)
+                        (let ((out (assoc-ref outputs "out")))
+                          (install-file "tran"
+                                        (string-append out "/bin/"))
+                          (install-file "tran.1"
+                                        (string-append out "/share/man/man1/"))
+                          (copy-recursively "data"
+                                            (string-append out
+                                             "/share/tran/data/"))))))))
+      (home-page "https://github.com/kilobyte/tran")
+      (synopsis "Transcription between character scripts")
+      (description
+       "This tool can transliterate/transcribe text both ways between the Latin script
+and other languages.")
+      (license license:expat))))
+
 (define-public direnv
   (package
     (name "direnv")

base-commit: 7f2f1bcddae64c48f793cde15c21617fa706c157
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#69635: [PATCH] gnu: Add tran.
  2024-03-08 12:26 [bug#69635] [PATCH] gnu: Add tran Artyom V. Poptsov
@ 2024-05-16 22:27 ` Sharlatan Hellseher
  0 siblings, 0 replies; 2+ messages in thread
From: Sharlatan Hellseher @ 2024-05-16 22:27 UTC (permalink / raw)
  To: 69635-done

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]


Hi,

I've applied Gexps and open an issue about new release in Upstream.

Pushed as b803b9aad1702f0206dfc0efd7bd456be28f3614 to master.

--
Oleg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-16 22:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-08 12:26 [bug#69635] [PATCH] gnu: Add tran Artyom V. Poptsov
2024-05-16 22:27 ` bug#69635: " Sharlatan Hellseher

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).