From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QAG1NgVvU2TkYgAASxT56A (envelope-from ) for ; Thu, 04 May 2023 10:38:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2HiWNgVvU2TZJAEAauVa8A (envelope-from ) for ; Thu, 04 May 2023 10:38:29 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 991A332BD8 for ; Thu, 4 May 2023 10:38:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puUTV-00086i-Jz; Thu, 04 May 2023 04:38:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puUTS-00084O-La for guix-patches@gnu.org; Thu, 04 May 2023 04:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puUTS-0001YK-Do for guix-patches@gnu.org; Thu, 04 May 2023 04:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puUTS-000185-9S for guix-patches@gnu.org; Thu, 04 May 2023 04:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63254] [PATCH v3 2/5] gnu: Add nanovg. References: In-Reply-To: Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 May 2023 08:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63254 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "63254@debbugs.gnu.org" <63254@debbugs.gnu.org> Received: via spool by 63254-submit@debbugs.gnu.org id=B63254.16831894474276 (code B ref 63254); Thu, 04 May 2023 08:38:02 +0000 Received: (at 63254) by debbugs.gnu.org; 4 May 2023 08:37:27 +0000 Received: from localhost ([127.0.0.1]:48514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puUSs-00016u-L2 for submit@debbugs.gnu.org; Thu, 04 May 2023 04:37:26 -0400 Received: from mail-4027.protonmail.ch ([185.70.40.27]:22717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puUSq-00016d-Aq for 63254@debbugs.gnu.org; Thu, 04 May 2023 04:37:25 -0400 Date: Thu, 04 May 2023 08:37:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=nzph4r4okjboncjy5dggjuiedy.protonmail; t=1683189437; x=1683448637; bh=/lVOumJgTxF6WAjZ6tJG2e4uhf+Q/F+c+k1qWSvHbTg=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Ev4ckt+M23JDefmw3qjWSOOZbTEeop8Rti+mDtb/RSfQ9iMo4TtMudCDY/PXKC3dC T+Z/FgrL9ZHCnqThLpbUdMfISvOeKhCzBafdMmAE9gIt+UnZRLCBz2n6JIdtVEN5P5 lvEsH9jOequel8k0GQha4KPLr2jjUCOFH9gRxstlhCXsO/IriPcXmpDpSGHOGoTYef bLnbS2eTSN2BYO7cxQW1cC42CWkFl/Jd7lpW6MBvdpO7fWRKfNoe6578xCOVLXUp5u qGoha5dhTqT5CCOj0dcHz4E5JNdlh4eCF3CbKUe6zuahUd7f661jJ1ZxaPsdRj6Ry/ UlNrK184h35RQ== Message-ID: Feedback-ID: 45211691:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches From: Sughosha via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683189509; a=rsa-sha256; cv=none; b=n3b8cmLO12Mk/mvcHDLRl1XFarkASiL+1mWPQPucfqa3tdqRJVDDBxIqk1/G3TpSVDaK9j NEhbnvS0Dc1I/bMK2Uf4uQa28IamwYa6+LrxwWb/KFrw6ug7/+eNkvlqNv/sFWkVqo3CKT fGhj+tJdEy4yR5sF9aWnyREAvUBIhfiRzBJzDTVH0jqW8o+HkcAqsvY1CoJ46CU9fkbIoE c7pTIBMDSny9EWj6dac4km0wNvnl2Ot5DS0PTMDC33qNK5xIWPo+VlFqxNUSe3YA6Do7SA WYOF0DdTfnxQwET8EmTVbNxpn2I7a4F8PGNQRjpXGKaKd48MVhjhLL9Z92TPzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=nzph4r4okjboncjy5dggjuiedy.protonmail header.b=Ev4ckt+M; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683189509; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/lVOumJgTxF6WAjZ6tJG2e4uhf+Q/F+c+k1qWSvHbTg=; b=rn5vTjVwVdLqstXdI33SfvdLQeWrslwQ3Qk/K6c3EZ/J0puzHtQDBqyHkems/0B29VfojF 4FvWPAvmVBMfjteeaPsI5g+sGkXUuR30VcbYa4GFaLId21kUxu75fTkUv1XjKeYBoiN32r 1WSnVI+lqD/sxwX93R4vrExweMIQDbMcfRWy+06jakh8x0u6YSeeLugaGQ5bJ3z26ELHZh 4IsLNXg03Ht+EH1gVIlfqPtP9ntlmN8potOtKpW2XRUXzkOUt7djyw9s99PltBcaNRSdIY sHFO0GhNXAeyNT+hPIw9gyEWk5mfBA6fqw3GKcKRkYZz5V2Pb0rio4SriPNarg== X-Migadu-Spam-Score: -3.31 X-Spam-Score: -3.31 X-Migadu-Queue-Id: 991A332BD8 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=nzph4r4okjboncjy5dggjuiedy.protonmail header.b=Ev4ckt+M; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: OnuP1L2G7AK/ * gnu/packages/gl.scm (nanovg): New variable. --- gnu/packages/gl.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index e59d051f2e..b67215b406 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -893,6 +893,52 @@ (define-public glfw and surfaces, receiving input and events.") (license license:zlib))) =20 +(define-public nanovg + ;; No tags are available. + (let ((revision "0") + (commit "7544c114e83db7cf67bd1c9e012349b70caacc2f")) + (package + (name "nanovg") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/memononen/nanovg") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0n29rxdp20xnvnpsjcmg3v5n6z7ya5ji4qirp18qcyls5xdxdxkc"))= )) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no test suite + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ;no configure script + (replace 'build + (lambda _ + (invoke #$(cc-for-target) + "../source/src/nanovg.c" "-c" "-fPIC") + (invoke #$(cc-for-target) + "-shared" "-olibnanovg.so" "nanovg.o"))) + (replace 'install + (lambda _ + (let ((lib (string-append #$output "/lib")) + (include (string-append #$output + "/include"))) + (install-file "libnanovg.so" lib) + (with-directory-excursion "../source" + (for-each + (lambda (file) + (install-file file include)) + (find-files "src" "nanovg.*\\.h$"))))))))) + (home-page "https://github.com/memononen/nanovg") + (synopsis "2D vector drawing library on top of OpenGL") + (description + "NanoVG is an antialiased vector graphics rendering library for Ope= nGL. +It is aimed for building scalable user interfaces and visualizations.") + (license license:zlib)))) + (define-public nanovg-for-extempore (let ((version "0.7.1") (revision "0") --=20 2.39.2