unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: David Elsing <david.elsing@posteo.net>
To: 64137@debbugs.gnu.org
Cc: David Elsing <david.elsing@posteo.net>
Subject: [bug#64137] [PATCH v2 7/8] gnu: catch2-3.1: Rename to catch2-3.3.
Date: Sun, 18 Jun 2023 20:53:06 +0000	[thread overview]
Message-ID: <9438fc1bce335e6cac5297094722e746498d7f8d.1687121561.git.david.elsing@posteo.net> (raw)
In-Reply-To: <7yh6r4ebw2.fsf@posteo.net>

* gnu/packages/check.scm (catch2-3.1): Rename to catch2-3.3.
* gnu/packages/potassco.scm (clingo): Adjust accordingly.
---
 gnu/packages/check.scm    | 70 +++++----------------------------------
 gnu/packages/potassco.scm |  2 +-
 2 files changed, 10 insertions(+), 62 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 87728fefa3..512b2ac070 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -38,7 +38,7 @@
 ;;; Copyright © 2020, 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
 ;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
-;;; Copyright © 2022 David Elsing <david.elsing@posteo.net>
+;;; Copyright © 2022, 2023 David Elsing <david.elsing@posteo.net>
 ;;; Copyright © 2022 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;; Copyright © 2022 jgart <jgart@dismail.de>
 ;;; Copyright © 2023 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com>
@@ -596,10 +596,10 @@ (define-public cbehave
 pattern.")
       (license license:apsl2))))
 
-(define-public catch2-3.1
+(define-public catch2-3.3
   (package
     (name "catch2")
-    (version "3.1.1")
+    (version "3.3.2")
     (home-page "https://github.com/catchorg/Catch2")
     (source (origin
               (method git-fetch)
@@ -609,66 +609,14 @@ (define-public catch2-3.1
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1qnr5b3zq8brh43f924rgnw5gmmjf9ax7kbq2crz1mlwgmdymxlp"))))
-    (outputs (list "out" "static"))
-    (build-system meson-build-system)
+                "0m6i3lr0qk303ashjpz5vpwmxf76n5d6s8jq6r6kcy6gph525zmp"))))
+    (build-system cmake-build-system)
     (arguments
      (list
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'unpack 'patch-meson
-            (lambda _
-              (substitute* "src/catch2/meson.build"
-                (("static_library") "both_libraries"))))
-          (add-after 'install 'install-cmake-config
-            (lambda* (#:key outputs #:allow-other-keys)
-              (define prefix (string-append (assoc-ref outputs "out")
-                                            "/lib/cmake/Catch2/"))
-              (mkdir-p prefix)
-              (call-with-output-file (string-append
-                                      prefix
-                                      "catch2-config-version.cmake")
-                (lambda (port)
-                  (format
-                   port
-                   "set(PACKAGE_VERSION ~s)~@
-                    if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)~@
-                    set(PACKAGE_VERSION_EXACT TRUE)~@
-                    set(PACKAGE_VERSION_COMPATIBLE TRUE)~@
-                    elseif(PACKAGE_FIND_VERSION VERSION_LESS_EQUAL ~
-                           PACKAGE_VERSION)~@
-                    set(PACKAGE_VERSION_COMPATIBLE TRUE)~@
-                    else()~@
-                    set(PACKAGE_VERSION_COMPATIBLE FALSE)~@
-                    endif()"
-                   #$version)))
-              (call-with-output-file (string-append prefix
-                                                    "catch2-config.cmake")
-                (lambda (port)
-                  (format
-                   port
-                   "include(FindPkgConfig)~@
-                    pkg_check_modules(CATCH2 IMPORTED_TARGET GLOBAL catch2)~@
-                    pkg_check_modules(CATCH2MAIN ~
-                                      IMPORTED_TARGET GLOBAL ~
-                                      catch2 catch2-with-main)~@
-                    if(CATCH2_FOUND)~@
-                      add_library(Catch2::Catch2 ALIAS PkgConfig::CATCH2)~@
-                    endif()~@
-                    if(CATCH2MAIN_FOUND)~@
-                      add_library(Catch2::Catch2WithMain ~
-                                  ALIAS PkgConfig::CATCH2MAIN)~@
-                    endif()")))))
-          (add-after 'install 'move-static-libraries
-            (lambda* (#:key outputs #:allow-other-keys)
-              (let ((out (assoc-ref outputs "out"))
-                    (static (assoc-ref outputs "static")))
-                (for-each
-                 (lambda (file)
-                   (install-file file (string-append static "/lib"))
-                   (delete-file file))
-                 (find-files (string-append out "/lib")
-                             "\\.a$"))))))))
+      #:configure-flags
+      #~(list "-DCATCH_DEVELOPMENT_BUILD=ON"
+              "-DENABLE_WERROR=OFF"
+              "-DBUILD_SHARED_LIBS=ON")))
     (inputs (list python-wrapper))
     (synopsis "Automated test framework for C++ and Objective-C")
     (description "Catch2 stands for C++ Automated Test Cases in Headers and is
diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm
index b8e51e7d47..4e7d715e39 100644
--- a/gnu/packages/potassco.scm
+++ b/gnu/packages/potassco.scm
@@ -209,7 +209,7 @@ (define-public clingo
                                 "unpool-ast-v2" "parse_term"
                                 "propagator" "propgator-sequence-mining"
                                 "symbol" "visitor"))))))))))
