From: MIvanchev <MIvanchev@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP] New package: Criterion-2.4.2
Date: Mon, 29 Apr 2024 18:12:32 +0200 [thread overview]
Message-ID: <20240429161232.997EB242B9@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50109@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
There is an updated pull request by MIvanchev against master on the void-packages repository
https://github.com/MIvanchev/void-packages criterion
https://github.com/void-linux/void-packages/pull/50109
[WIP] New package: Criterion-2.4.2
#### Testing the changes
- I tested the changes in this PR: **NO**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
A patch file from https://github.com/void-linux/void-packages/pull/50109.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-criterion-50109.patch --]
[-- Type: text/x-diff, Size: 4399 bytes --]
From 314bc7ce3ffac0717403618b9e0cfb2e32f425b6 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Mon, 29 Apr 2024 14:38:42 +0200
Subject: [PATCH] New package: Criterion-2.4.2
---
srcpkgs/Criterion-devel | 1 +
srcpkgs/Criterion/patches/wraps.patch | 38 ++++++++++++++++++++
srcpkgs/Criterion/template | 51 +++++++++++++++++++++++++++
3 files changed, 90 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..ba6bc0a3f7379b
--- /dev/null
+++ b/srcpkgs/Criterion/patches/wraps.patch
@@ -0,0 +1,38 @@
+diff --git a/subprojects/debugbreak.wrap b/subprojects/debugbreak.wrap
+index e8fd6cc..a46a315 100644
+--- a/subprojects/debugbreak.wrap
++++ b/subprojects/debugbreak.wrap
+@@ -1,8 +1,5 @@
+-[wrap-git]
+-url = https://github.com/MrAnno/debugbreak.git
+-revision = 83bf7e933311b88613cbaadeced9c2e2c811054a
++[wrap-file]
+ directory = debugbreak
+-patch_directory = debugbreak
+
+ [provide]
+ debugbreak = debugbreak_dep
+diff --git a/subprojects/klib.wrap b/subprojects/klib.wrap
+index 9c9cc7a..446f4da 100644
+--- a/subprojects/klib.wrap
++++ b/subprojects/klib.wrap
+@@ -1,8 +1,5 @@
+-[wrap-git]
+-url = https://github.com/attractivechaos/klib.git
+-revision = cdb7e9236dc47abf8da7ebd702cc6f7f21f0c502
++[wrap-file]
+ directory = klib
+-patch_directory = klib
+
+ [provide]
+ klib = klib_dep
+diff --git a/subprojects/nanopb-cmake.wrap b/subprojects/nanopb-cmake.wrap
+index 0e4d1fa..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
+-revision = nanopb-0.4.7
diff --git a/srcpkgs/Criterion/template b/srcpkgs/Criterion/template
new file mode 100644
index 00000000000000..15d9902cb81d2f
--- /dev/null
+++ b/srcpkgs/Criterion/template
@@ -0,0 +1,51 @@
+# Template file for 'Criterion'
+pkgname=Criterion
+version=2.4.2
+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 <contact@ivanchev.net>"
+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/83bf7e933311b88613cbaadeced9c2e2c811054a.tar.gz>debugbreak.tar.gz
+ https://github.com/attractivechaos/klib/archive/cdb7e9236dc47abf8da7ebd702cc6f7f21f0c502.tar.gz>klib.tar.gz
+ https://github.com/nanopb/nanopb/archive/refs/tags/0.4.7.tar.gz>nanopb.tar.gz
+ https://github.com/Snaipe/BoxFort/archive/c91d7181734ab2fd6d1299e8aa927297f0ddb754.tar.gz>BoxFort.tar.gz"
+checksum="83e1a39c8c519fbef0d64057dc61c8100b3a5741595788c9f094bba2eeeef0df
+ 9de3bb0d23f43a6f019f186261a21f3f709c5717c61539ab655b7051ae58ee51
+ 1291ba5df7badf7f68188b4a622a7e694de61f8a01adbed9099da01df81f9c9a
+ e1d89b166367a3c42d42311bdc2ed57ff78f86aede9a66828516e45490d48c81
+ e48cdc4973a20d5efd68c6a00b42df4d664953bb8778ca5d9b7e9e2b1a3cd527"
+skip_extraction="debugbreak klib nanopb BoxFort"
+build_wrksrc=${pkgname}-${version}
+patch_args="-Np1 --directory=${build_wrksrc}"
+
+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
+ }
+}
next prev parent reply other threads:[~2024-04-29 16:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 12:39 [PR PATCH] " MIvanchev
2024-04-29 16:12 ` MIvanchev [this message]
2024-04-29 17:38 ` [PR PATCH] [Updated] " MIvanchev
2024-04-29 17:38 ` MIvanchev
2024-04-29 17:50 ` MIvanchev
2024-07-30 1:51 ` github-actions
2024-07-30 6:54 ` MIvanchev
2024-10-29 2:00 ` github-actions
2024-10-29 7:17 ` MIvanchev
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240429161232.997EB242B9@inbox.vuxu.org \
--to=mivanchev@users.noreply.github.com \
--cc=ml@inbox.vuxu.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.
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 NNTP newsgroup(s).