From 7217783db5e04297af929868d8f115d5b579aceb Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 21 Jan 2021 19:23:02 -0500 Subject: [PATCH 13/18] gnu: Add tg-rlottie. * gnu/packages/telegram.scm (tg-rlottie): New variable. --- gnu/packages/telegram.scm | 47 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 0fd47f4f5d..e518a8dcd3 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -19,6 +19,7 @@ (define-module (gnu packages telegram) #:use-module (gnu packages) #:use-module (gnu packages assembly) + #:use-module (gnu packages check) #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) @@ -31,7 +32,8 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix git-download) - #:use-module (guix build-system cmake)) + #:use-module (guix build-system cmake) + #:use-module (guix build-system meson)) (define-public tg-owt (let ((commit "fa86fcc00c218813d61a272a56feab55c76a1ab9") @@ -141,3 +143,46 @@ for its use in telegram desktop client.") license:gpl3 ;; LibSRTP, LibVPx, UsrSCTP and Others license:bsd-3))))) + +(define-public tg-rlottie + (let ((commit "cbd43984ebdf783e94c8303c41385bf82aa36d5b") + (revision "1")) + (package + (name "tg-rlottie") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/rlottie.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "1lxpbgbhps9rmck036mgmiknqrzpjxpas8n7qxykv6pwzn0c8n0c")))) + (build-system meson-build-system) + (arguments + `(#:configure-flags + (list + "-Dlog=true" + "-Ddumptree=true" + "-Dtest=true") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-cxx-flags + (lambda _ + (substitute* "meson.build" + (("werror=true") + "werror=false")) + #t))))) + (native-inputs + `(("googletest" ,googletest) + ("pkg-config" ,pkg-config))) + (synopsis "Lottie Animation Library for Telegram-Desktop") + (description "TG-Rlottie is a custom fork of rlottie, modified for its use +in telegram-desktop. Rlottie is a platform independent standalone c++ library +for rendering vector based animations and art in realtime.") + (home-page "https://github.com/desktop-app/rlottie") + (license license:expat)))) -- 2.30.0