From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KE8iB1sgQmXmMAEA9RJhRA:P1 (envelope-from ) for ; Wed, 01 Nov 2023 10:54:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KE8iB1sgQmXmMAEA9RJhRA (envelope-from ) for ; Wed, 01 Nov 2023 10:54:35 +0100 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 CE03B42C9F for ; Wed, 1 Nov 2023 10:54:34 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="drFa/RIX"; 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-Seal: i=1; s=key1; d=yhetil.org; t=1698832475; a=rsa-sha256; cv=none; b=LjcxByJ8ZcnK1eDbToa0tcoVU0J/wqqga2qkWUc9uFUhz0tj1yoasHlnYbR5ZOItV5HHcg Q3t6b7gMZIeZxnqOBTLVVdNfpks6LhRHG4BBGN2/LYQEqwJCyEJfrQsNotgST4oYx258V+ 4WTaKOKXihFMHCuWKeOcXZfXPgWIVG2day3bL0MJTrImzKkJnecu1e5dV9WxidZTiMs8p5 02Rbns4A3Gfc1Xz5JOpSQr5pm7Opz39zH9cvdTGr6VWD3McjcybwQ3BYwo/CBGTcxG1idy TCIE8Au4//AAwk+9u+90pZqLZhlRzjjYs4t9yGlsfDXXCUVzkF3/qRB4dDQ5EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698832475; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=gj7AQCcl7IxvYOBM9zcnVkg42C3CrPJ+70P/Z1dV5z8=; b=N3zW4JrgYlcKHX4Cj3gVES5O02yRRSAGk7C/K0FiwQ+j4VuWwmoiAk0EaCbPgsyvWSS13C IO8xmgx9FbnT9IYnaAWAS4kW1haVveQbvxBkj8a6SOsGCQYMDY9UGY+tI9U4iTfrLtboF/ CNhnjpb4ihebe2Yk8TEHW2oB8tG0zKFAVv1xto3dS72KPUY3jDp6ZJRsEfsh3f8aDSj7i1 uhfuPTty+1MRb1c7RL8I1aR9nFp+F28bINCD6txXNbHWKh/I3eSc87lXJL6e16UFW00TjP FctL6NvqH9BnQXwTXdtxRHDAjyfnsebCEelQ+nltWwxqTtvFCI+laffX+zwODQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="drFa/RIX"; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qy7vh-0001Ee-46; Wed, 01 Nov 2023 05:54:29 -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 1qy7vg-0001EM-7s for guix-patches@gnu.org; Wed, 01 Nov 2023 05:54:28 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qy7vf-0007v5-WA for guix-patches@gnu.org; Wed, 01 Nov 2023 05:54:28 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qy7wE-0008G5-89 for guix-patches@gnu.org; Wed, 01 Nov 2023 05:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63254] [PATCH v5 1/4] gnu: Add nanovg. References: In-Reply-To: Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 01 Nov 2023 09:55: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 Cc: Sughosha Received: via spool by 63254-submit@debbugs.gnu.org id=B63254.169883244331633 (code B ref 63254); Wed, 01 Nov 2023 09:55:02 +0000 Received: (at 63254) by debbugs.gnu.org; 1 Nov 2023 09:54:03 +0000 Received: from localhost ([127.0.0.1]:49939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qy7vH-0008E3-CB for submit@debbugs.gnu.org; Wed, 01 Nov 2023 05:54:03 -0400 Received: from layka.disroot.org ([178.21.23.139]:56802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qy7vD-0008DK-L1 for 63254@debbugs.gnu.org; Wed, 01 Nov 2023 05:54:01 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C124544F32; Wed, 1 Nov 2023 10:53:23 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8bq8BSaGI6sv; Wed, 1 Nov 2023 10:53:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1698832402; bh=yh/Q//vh6HnygYuvEwzBBu1Naci0so7f78Hapgpt6bs=; h=From:To:Cc:Subject:Date; b=drFa/RIX13jcKo0Ly4/ge2uB9/C0zY/oCiDQ0GyTURGS610ocWcOH9clpIpMyMm9b 4nSJgeDNF+mpYSzG0plKQ0ZvP1zyhVEz398MgsEofKisgNPVW36chz3tSHTig15mal D+3AwnCdjoqZWW/C8cm8j5NxIXFexFVpmyyXOokxfnLD5hax3NnWFoYmw4rUFcCnqs Is4s9r1vlxayt1jkZaait8TcTaYWp7FLhFrIYutaa+8Fn2QyTuL9CE404qY9kGtP5I KMQOVIynNUOxcROMT0GQ2aWWAPotDwJSZgObSJTSqWwOF7RmCbDQAg7pl+gn/oBDE+ aKe8hXzalrKIA== Date: Wed, 1 Nov 2023 10:53:02 +0100 Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -4.61 X-Migadu-Queue-Id: CE03B42C9F X-Migadu-Spam-Score: -4.61 X-TUID: ea6abQZ97bi3 From: Sughosha * 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 6472158abc..9c5c2e32a3 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -954,6 +954,52 @@ (define-public glfw and surfaces, receiving input and events.") (license license:zlib))) +(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 OpenGL. +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") base-commit: c0895371c5759c7d9edb330774e90f192cc4cf2c -- 2.41.0