summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Timo Gurr <tgurr@exherbo.org> 2018-12-13 19:05:54 +0100
committerAvatar Timo Gurr <tgurr@exherbo.org> 2018-12-13 19:05:54 +0100
commitef731873a205731186a1870e3b039b4514665582 (patch)
treeb34d6148a93fb736f8e5c26a30873c2be13da166
parent28f4907e53b1e239f30c25e12621813a24cfba2a (diff)
downloadcogitri-ef731873a205731186a1870e3b039b4514665582.tar.gz
cogitri-ef731873a205731186a1870e3b039b4514665582.tar.xz
catch: version bump to 2.5.0
-rw-r--r--packages/dev-cpp/catch/catch-2.3.0.exheres-024
-rw-r--r--packages/dev-cpp/catch/catch-2.5.0.exheres-035
2 files changed, 35 insertions, 24 deletions
diff --git a/packages/dev-cpp/catch/catch-2.3.0.exheres-0 b/packages/dev-cpp/catch/catch-2.3.0.exheres-0
deleted file mode 100644
index 230aa5f..0000000
--- a/packages/dev-cpp/catch/catch-2.3.0.exheres-0
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2017-2018 Rasmus Thomsen <Rasmus.thomsen@protonmail.com>
-# Distributed under the terms of the GNU General Public License v2
-
-require github [ user=catchorg project=Catch2 tag=v${PV} ]
-
-SUMMARY="A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD"
-
-LICENCES="Boost-1.0"
-
-PLATFORMS="~amd64"
-SLOT="0"
-
-MYOPTIONS="doc"
-
-DEPEDENCIES=""
-
-WORK="${WORKBASE}/Catch2-${PV}"
-
-src_install() {
- insinto /usr/$(exhost --target)/include/catch
- doins -r include/.
- option doc && dodoc docs/.
-}
-
diff --git a/packages/dev-cpp/catch/catch-2.5.0.exheres-0 b/packages/dev-cpp/catch/catch-2.5.0.exheres-0
new file mode 100644
index 0000000..73c1d36
--- /dev/null
+++ b/packages/dev-cpp/catch/catch-2.5.0.exheres-0
@@ -0,0 +1,35 @@
+# Copyright 2017-2018 Rasmus Thomsen <Rasmus.thomsen@protonmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+require github [ user=catchorg project=Catch2 tag=v${PV} ] \
+ cmake [ api=2 ]
+
+SUMMARY="A modern, C++-native, header-only, test framework for unit-tests, TDD and BDD"
+
+LICENCES="Boost-1.0"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS="doc"
+
+DEPENDENCIES="
+ test:
+ dev-lang/python:*
+"
+
+CMAKE_SRC_CONFIGURE_PARAMS=(
+ -DCATCH_BUILD_EXAMPLES:BOOL=FALSE
+ -DCATCH_BUILD_EXTRA_TESTS:BOOL=FALSE
+ -DCATCH_ENABLE_COVERAGE:BOOL=FALSE
+ -DCATCH_ENABLE_WERROR:BOOL=FALSE
+ -DCATCH_INSTALL_HELPERS:BOOL=TRUE
+ -DCATCH_USE_VALGRIND:BOOL=FALSE
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PNVR}
+)
+CMAKE_SRC_CONFIGURE_OPTIONS=(
+ 'doc CATCH_INSTALL_DOCS'
+)
+CMAKE_SRC_CONFIGURE_TESTS=(
+ '-DBUILD_TESTING:BOOL=TRUE -DBUILD_TESTING:BOOL=FALSE'
+ '-DCATCH_BUILD_TESTING:BOOL=TRUE -DCATCH_BUILD_TESTING:BOOL=FALSE'
+)
+