-    (inputs (list catch2-3.1 clasp libpotassco))
+    (inputs (list catch2-3.3 clasp libpotassco))
     (native-inputs (list mpark-variant
                          pkg-config
                          tl-optional
-- 
2.40.1





  parent reply	other threads:[~2023-06-18 20:54 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-17 19:27 [bug#64137] [PATCH 0/2] Build catch2@3 with CMake and update to 3.3.2 David Elsing
2023-06-17 19:30 ` [bug#64137] [PATCH 1/2] gnu: catch2-3.1: Rename to catch2-3.3 David Elsing
2023-06-17 19:30 ` [bug#64137] [PATCH 2/2] gnu: Add catch2-static-3.3 David Elsing
2023-06-18  6:55 ` [bug#64137] [PATCH 0/2] Build catch2@3 with CMake and update to 3.3.2 Liliana Marie Prikler
2023-06-18 20:47   ` David Elsing
2023-06-18 20:53     ` [bug#64137] [PATCH v2 1/8] gnu: Add mpark-variant David Elsing
2023-06-22  4:16       ` Liliana Marie Prikler
2023-06-18 20:53     ` [bug#64137] [PATCH v2 2/8] gnu: Add tsl-hopscotch-map David Elsing
2023-06-22  4:18       ` Liliana Marie Prikler
2023-06-18 20:53     ` [bug#64137] [PATCH v2 3/8] gnu: Add tsl-sparse-map David Elsing
2023-06-18 20:53     ` [bug#64137] [PATCH v2 4/8] gnu: Add tsl-ordered-map David Elsing
2023-06-18 20:53     ` [bug#64137] [PATCH v2 5/8] gnu: Add tl-optional David Elsing
2023-06-18 20:53     ` [bug#64137] [PATCH v2 6/8] gnu: clingo: Unbundle dependencies David Elsing
2023-06-22  4:19       ` Liliana Marie Prikler
2023-06-18 20:53     ` David Elsing [this message]
2023-06-22  4:20       ` [bug#64137] [PATCH v2 7/8] gnu: catch2-3.1: Rename to catch2-3.3 Liliana Marie Prikler
2023-06-18 20:53     ` [bug#64137] [PATCH v2 8/8] gnu: Add catch2-static-3.3 David Elsing
2023-06-22  4:24       ` Liliana Marie Prikler
2023-06-25 10:01     ` [bug#64137] [PATCH 0/2] Build catch2@3 with CMake and update to 3.3.2 David Elsing
2023-06-25 10:03       ` [bug#64137] [PATCH v3 1/7] gnu: Add mpark-variant David Elsing
2023-06-25 10:03       ` [bug#64137] [PATCH v3 2/7] gnu: Add tsl-hopscotch-map David Elsing
2023-06-25 10:03       ` [bug#64137] [PATCH v3 3/7] gnu: Add tsl-sparse-map David Elsing
2023-06-25 10:03       ` [bug#64137] [PATCH v3 4/7] gnu: Add tsl-ordered-map David Elsing
2023-06-25 10:03       ` [bug#64137] [PATCH v3 5/7] gnu: Add tl-optional David Elsing
2023-06-25 10:03       ` [bug#64137] [PATCH v3 6/7] gnu: clingo: Unbundle dependencies David Elsing
2023-06-25 10:03       ` [bug#64137] [PATCH v3 7/7] gnu: catch2-3.1: Rename to catch2-3.3 and update to 3.3.2 David Elsing
2023-06-25 16:06       ` [bug#64137] [PATCH 0/2] Build catch2@3 with CMake " Liliana Marie Prikler
     [not found]         ` <7ycz1f350w.fsf@posteo.net>
2023-06-28 16:51           ` [bug#64137] [PATCH v4] gnu: catch2-3.1: Rename to catch2-3.3 " David Elsing
2023-07-01 10:41           ` bug#64137: [PATCH 0/2] Build catch2@3 with CMake " Liliana Marie Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9438fc1bce335e6cac5297094722e746498d7f8d.1687121561.git.david.elsing@posteo.net \
    --to=david.elsing@posteo.net \
    --cc=64137@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).