diff options
| author | Wilko Meyer <w@wmeyer.eu> | 2026-05-20 11:27:36 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-06-24 21:22:22 +0100 |
| commit | 8b5c9ad655ca3539140c6a4016f73ec55b9c43d8 (patch) | |
| tree | 272fba89e1a077d335ab882a67ac10d0c151d72e /gnu/packages/textutils.scm | |
| parent | 4ff634fb8f5caf49c6f011fe09e6e4cd3198968d (diff) | |
gnu: Add libchardet.
* gnu/packages/textutils.scm (libchardet): New variable.
Relates-to: guix/guix!7425
Reviewed-by: Nguyễn Gia Phong <cnx@loang.net>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/textutils.scm')
| -rw-r--r-- | gnu/packages/textutils.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index d5e3d66f51b..2200647955a 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm | |||
| @@ -41,6 +41,7 @@ | |||
| 41 | ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com> | 41 | ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com> |
| 42 | ;;; Copyright © 2025 John Khoo <johnkhootf@gmail.com> | 42 | ;;; Copyright © 2025 John Khoo <johnkhootf@gmail.com> |
| 43 | ;;; Copyright © 2026 orahcio <orahcio@gmail.com> | 43 | ;;; Copyright © 2026 orahcio <orahcio@gmail.com> |
| 44 | ;;; Copyright © 2026 Wilko Meyer <w@wmeyer.eu> | ||
| 44 | ;;; | 45 | ;;; |
| 45 | ;;; This file is part of GNU Guix. | 46 | ;;; This file is part of GNU Guix. |
| 46 | ;;; | 47 | ;;; |
| @@ -278,6 +279,36 @@ case-folding, and other operations for data in the UTF-8 encoding.") | |||
| 278 | (properties | 279 | (properties |
| 279 | (alist-delete 'hidden? (package-properties utf8proc-bootstrap))))) | 280 | (alist-delete 'hidden? (package-properties utf8proc-bootstrap))))) |
| 280 | 281 | ||
| 282 | (define-public libchardet | ||
| 283 | (package | ||
| 284 | (name "libchardet") | ||
| 285 | (version "1.0.6") | ||
| 286 | (source | ||
| 287 | (origin | ||
| 288 | (method url-fetch) | ||
| 289 | (uri (string-append "https://github.com/Joungkyun/libchardet" | ||
| 290 | "/releases/download/" | ||
| 291 | version | ||
| 292 | "/libchardet-" | ||
| 293 | version | ||
| 294 | ".tar.bz2")) | ||
| 295 | (sha256 | ||
| 296 | (base32 "14hm4cqsbqlsynzniijz14pzsqbr5j98wwcgri8z6ylgiirxan49")))) | ||
| 297 | (build-system gnu-build-system) | ||
| 298 | (arguments | ||
| 299 | (list | ||
| 300 | #:phases | ||
| 301 | ;; fix for build error: bits/c++config.h: No such file or directory | ||
| 302 | #~(modify-phases %standard-phases | ||
| 303 | (add-before 'build 'unset-cplus-include-path | ||
| 304 | (lambda _ | ||
| 305 | (unsetenv "CPLUS_INCLUDE_PATH")))))) | ||
| 306 | (native-inputs (list autoconf automake pkg-config perl)) | ||
| 307 | (synopsis "Universal charset detector") | ||
| 308 | (description "Libchardet is a universal charset detector C/C++ API.") | ||
| 309 | (license license:mpl1.1) | ||
| 310 | (home-page "https://github.com/Joungkyun/libchardet"))) | ||
| 311 | |||
| 281 | (define-public libconfuse | 312 | (define-public libconfuse |
| 282 | (package | 313 | (package |
| 283 | (name "libconfuse") | 314 | (name "libconfuse") |
