From patchwork Sat Oct 21 02:01:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 55104 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 D592927BBEA; Sat, 21 Oct 2023 03:03:10 +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_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 6A5A727BBE2 for ; Sat, 21 Oct 2023 03:03:06 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qu1K4-0000Av-WB; Fri, 20 Oct 2023 22:02:41 -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 1qu1K1-0000A1-Ds for guix-patches@gnu.org; Fri, 20 Oct 2023 22:02:38 -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 1qu1Jz-0007nY-NF for guix-patches@gnu.org; Fri, 20 Oct 2023 22:02:37 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qu1KR-0001XM-5m for guix-patches@gnu.org; Fri, 20 Oct 2023 22:03:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56534] [PATCH v2 3/4] gnu: Add racket-libvid. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Oct 2023 02:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56534 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56534@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Philip McGrath , Rostislav Svoboda Received: via spool by 56534-submit@debbugs.gnu.org id=B56534.16978537555852 (code B ref 56534); Sat, 21 Oct 2023 02:03:03 +0000 Received: (at 56534) by debbugs.gnu.org; 21 Oct 2023 02:02:35 +0000 Received: from localhost ([127.0.0.1]:41947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu1Jz-0001WK-7g for submit@debbugs.gnu.org; Fri, 20 Oct 2023 22:02:35 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:49969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu1Jq-0001Vd-IF for 56534@debbugs.gnu.org; Fri, 20 Oct 2023 22:02:27 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 28B4C320096C; Fri, 20 Oct 2023 22:01:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 20 Oct 2023 22:01:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1697853712; x=1697940112; bh=GK+xejnySJ zrusJdnnHog+f4lN0pKiP08XUgnqd/Zhw=; b=J4Bf4ngAHSt9xfvFZcM4i9VlDU STnCCek6qu0T/B0z6wX64rR2KM+eA6FwOj4zjEXKipBvYv1arWreKxcuApy1s8km Xox4o3MD0kGaibB914rB5QfE9lcf2oJAFVhqhRu8e2EFh7X4bzm2DLgRKsFWvRzZ UGpvDcJEz19Fq2fYnvscA+V0Dwh+yIccDjJn2a3ioN9WjnUDsV0/W3zdx7Y2Q1nb C8gtq8aK2Q/OR+aFaOngHg7XWZl69KykeH1KTHnL7hCiAgAqtoCJSHnrF7wpT8T9 eDQ8yZ2Tblvn+wd2XK55oUZhVS+eI7xscv1JKPWSZLPO3aq23HnXrzr0jZVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1697853712; x= 1697940112; bh=GK+xejnySJzrusJdnnHog+f4lN0pKiP08XUgnqd/Zhw=; b=Z c2fbgXBKf+6RunENENriDp3nF9mIKga1zEP7Idm3AKHqpSZQLrvGxrfRX82//9eY /VL0GANkhj5B99YYVZLJ/HSag+h9rXDab0nmi7peN1PJPeJIclPCnpHfnl5z+Cin H/tmt6AMKmfW8chOoXpKig+k8QA7ueOpQd8wURsQLbL45ILi4tLFdMiXKtjcXc6R pUY0tC+MhZmGXzxJ5+6luwhy3+GdDclHbiXGFZ1Z5sTyieJaGyP8FGJQdqUapBGq 926RRPhfFKi4gEnQd7OnBegYFW2hNNIi62492KhIAvQqzx+tZUX67HQHOpYsoJHa Y0TPniIXAMlKp1tEZZMog== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeelgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefrhhhilhhi phcuofgtifhrrghthhcuoehphhhilhhiphesphhhihhlihhpmhgtghhrrghthhdrtghomh eqnecuggftrfgrthhtvghrnhepvddvheeugfejueegjeelledtfeeiveefgffgjeeufffg hfelvdeludevgedvieffnecuffhomhgrihhnpehgihhthhhusghushgvrhgtohhnthgvnh htrdgtohhmpdhlrghnghdrvhhiuggvohenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehphhhilhhiphesphhhihhlihhpmhgtghhrrghthhdrtg homh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Oct 2023 22:01:51 -0400 (EDT) From: Philip McGrath Date: Fri, 20 Oct 2023 22:01:13 -0400 Message-ID: <3e6121a3ba9e0c6aed46d7678578413990e135b4.1697849395.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: <80cbe78b-921b-4b05-baa6-7216fec01297@app.fastmail.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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/racket.scm (racket-libvid): New variable. --- gnu/packages/racket.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/racket.scm b/gnu/packages/racket.scm index 43187318d8..5468fff6c4 100644 --- a/gnu/packages/racket.scm +++ b/gnu/packages/racket.scm @@ -51,6 +51,7 @@ (define-module (gnu packages racket) #:use-module (gnu packages ncurses) #:use-module (gnu packages sqlite) #:use-module (gnu packages tls) + #:use-module (gnu packages video) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:)) @@ -1076,6 +1077,43 @@ (define-public racket-portaudio-librsoundcallbacks callbacks supplied @i{via} Racket's foreign interface.") (license license:lgpl2.0+)))) +(define-public racket-libvid + (let ((commit "dfe1d5cb7271b1657bbde9c8f67ee9c5a513a9c7") + (revision "1")) + (package + (name "racket-libvid") + (version (git-version "0.2.1.1" revision commit)) + (source + ;; Avoid even a shallow clone of the rest of the repository, + ;; which includes large binaries for many platforms. + (origin + (method url-fetch) + (uri (string-append + "https://raw.githubusercontent.com/videolang/native-pkgs/" + commit + "/libvid-src/libvid.c")) + (sha256 + (base32 "14byvwsadg1d2bd2j0x9nhmxkjhlq04afhq4l43y34r3y4zdcyq5")))) + (inputs (list ffmpeg-4)) ; NOTE: major versions break compatibility + (build-system copy-build-system) + (arguments + (list + #:install-plan + #~`(("libvid.so.0" "lib/")) + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'build + (lambda args + (invoke #$(cc-for-target) + "-Wall" "-Werror" "-shared" "-fPIC" + "-o" "libvid.so.0" + "libvid.c")))))) + (home-page "https://lang.video") + (synopsis "Logging support library for @code{#lang video}") + (description "The libvid library adapts FFmpeg's logging API to +interoperate more easily with Racket's foreign interface.") + (license license:asl2.0)))) + (define configure-layer.rkt (scheme-file "configure-layer.rkt"