From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4ih6Ja3agmBZMgEAgWs5BA (envelope-from ) for ; Fri, 23 Apr 2021 16:33:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id o8HLH63agmCBRQAAbx9fmQ (envelope-from ) for ; Fri, 23 Apr 2021 14:33:17 +0000 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 373CCD6E7 for ; Fri, 23 Apr 2021 16:33:17 +0200 (CEST) Received: from localhost ([::1]:41328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZwrs-000385-Ch for larch@yhetil.org; Fri, 23 Apr 2021 10:33:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZwrg-000366-Pk for guix-patches@gnu.org; Fri, 23 Apr 2021 10:33:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZwrg-0005N3-If for guix-patches@gnu.org; Fri, 23 Apr 2021 10:33:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZwrg-00077L-Fo for guix-patches@gnu.org; Fri, 23 Apr 2021 10:33:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47972] [PATCH 4/6] gnu: Add fmt-for-irods. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Apr 2021 14:33:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47972 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 47972@debbugs.gnu.org Cc: Ricardo Wurmus Received: via spool by 47972-submit@debbugs.gnu.org id=B47972.161918835227271 (code B ref 47972); Fri, 23 Apr 2021 14:33:04 +0000 Received: (at 47972) by debbugs.gnu.org; 23 Apr 2021 14:32:32 +0000 Received: from localhost ([127.0.0.1]:38453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZwr5-00075S-FI for submit@debbugs.gnu.org; Fri, 23 Apr 2021 10:32:32 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZwr2-00075B-GR for 47972@debbugs.gnu.org; Fri, 23 Apr 2021 10:32:25 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1619188342; cv=none; d=zohomail.com; s=zohoarc; b=PuLqvyK3arajmm0Ln2rYJQnML50Z0xRskidgNE+XGoHzvMBvNl4h3jl/yF09NnIp0DnZEHE4gMF7gqcwbgiT7zIZAMEYs7OnRt+VXwecP1UNuaOANG6cELG9Xp+LRYbs64hBjLtBEc07GqkeEj+WtSNtM5vQAVYqnfn+AjN7stU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619188342; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=xZTplBA3fMT3Gus2KHAsrBBhWLojauK3yv8FK+vHfos=; b=WD6Z+HyrX0dezIlKRkh05IYuhbHJQ+3kJPZsZqQQX8qGOdzLkkc8Nbx8wbzodRM9MQTUFnxb5UC0CoWeYgvZxWNWYXOBN1OtYAS6VNg6l/sZ1LqH9mzBVS+MhsMElO7tooxfMRTAAKMclcBqmaLmZ1nJ82e5h043TF/ShuSx2SQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1619188342; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=xZTplBA3fMT3Gus2KHAsrBBhWLojauK3yv8FK+vHfos=; b=ZbRshkQjnvCLz8bp9ZgsBfIvIWLAysZ3Dj2NQMmvOHV5y0EDMJ5K+9EuYM3zqhx2 kP32VbEuQdwEwpdPDSnAxMnqgQBH8CT/FtJZX/G12zuta8Ez1OmUUzk8S4uhqSkITc4 Dy/PAq2UHjds8bC6P6qXVWvROj91MXC43r7WHopA= Received: from localhost (p54ad4fb3.dip0.t-ipconnect.de [84.173.79.179]) by mx.zohomail.com with SMTPS id 1619188341067622.9332547598373; Fri, 23 Apr 2021 07:32:21 -0700 (PDT) From: Ricardo Wurmus Date: Fri, 23 Apr 2021 16:31:59 +0200 Message-Id: <20210423143201.12831-4-rekado@elephly.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210423143201.12831-1-rekado@elephly.net> References: <20210423143201.12831-1-rekado@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619188397; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=xZTplBA3fMT3Gus2KHAsrBBhWLojauK3yv8FK+vHfos=; b=J7juUAL9lXXyDWxgtoGGQa/+lccjgUGapCzb1eq2x8Spayfji8nwQCh6sHcaVzU7w0pm+d HuXLowXeAiQws63NTlnlVRCvE5kuPoYQAGNXtX3xsCkNoi01LOwT0o7nMq0FXtb/+frDpV m04vHl6XdnYFUXe0kxQ3VetyPv+6EHHSFMON7FtseUvdS46Dgz5ikoZnxg01ApkPzznHTj 5j3poj++7tlYHopcE6P/Pse2BbHFsgHyG8PqOyAZ1ZoNphHSaihwmf4tmj1pooDDiyMQdT w4p6BEPLVOAUQFA2oxg5cQqm+XWRR1peS3Dc/SJ5tqWVl77BDaypUZQymsgnAA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1619188397; a=rsa-sha256; cv=fail; b=LM9xsNUaSZfsKMt0GtUMbql8B/LTpQHe/WTeLemUz7LeLzgVJYnFavDqSduMGLWO5eBNOJ F7QD6GO2cqwrc+1jmQVY6XEHxSuiDnsc7NkvoWj/RZrUUww9rmlW6YkxaFZZVt3hai37WY EKQcxrWTFevNoBTdkuswll0BGjx/mXW1iACbLUH/K/uBViMI9I+SktbyvYDHDgX83lFSS2 ZCz3Wa0PuMnn0uU8TgRHbIaqOPMzSccWLm7mbKcYyvZ5yoNALdD9u4HNHo7m7h3WkKq3ya OCMjJdta9iD0xGmwSDudk0V/kBxeqNjUm2NXEY9iqbg4w0vyEL/RAhRBLJQ0jg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=ZbRshkQj; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=ZbRshkQj; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 373CCD6E7 X-Spam-Score: 3.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: O5enkcRLNaIL * gnu/packages/pretty-print.scm (fmt-for-irods): New variable. --- gnu/packages/pretty-print.scm | 55 ++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm index 4662a1e717..7e7da53599 100644 --- a/gnu/packages/pretty-print.scm +++ b/gnu/packages/pretty-print.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016, 2019, 2020 Efraim Flashner -;;; Copyright © 2016 Ricardo Wurmus +;;; Copyright © 2016, 2021 Ricardo Wurmus ;;; Copyright © 2017 Marius Bakke ;;; Copyright © 2017, 2020 Ludovic Courtès ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice @@ -41,6 +41,7 @@ #:use-module (gnu packages gperf) #:use-module (gnu packages groff) #:use-module (gnu packages gv) + #:use-module (gnu packages llvm) #:use-module (gnu packages lua) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -189,6 +190,58 @@ to @code{IOStreams}.") ;; The library is bsd-2, but documentation and tests include other licenses. (license (list bsd-2 bsd-3 psfl)))) +(define-public fmt-for-irods + (package + (name "fmt-for-irods") + (version "6.1.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/fmtlib/fmt/releases/download/" + version "/fmt-" version ".zip")) + (sha256 + (base32 "1s1hxaby5byb07rgmrk4a0q11fxhz7b42khch7sp2qx974y0yrb3")))) + (build-system cmake-build-system) + (arguments + '(#:tests? #f ; TODO: posix-mock-test segfaults + #:configure-flags + '("-DBUILD_SHARED_LIBS=ON" + "-DCMAKE_CXX_COMPILER=clang++" + "-DCMAKE_CXX_FLAGS=-stdlib=libc++" + "-DCMAKE_EXE_LINKER_FLAGS=-lc++abi") + #:phases + (modify-phases %standard-phases + (add-after 'set-paths 'adjust-CPLUS_INCLUDE_PATH + (lambda* (#:key inputs #:allow-other-keys) + (let ((gcc (assoc-ref inputs "gcc"))) + (setenv "CPLUS_INCLUDE_PATH" + (string-join + (cons (string-append (assoc-ref inputs "libcxx") + "/include/c++/v1") + ;; Hide GCC's C++ headers so that they do not interfere with + ;; the Clang headers. + (delete (string-append gcc "/include/c++") + (string-split (getenv "CPLUS_INCLUDE_PATH") + #\:))) + ":")) + (format #true + "environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%" + (getenv "CPLUS_INCLUDE_PATH")))))))) + (native-inputs + `(("unzip" ,unzip))) + (inputs + `(("libcxx" ,libcxx+libcxxabi-6) + ("libcxxabi" ,libcxxabi-6) + ("clang" ,clang-6))) + (home-page "https://fmt.dev") + (synopsis "Small and fast C++ formatting library") + (description + "@code{fmt} (formerly @code{cppformat}) is a formatting library for C++. +It can be used as a safe alternative to @code{printf} or as a fast alternative +to @code{IOStreams}.") + ;; The library is bsd-2, but documentation and tests include other licenses. + (license (list bsd-2 bsd-3 psfl)))) + (define-public source-highlight (package (name "source-highlight") -- 2.31.1