From 4f72a349f14bf14711afc9f041a6d2aa61b4668a Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 10 Feb 2021 21:38:47 +0100 Subject: [PATCH] gnu: Add r-textshaping. * gnu/packages/cran.scm (r-textshaping): New variable. --- gnu/packages/cran.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index b26c24ad7f..f600928662 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -68,6 +68,7 @@ (define-module (gnu packages cran) #:use-module (gnu packages curl) #:use-module (gnu packages databases) #:use-module (gnu packages fontutils) + #:use-module (gnu packages fribidi) #:use-module (gnu packages gcc) #:use-module (gnu packages geo) #:use-module (gnu packages ghostscript) @@ -26616,3 +26617,36 @@ (define-public r-clustree allows you to produce clustering trees, a visualization for interrogating clusterings as resolution increases.") (license license:gpl3))) + +(define-public r-textshaping + (package + (name "r-textshaping") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "textshaping" version)) + (sha256 + (base32 + "053pbw45by96q62kjfnyc3d0ssar9svssrdqy6a09kdmdh75xdar")))) + (properties `((upstream-name . "textshaping"))) + (build-system r-build-system) + (inputs + `(("freetype" ,freetype) + ("fribidi" ,fribidi) + ("harfbuzz" ,harfbuzz) + ("zlib" ,zlib))) + (propagated-inputs + `(("r-cpp11" ,r-cpp11) + ("r-systemfonts" ,r-systemfonts))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("r-knitr" ,r-knitr))) + (home-page "https://github.com/r-lib/textshaping") + (synopsis "Bindings to the HarfBuzz and Fribidi libraries for text shaping") + (description + "This package provides access to the text shaping functionality in the +HarfBuzz library and the bidirectional algorithm in the Fribidi library. This +is a low-level utility package mainly for graphic devices that expands upon +the font tool-set provided by the @code{systemfonts} package.") + (license license:expat)))