From patchwork Wed Nov 1 09:53:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosha X-Patchwork-Id: 55784 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 BA14827BBEA; Wed, 1 Nov 2023 09:54:35 +0000 (GMT) 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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 BBF8827BBE2 for ; Wed, 1 Nov 2023 09:54:34 +0000 (GMT) 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 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 X-Patchwork-Original-From: Sughosha via Guix-patches via From: Sughosha Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Sughosha * gnu/packages/gl.scm (nanovg): New variable. --- gnu/packages/gl.scm | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) base-commit: c0895371c5759c7d9edb330774e90f192cc4cf2c 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")