1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-12 18:10:47 +02:00

gnu: Add tinygettext.

* gnu/packages/cmake.scm (tinygettext): New variable.

Change-Id: Id7bcc913527a04d3f6690a94ccce2d2bb98c2706
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-06-15 01:26:32 +02:00 committed by Sharlatan Hellseher
parent bc384b3a0f
commit 1f09bf94d8
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3970,6 +3970,44 @@ efficient ordered insertions and lookup, while sacrifing performance for
ordered erase operations.")
(license license:expat)))
(define-public tinygettext
;; XXX: Does not release anymore.
(let ((commit "ef4164639004d7de5bf8ab28ed0e85ea521b7c5e")
(revision "0"))
(package
(name "tinygettext")
(version (git-version "0.2.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tinygettext/tinygettext")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0a8l92nba33f3j2hk6ckrn9javmy2xbnsfkks1z740y3bj4sxzw9"))))
(build-system cmake-build-system)
(arguments
(list
#:configure-flags
#~(list "-DBUILD_TESTS=ON")
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda _
(substitute* "../source/test/test.sh"
(("^\\.")
(getcwd)))
(with-directory-excursion "../source/test"
(invoke "bash" "test.sh")))))))
(native-inputs (list tinycmmc))
(home-page "https://github.com/tinygettext/tinygettext")
(synopsis "Simple gettext replacement")
(description
"This package provides a simple gettext replacement that works directly
on @code{.po} files and doesn't need @code{.mo} files pre-generated.")
(license license:expat))))
(define-public tl-optional
(package
(name "tl-optional")