[PATCH] gnu: Add tran.

  • Done
  • quality assurance status badge
Details
2 participants
  • Artyom V. Poptsov
  • Sharlatan Hellseher
Owner
unassigned
Submitted by
Artyom V. Poptsov
Severity
normal

Debbugs page

A
A
Artyom V. Poptsov wrote on 8 Mar 04:26 -0800
(address . guix-patches@gnu.org)(name . Artyom V. Poptsov)(address . poptsov.artyom@gmail.com)
fb4f7103567cda74efc9854bfd24e519fe175aab.1709900790.git.poptsov.artyom@gmail.com
* gnu/packages/shellutils.scm (tran): New variable.

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

Toggle diff (72 lines)
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
S
S
Sharlatan Hellseher wrote on 16 May 15:27 -0700
(address . 69635-done@debbugs.gnu.org)
87r0e18kav.fsf@gmail.com
Hi,

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

Pushed as b803b9aad1702f0206dfc0efd7bd456be28f3614 to master.

--
Oleg
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmZGiDgACgkQdtcnv/Ys
0rWRsA/9FO/dGv4iwoZw+idsic4YeD/j665tQC+4JLnO/TYxPgzXwIjFWt1UqU5n
wLIil9BcrHQPP/IEBp4o3ktFlDBZoE14/kn5LOtxj6cWsujvChelMNfAj8eBq4QW
Htbg7Fzl1X13WSdBhuKcPqyNHtaSVWj/TvzOVa8b7JKa15fdFWq1EZGunQMohiGF
X9hXY3kFTYS5Z+xGYUsLQlG7GKF59qa1J1mzoC94poKdoN8TFiigmceT6XJKy4uW
ppeIKLY5zcDl6MgUkHnflxeynHK6/XZZ/pFRWkqY4CfhDG3wWfpqQqnWHiRGOVfE
WuMygVl4HgUr2tTF222rEDH1cupS9xedvv0fHeDW593s+Ua61QlEgmdxvzofrjFe
0wpuxH5ZPawlR5Buwlx/tydEC5YCEeXjA77WqyBHspOliJOEh1fgS2jEmaMJSYsF
S1amL+3CXC2rnso/PL71nja/0JJyVv1YWdUEC/F8fG5m26EwXYDcq+UwmHqTSAts
eK/vYQr9fg2rEC7NmuPP6DT3pD8FEzRAmL7DUQt2nwCZlU/7W82YgoSOM68/Jhx0
KUSbU0S+TpHDfdloZRXR89KrSbluc9yonRhRyj5Sv1kUKI/1eq92Y8rX9yf+buoc
vFqQSK50zay6bz9GIpD4AHFtS/lHpAgZL+JZAE7DAmpKLTbVjxM=
=Qf7e
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 69635@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 69635
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch