From 0c18b1651ddf767b38d28cd6761a841311a1da72 Mon Sep 17 00:00:00 2001 From: Mihail Ivanchev Date: Mon, 29 Apr 2024 14:38:42 +0200 Subject: [PATCH] New package: Criterion-2.4.3 --- srcpkgs/Criterion-devel | 1 + srcpkgs/Criterion/patches/wraps.patch | 62 +++++++++++++++++++++++++++ srcpkgs/Criterion/template | 57 ++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 120000 srcpkgs/Criterion-devel create mode 100644 srcpkgs/Criterion/patches/wraps.patch create mode 100644 srcpkgs/Criterion/template diff --git a/srcpkgs/Criterion-devel b/srcpkgs/Criterion-devel new file mode 120000 index 00000000000000..f21a0adfe892f3 --- /dev/null +++ b/srcpkgs/Criterion-devel @@ -0,0 +1 @@ +Criterion \ No newline at end of file diff --git a/srcpkgs/Criterion/patches/wraps.patch b/srcpkgs/Criterion/patches/wraps.patch new file mode 100644 index 00000000000000..35e53ab22dd864 --- /dev/null +++ b/srcpkgs/Criterion/patches/wraps.patch @@ -0,0 +1,62 @@ +diff --git a/subprojects/debugbreak.wrap b/subprojects/debugbreak.wrap +index 3ec9e45..a46a315 100644 +--- a/subprojects/debugbreak.wrap ++++ b/subprojects/debugbreak.wrap +@@ -1,8 +1,5 @@ +-[wrap-git] ++[wrap-file] + directory = debugbreak +-url = https://github.com/MrAnno/debugbreak.git +-revision = 83bf7e933311b88613cbaadeced9c2e2c811054a +-patch_directory = debugbreak + + [provide] + debugbreak = debugbreak_dep +diff --git a/subprojects/klib.wrap b/subprojects/klib.wrap +index dbaa5de..446f4da 100644 +--- a/subprojects/klib.wrap ++++ b/subprojects/klib.wrap +@@ -1,8 +1,5 @@ +-[wrap-git] ++[wrap-file] + directory = klib +-url = https://github.com/attractivechaos/klib.git +-revision = cdb7e9236dc47abf8da7ebd702cc6f7f21f0c502 +-patch_directory = klib + + [provide] + klib = klib_dep +diff --git a/subprojects/nanopb-cmake.wrap b/subprojects/nanopb-cmake.wrap +index cdfa9e1..960ab61 100644 +--- a/subprojects/nanopb-cmake.wrap ++++ b/subprojects/nanopb-cmake.wrap +@@ -1,4 +1,2 @@ +-[wrap-git] ++[wrap-file] + directory = nanopb +-url = https://github.com/nanopb/nanopb.git +-revision = nanopb-0.4.9.1 +diff --git a/subprojects/nanopb-cmake.wrap.orig b/subprojects/nanopb-cmake.wrap.orig +new file mode 100644 +index 0000000..d3b5d77 +--- /dev/null ++++ b/subprojects/nanopb-cmake.wrap.orig +@@ -0,0 +1,4 @@ ++[wrap-git] ++directory = nanopb ++url = https://github.com/nanopb/nanopb ++revision = nanopb-0.4.9.1 +diff --git a/subprojects/nanopb-cmake.wrap.rej b/subprojects/nanopb-cmake.wrap.rej +new file mode 100644 +index 0000000..8bdf4ee +--- /dev/null ++++ b/subprojects/nanopb-cmake.wrap.rej +@@ -0,0 +1,8 @@ ++--- subprojects/nanopb-cmake.wrap +++++ subprojects/nanopb-cmake.wrap ++@@ -1,4 +1,2 @@ ++-[wrap-git] +++[wrap-file] ++ directory = nanopb ++-url = https://github.com/nanopb/nanopb ++-revision = nanopb-0.4.7 diff --git a/srcpkgs/Criterion/template b/srcpkgs/Criterion/template new file mode 100644 index 00000000000000..e9bf9598c6bae0 --- /dev/null +++ b/srcpkgs/Criterion/template @@ -0,0 +1,57 @@ +# Template file for 'Criterion' +pkgname=Criterion +_debugbreakcommit=83bf7e933311b88613cbaadeced9c2e2c811054a +_klibcommit=cdb7e9236dc47abf8da7ebd702cc6f7f21f0c502 +_nanopbver=0.4.9.1 +_BoxFortver=0.1.5 +version=2.4.3 +revision=1 +build_style=meson +configure_args="-Dsamples=false" +hostmakedepends="pkg-config cmake" +makedepends="libffi-devel libgit2-devel nanomsg-devel gettext-devel" +short_desc="Cross-platform C and C++ unit testing framework for the 21st century" +maintainer="Mihail Ivanchev " +license="MIT" +homepage="https://github.com/Snaipe/Criterion" +distfiles="https://github.com/Snaipe/Criterion/archive/refs/tags/v${version}.tar.gz + https://github.com/MrAnno/debugbreak/archive/${_debugbreakcommit}.tar.gz>debugbreak.tar.gz + https://github.com/attractivechaos/klib/archive/${_klibcommit}.tar.gz>klib.tar.gz + https://github.com/nanopb/nanopb/archive/refs/tags/${_nanopbver}.tar.gz>nanopb.tar.gz + https://github.com/Snaipe/BoxFort/archive/refs/tags/v${_BoxFortver}.tar.gz>BoxFort.tar.gz" +checksum="6d924ee5eeaaaed7762ab968f560b9ff543fc3473aa949bf53ac56a2a1a9416c + 9de3bb0d23f43a6f019f186261a21f3f709c5717c61539ab655b7051ae58ee51 + 1291ba5df7badf7f68188b4a622a7e694de61f8a01adbed9099da01df81f9c9a + 4575944a468718ef25f05eb01d994364650b581563089a9841986bb1e460eac3 + 47fde5ce6fbbd7166268e97edc0fc22ed2bf0bf4d93b81ee30d664a8c35a155c" +skip_extraction="debugbreak klib nanopb BoxFort" +build_wrksrc=${pkgname}-${version} +patch_args="-Np1 --directory=${build_wrksrc}" + +CFLAGS+=" -D_LARGEFILE64_SOURCE" + +post_extract() { + subprojs=${build_wrksrc}/subprojects + vsrcextract -C ${subprojs}/debugbreak debugbreak.tar.gz + cp -R ${subprojs}/packagefiles/debugbreak ${subprojs}/ + vsrcextract -C ${subprojs}/klib klib.tar.gz + cp -R ${subprojs}/packagefiles/klib ${subprojs}/ + vsrcextract -C ${subprojs}/nanopb nanopb.tar.gz + vsrcextract -C ${subprojs}/boxfort BoxFort.tar.gz +} + +post_install() { + vlicense LICENSE +} + +Criterion-devel_package() { + depends="Criterion>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + vmove "usr/lib/*.a" + vmove usr/share + } +}