From patchwork Mon Apr 25 03:55:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 38811 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 226AE27BBEA; Mon, 25 Apr 2022 05:15:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DC55327BBE9 for ; Mon, 25 Apr 2022 05:15:36 +0100 (BST) Received: from localhost ([::1]:34946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niq8O-0002nc-0y for patchwork@mira.cbaines.net; Mon, 25 Apr 2022 00:15:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipun-0007mr-Ml for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:49 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipuY-0001NE-GN for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:24 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipuY-00081o-Cn for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:18 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 020/232] gnu: Add opentype-sanitizer. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:01:18 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55104@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 55104-submit@debbugs.gnu.org id=B55104.165085926930666 (code B ref 55104); Mon, 25 Apr 2022 04:01:18 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:01:09 +0000 Received: from localhost ([127.0.0.1]:60740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipuO-0007yN-LU for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:01:09 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:37414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niptI-0007iI-WD for 55104@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:08 -0400 Received: by mail-qt1-f179.google.com with SMTP id ay11so9566448qtb.4 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 21:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KI0xYJ/13MjBdrJqbiYs/JGPonimrx+AhpDnAnOFn5M=; b=P0CtwQBMj2nAPAUwvdxuEvNh/lz1wUuxFJeCFQ/c3zre8pb4ZuqEaV5bwPPsfFt10T LUOc6kKjOG9EFjblZzddb+j4C5ygw3UjfIgBBlYDe+Nc7dTgEjSi6R4IjXAz6qmMIOCI yya7PTMl8a/JgNwiyRTWpBll4quIJwPzFEkZbC8xanvE330eQqPAlPy+HZcYvAcO8tG8 33l9GiE6r2gLpjE7rifkIQDIgLEB7fDlKsvkCh5zfsGdNXV8IL8kuM1xl99XkreW1erG RR8vkJW529wP1M4qt+y+8Z+2zgSePEldppjXOFkXyg/MOl6JwePjVJlWfLsDSHFZ2UdI Prgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KI0xYJ/13MjBdrJqbiYs/JGPonimrx+AhpDnAnOFn5M=; b=okfHiRKqWUg14kaB4NetcS72G9DLefAzFZtIEuWz0Q7nc8rd8UcXCZjWGFZhaWTwKf BMPvhVgCd+DnCKKEqIDC93NXBnGxB81tPxsm6wjvURAwDFn5Lwwfsa9FjFFn1wG3mSQc tzgi1H0hff70fhuy+2lRN+2BvdfEHxMwmbCLMCVNRZuY9BwEuqGwCFQ88ohCFkW9nlwE CmNXIA0IY9KPaVvgKB8Yg7ESANKSuWFIDXyOoVscQzvCGz6K5DQ5cMTGEwguXtr/DUsd 3jkZb52WOqHhtj0ceuT578gTmHTCBOIppSSgj+iCx/6hXyNgI+iFgTMNziNZicZPs7kc YGSw== X-Gm-Message-State: AOAM531MvHVV5isC3uvt/ootXT75P/IE6YDGzppxC0phqDrI1+Offwnp d+qFEOZfIZCps0dBjCxt5LVf9VXO7XveiA== X-Google-Smtp-Source: ABdhPJxsZ/+zvQCbR2ZMXZI82AibCP+Mzq3olMOPGTicJ0SFhAdRNAdwv46OyiCaIBTy4F2L8STsPw== X-Received: by 2002:a05:622a:144:b0:2f3:3bbd:3db5 with SMTP id v4-20020a05622a014400b002f33bbd3db5mr10909981qtw.95.1650859195379; Sun, 24 Apr 2022 20:59:55 -0700 (PDT) Received: from localhost.localdomain (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id w82-20020a376255000000b0069ee3f0ae63sm4478142qkb.45.2022.04.24.20.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 20:59:55 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:55:46 -0400 Message-Id: <20220425035918.25683-20-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220425035918.25683-1-maxim.cournoyer@gmail.com> References: <20220425035918.25683-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/fontutils.scm (opentype-sanitizer): New variable. --- gnu/packages/fontutils.scm | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index c8c32fd5a9..16c2391179 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -12,7 +12,7 @@ ;;; Copyright © 2019, 2020 Marius Bakke ;;; Copyright © 2020 Roel Janssen ;;; Copyright © 2020, 2021 Nicolas Goaziou -;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2021, 2022 Maxim Cournoyer ;;; Copyright © 2020, 2021 Nicolas Goaziou ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2022 Felipe Balbi @@ -65,6 +65,7 @@ (define-module (gnu packages fontutils) #:use-module (gnu packages xorg) #:use-module (gnu packages tex) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix svn-download) @@ -108,6 +109,28 @@ (define-public freetype (license license:freetype) ; some files have other licenses (home-page "https://www.freetype.org/"))) +(define-public opentype-sanitizer + (package + (name "opentype-sanitizer") + (version "8.2.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/khaledhosny/ots" + "/releases/download/v" version + "/ots-" version ".tar.xz")) + (sha256 + (base32 + "17z8cxv48rfig5k7j3xk3bmbf7rm3kxsc3bazix96l0wws58r569")))) + (build-system meson-build-system) + (native-inputs (list googletest pkg-config)) + (inputs (list freetype lz4 woff2 zlib)) + (home-page "https://github.com/khaledhosny/ots") + (synopsis "Sanitizer for OpenType fonts") + (description "The OpenType Sanitizer (OTS) parses and serializes OpenType +files (OTF, TTF) and WOFF and WOFF2 font files, validating them and sanitizing +them as it goes.") + (license license:bsd-3))) + (define-public ttfautohint (package (name "ttfautohint")