From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id TpTPCM24MWAWdgAA0tVLHw (envelope-from ) for ; Sun, 21 Feb 2021 01:35:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mJ4BBM24MWCKWQAAB5/wlQ (envelope-from ) for ; Sun, 21 Feb 2021 01:35:09 +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 74F4F15F8F for ; Sun, 21 Feb 2021 02:35:08 +0100 (CET) Received: from localhost ([::1]:58576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDdeN-0005oI-MK for larch@yhetil.org; Sat, 20 Feb 2021 20:35:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDdWZ-00059H-Dp for guix-patches@gnu.org; Sat, 20 Feb 2021 20:27:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDdWZ-0002GC-6r for guix-patches@gnu.org; Sat, 20 Feb 2021 20:27:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDdWZ-00044Q-3l for guix-patches@gnu.org; Sat, 20 Feb 2021 20:27:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46673] [PATCH] gnu: Add cli11. Resent-From: Milkey Mouse Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Feb 2021 01:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46673 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46673@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161387080815608 (code B ref -1); Sun, 21 Feb 2021 01:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2021 01:26:48 +0000 Received: from localhost ([127.0.0.1]:53272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDdWJ-00043a-Up for submit@debbugs.gnu.org; Sat, 20 Feb 2021 20:26:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:58760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDdNW-0003qK-Mg for submit@debbugs.gnu.org; Sat, 20 Feb 2021 20:17:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDdNW-0004CN-Gk for guix-patches@gnu.org; Sat, 20 Feb 2021 20:17:42 -0500 Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDdNU-0006VS-O7 for guix-patches@gnu.org; Sat, 20 Feb 2021 20:17:42 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1613870256; cv=none; d=zohomail.com; s=zohoarc; b=UED48KOsEoJI+JOMAo8qyVJ34JreBaVuv78GgZuMUwt2XJEAFEaEOTiZlZg0LTelcV2Vux/zKH+7z8hg8/ls7OHNfKl85qOLD4iMGbh1b/Ii4qkPo0trTNosXkzyMf1612BUptfteSLuB76tHzvnSjz2nY39AguRLTKK4C6wpGc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613870256; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=I+5wLc2q+rfaA/FYx4dFdi76sJgZV3aUitvcwvffAaw=; b=j54B5a7AKF2VEHtspAWcMsvZ7QQC+fE5LlUd3Nz8P6DrjLLnvTg7hLCnnAggogMQwmtvYZDGum03zUQ8+fRt/AGjs3WUOe4m/kT/aohxTiiUymN5nkP75PJaqeh0uyPsf6Uwc/3SAo4p07tFCffcR30ATjON46U5+tJAcy9Ic3U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=meme.institute; spf=pass smtp.mailfrom=milkeymouse@meme.institute; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1613870256; s=memelord; d=meme.institute; i=milkeymouse@meme.institute; h=From:To:Message-ID:Subject:Date:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=I+5wLc2q+rfaA/FYx4dFdi76sJgZV3aUitvcwvffAaw=; b=kpaIZcht4PV07KNzF+sR+jSTKjMT8fEmQNidX6JFoKQZYjwnHHApmOcc6zSiAPhl 02B9ae0avGjBI/GR0+EV4WDu91rXomWIRNxnkLaZguI6IkfrDnGv1M6hwvTKy0q0tHp hWvB+hS049R4WwTF6kzEEIKpFq4VUqUoLtXUOZQA= Received: from jupiter.local (50.47.115.222 [50.47.115.222]) by mx.zohomail.com with SMTPS id 1613870253086537.146204212367; Sat, 20 Feb 2021 17:17:33 -0800 (PST) From: Milkey Mouse Message-ID: <20210221011728.757238-1-milkeymouse@meme.institute> Date: Sat, 20 Feb 2021 17:17:28 -0800 X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 Received-SPF: pass client-ip=136.143.188.54; envelope-from=milkeymouse@meme.institute; helo=sender4-of-o54.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 20 Feb 2021 20:26:45 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 20 Feb 2021 20:35:00 -0500 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 X-Migadu-Spam-Score: 1.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=meme.institute header.s=memelord header.b=kpaIZcht; 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: 74F4F15F8F X-Spam-Score: 1.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: cFXM3XLcjFRW * gnu/packages/cpp.scm (cli11): New variable. --- gnu/packages/cpp.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 331afc2e3e..1eb0f1a73a 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -40,6 +40,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix modules) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages boost) @@ -903,3 +904,51 @@ provides a number of utilities to make coding with exp= ected cleaner.") (description "Magic Enum offers static reflection of enums, with conversions to and from strings, iteration and related functionality.") (license license:expat))) + +(define-public cli11 + (package + (name "cli11") + (version "1.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/CLIUtils/CLI11") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hbch0vk8irgmiaxnfqlqys65v1770rxxdfn3d23m2vqyjh0j9l6")) + (modules '((guix build utils))) + (snippet + '(begin (delete-file-recursively "extern") + #t)))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + '("-DCLI11_SINGLE_FILE=3DOFF" + "-DCLI11_BUILD_EXAMPLES=3DOFF") + #:imported-modules ,(append %cmake-build-system-modules + (source-module-closure '((guix utils)))= ) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'no-vendor-gtest + (lambda _ + (use-modules (guix utils)) + (substitute* "tests/CMakeLists.txt" + ;; We provide our own googletest, so this is not really a p= roblem. + (("message\\(FATAL_ERROR \"You have requested tests be buil= t, but googletest is not downloaded." msg) + (string-replace-substring msg "FATAL_ERROR" "TRACE"))) + (substitute* "cmake/AddGoogletest.cmake" + (("^add_subdirectory\\(.*googletest.*$") "find_package(GTes= t REQUIRED)") + (("^set_target_properties\\(gtest gtest_main gmock gmock_ma= in") "") + (("^ PROPERTIES FOLDER \"Extern\"\\)") "")) + #t))))) + (native-inputs + `(("doxygen" ,doxygen) + ("googletest" ,googletest))) + (synopsis "Command line parser for C++11") + (description + "CLI11 is a command line parser for C++11 and beyond that provides a = rich +feature set with a simple and intuitive interface.") + (home-page "https://cliutils.github.io/CLI11/book/") + (license license:bsd-3))) --=20 2.30.1