diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-06-15 01:26:32 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-06-20 15:06:36 +0100 |
commit | 1f09bf94d87201da5ad82b656e534637c47864e2 (patch) | |
tree | 4d3118cc4d7b1d1ec77b730d6bb5a69bee210b22 | |
parent | bc384b3a0fe51579b0e40cb2ba331ad0ed56f340 (diff) |
gnu: Add tinygettext.
* gnu/packages/cmake.scm (tinygettext): New variable.
Change-Id: Id7bcc913527a04d3f6690a94ccce2d2bb98c2706
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r-- | gnu/packages/cpp.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 461070c520..b5bb818b47 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -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") |