From patchwork Sat Aug 26 18:52:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 53234 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 842D627BBE9; Sat, 26 Aug 2023 19:53:17 +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=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 5140F27BBE2 for ; Sat, 26 Aug 2023 19:53:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZyPA-0002k1-BS; Sat, 26 Aug 2023 14:53:04 -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 1qZyP5-0002iV-2y for guix-patches@gnu.org; Sat, 26 Aug 2023 14:53:00 -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 1qZyP3-0006ZI-Bz for guix-patches@gnu.org; Sat, 26 Aug 2023 14:52:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZyP8-0007Ve-KS for guix-patches@gnu.org; Sat, 26 Aug 2023 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 3/6] gnu: Add arrayfire-threads. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169307597228844 (code B ref 65553); Sat, 26 Aug 2023 18:53:02 +0000 Received: (at 65553) by debbugs.gnu.org; 26 Aug 2023 18:52:52 +0000 Received: from localhost ([127.0.0.1]:43411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyOy-0007V9-EH for submit@debbugs.gnu.org; Sat, 26 Aug 2023 14:52:52 -0400 Received: from layka.disroot.org ([178.21.23.139]:36050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyOw-0007V1-Bd for 65553@debbugs.gnu.org; Sat, 26 Aug 2023 14:52:51 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 72536411EB for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:52:44 +0200 (CEST) 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 D97ZcS8ec_nr for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:52:43 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693075963; bh=QO1PSI6iYMVqMMR4YV5zLpI0Qdg0/j4S9b4q4etO4dU=; h=Date:To:From:Subject; b=CD3ckWbBmxkYRHUrOWLjC69p62AsjaaBNOfrcIy+uUXOq4btmIZgHjYXFZbnl1Lky n71EvciN1q/Z3GxweS4ZtKA2IGxBktXkVFLePTOzgDY4Fqk2iFE647C8QnxbmOtfmk Zo+sX2tKxbA3ypOTfgn0vXIa3+VJfAgsAZ3FEH3Epw8eY6qHphe8E73rsgEwUpXJLs 3cOHpmY3av1NACK7UDJcdW0FTGSlIEoqUSYcV2ax/zsxNqea265T1QcwhYIzGe3Ilw hG+ILjdG0cfYK1EtJxAZ2+HYpwv3j40VoPsjo/oqTWcv1CVeJkZCw4AwfLCV9NCEHn Fy2y1hW+T/P/A== Date: Sun, 27 Aug 2023 02:52:39 +0800 MIME-Version: 1.0 Content-Language: en-US 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: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz 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 8eb098f8c795f0bfdc036fc53c94de6f7c29eeb1 Mon Sep 17 00:00:00 2001 Message-ID: <8eb098f8c795f0bfdc036fc53c94de6f7c29eeb1.1693075221.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 27 Aug 2023 02:06:31 +0800 Subject: [PATCH 3/6] gnu: Add arrayfire-threads. * gnu/packages/cpp.scm (arrayfire-threads): New variable. --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 6ab3710000..64147167c1 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1554,6 +1554,46 @@ (define-public lager event loops it also provides lenses and cursors.") (license license:expat)))) +(define-public arrayfire-threads + (let ((commit "4d4a4f0384d1ac2f25b2c4fc1d57b9e25f4d6818") + (revision "0")) + (package + (name "arrayfire-threads") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arrayfire/threads") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zipmh6rlk9nzczqp0bj9jjbqvjyk1rxnxz5rqpx83h91bvi7axa")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "Makefile" + (("g\\+\\+-4.9") "g++") + (("-o test" all) + (string-append all "\n\n" + "install:\n\t" + "mkdir -p $(DESTDIR)$(PREFIX)/include\n\t" + "cp -r include $(DESTDIR)$(PREFIX)"))))))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list (string-append "DESTDIR=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; no configure + (delete 'build) ; building the headers fail to compile + (delete 'check)))) ; test.cpp is compiled in the `all` target + (synopsis "Threads headers for ArrayFire") + (description + "This package provides threads headers for ArrayFire.") + (home-page "https://github.com/arrayfire/threads") + (license license:bsd-3)))) + (define-public atomic-queue (package (name "atomic-queue")