[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu: Add icu4c-for-skia.
From: |
guix-commits |
Subject: |
06/08: gnu: Add icu4c-for-skia. |
Date: |
Sat, 2 Sep 2023 12:14:26 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 545b45cc053d02875d87b1b5be04bb58ea581d6c
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Tue Aug 29 23:11:37 2023 +0200
gnu: Add icu4c-for-skia.
* gnu/packages/icu4c.scm (icu4c-for-skia): New variable.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/icu4c.scm | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
diff --git a/gnu/packages/icu4c.scm b/gnu/packages/icu4c.scm
index ba8b4915f2..5aaf3a8361 100644
--- a/gnu/packages/icu4c.scm
+++ b/gnu/packages/icu4c.scm
@@ -9,6 +9,7 @@
;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
+;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -27,14 +28,17 @@
(define-module (gnu packages icu4c)
#:use-module (gnu packages)
+ #:use-module (gnu packages cpio)
#:use-module (gnu packages java)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (guix gexp)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system ant)
#:use-module (guix build-system gnu))
@@ -240,3 +244,75 @@ C/C++ part.")
globalisation support for software applications. This package contains the
Java part.")
(license x11)))
+
+(define-public icu4c-for-skia
+ ;; The current version of skia needs this exact commit
+ ;; for its test dependencies.
+ (let ((commit "a0718d4f121727e30b8d52c7a189ebf5ab52421f")
+ (revision "0"))
+ (package
+ (inherit icu4c)
+ (name "icu4c-for-skia")
+ (version "skia")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://chromium.googlesource.com/chromium/deps/icu.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1qxws2p91f6dmhy7d3967r5ygz06r88pkmpm97px067x0zzdz384"))))
+ (arguments
+ (list
+ #:make-flags #~(list (string-append "DESTDIR=" #$output))
+ #:configure-flags #~(list "--prefix=" "--exec-prefix=")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir-to-source
+ (lambda _ (chdir "source")))
+ (replace 'configure
+ (lambda* (#:key inputs parallel-build? configure-flags
+ #:allow-other-keys)
+ (setenv "CONFIG_SHELL" (which "sh"))
+ (setenv "OPTS" (string-join configure-flags))
+ (invoke "./runConfigureICU" "Linux/gcc"
+ "--disable-layout" "--disable-tests")))
+ (add-after 'install 'install-cleanup
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (with-directory-excursion "data"
+ (apply invoke "make" "clean" make-flags))))
+ (add-after 'install-cleanup 'configure-filtered-data
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ (setenv "OPTS" (string-join configure-flags))
+ (setenv "ICU_DATA_FILTER_FILE"
+ (string-append (getcwd) "/../filters/common.json"))
+ (invoke "./runConfigureICU" "Linux/gcc"
+ "--disable-layout" "--disable-tests")))
+ (add-after 'configure-filtered-data 'build-filtered-data
+ (lambda* (#:key parallel-build? make-flags #:allow-other-keys)
+ (let ((job-count (if parallel-build?
+ (number->string (parallel-job-count))
+ "1")))
+ (apply invoke "make" "-j" job-count make-flags)
+ (setenv "DESTDIR" #$output)
+ (invoke "bash" "../scripts/copy_data.sh" "common"))))
+ (add-after 'build-filtered-data 'install-scripts-and-data
+ (lambda _
+ (let* ((share (string-append #$output "/share"))
+ (scripts (string-append share "/scripts"))
+ (data (string-append share "/data/common")))
+ ;; Install scripts.
+ (mkdir-p scripts)
+ (copy-recursively "../scripts/" scripts)
+ ;; Install data.
+ (mkdir-p data)
+ (copy-recursively "./dataout/common/data/out/tmp" data)
+ (symlink (string-append data "/icudt69l.dat")
+ (string-append data "/icudtl.dat")))))
+ (add-before 'check 'disable-failing-uconv-test
+ (lambda _
+ (substitute* "extra/uconv/Makefile.in"
+ (("check: check-local")
+ "")))))))
+ (native-inputs (list cpio pkg-config python)))))
- branch master updated (cee17521ec -> 8226549181), guix-commits, 2023/09/02
- 01/08: gnu: pict: Update to 3.7.4., guix-commits, 2023/09/02
- 03/08: gnu: sbcl-njson: Update to 1.1.1., guix-commits, 2023/09/02
- 05/08: gnu: Add emacs-vcard-mode., guix-commits, 2023/09/02
- 04/08: gnu: poke: Update to 3.3, guix-commits, 2023/09/02
- 06/08: gnu: Add icu4c-for-skia.,
guix-commits <=
- 08/08: gnu: mcron: Update to 1.2.3., guix-commits, 2023/09/02
- 07/08: gnu: skia: Activate tests., guix-commits, 2023/09/02
- 02/08: gnu: electrum: Update to 4.4.6., guix-commits, 2023/09/02