pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

unity: Import version 2.6.1



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Mon Feb 10 14:49:16 2025 +0100
Changeset:	8818279b19fd8f66534cf9a3e9cfd37216a4e618

Modified Files:
	Makefile
Added Files:
	unity/COMMIT_MSG
	unity/DESCR
	unity/Makefile
	unity/PLIST
	unity/distinfo
	unity/patches/patch-meson.build
	unity/patches/patch-meson__options.txt

Log Message:
unity: Import version 2.6.1

Unity Test is a unit testing framework built for C, with a focus on working
with embedded toolchains.

This project is made to test code targetting microcontrollers big and small.
The core project is a single C file and a pair of headers, allowing it to be
added to your existing build setup without too much headache.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8818279b19fd8f66534cf9a3e9cfd37216a4e618

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                               |  1 +
 unity/COMMIT_MSG                       |  8 ++++++++
 unity/DESCR                            |  6 ++++++
 unity/Makefile                         | 31 +++++++++++++++++++++++++++++++
 unity/PLIST                            |  5 +++++
 unity/distinfo                         |  7 +++++++
 unity/patches/patch-meson.build        | 23 +++++++++++++++++++++++
 unity/patches/patch-meson__options.txt | 13 +++++++++++++
 8 files changed, 94 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 24b37d588f..2a61c87d41 100644
--- a/Makefile
+++ b/Makefile
@@ -5788,6 +5788,7 @@ SUBDIR+=	unimrcp-apr
 SUBDIR+=	unimrcp-aprutil
 SUBDIR+=	unimrcp-sofiasip
 SUBDIR+=	unison-snapshot
+SUBDIR+=	unity
 SUBDIR+=	universal-test-runner
 SUBDIR+=	universalcodegrep
 SUBDIR+=	unix2tcp
diff --git a/unity/COMMIT_MSG b/unity/COMMIT_MSG
new file mode 100644
index 0000000000..05b51b8b9e
--- /dev/null
+++ b/unity/COMMIT_MSG
@@ -0,0 +1,8 @@
+devel/unity: Import version 2.6.1
+
+Unity Test is a unit testing framework built for C, with a focus on working
+with embedded toolchains.
+
+This project is made to test code targetting microcontrollers big and small.
+The core project is a single C file and a pair of headers, allowing it to be
+added to your existing build setup without too much headache.
diff --git a/unity/DESCR b/unity/DESCR
new file mode 100644
index 0000000000..2f2a73a8a3
--- /dev/null
+++ b/unity/DESCR
@@ -0,0 +1,6 @@
+Unity Test is a unit testing framework built for C, with a focus on working
+with embedded toolchains.
+
+This project is made to test code targetting microcontrollers big and small.
+The core project is a single C file and a pair of headers, allowing it to be
+added to your existing build setup without too much headache.
diff --git a/unity/Makefile b/unity/Makefile
new file mode 100644
index 0000000000..4d9bb933de
--- /dev/null
+++ b/unity/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD$
+
+DISTNAME=	unity-2.6.1
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ThrowTheSwitch/}
+GITHUB_PROJECT=	Unity
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+OWNER=		micha%NetBSD.org@localhost
+HOMEPAGE=	https://www.throwtheswitch.org/unity
+COMMENT=	Unit testing framework built for C
+LICENSE=	mit
+
+USE_LANGUAGES=		c
+USE_CC_FEATURES=	c99
+
+MUON_ARGS+=		-Dc_std=c99
+MUON_ARGS+=		-Dwerror=false
+
+# Set package version (without python)
+SUBST_CLASSES+=		version
+SUBST_STAGE.version=	pre-configure
+SUBST_MESSAGE.version=	Insert version into meson.build file ...
+SUBST_FILES.version=	meson.build
+SUBST_VARS.version=	PKGVERSION_NOREV
+
+PKGCONFIG_OVERRIDE_STAGE=	pre-install
+PKGCONFIG_OVERRIDE+=		output/meson-private/unity.pc
+
+.include "../../devel/muon/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/unity/PLIST b/unity/PLIST
new file mode 100644
index 0000000000..38fc195d12
--- /dev/null
+++ b/unity/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+include/unity/unity.h
+include/unity/unity_internals.h
+lib/libunity.a
+lib/pkgconfig/unity.pc
diff --git a/unity/distinfo b/unity/distinfo
new file mode 100644
index 0000000000..9b9f6d419f
--- /dev/null
+++ b/unity/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (unity-2.6.1.tar.gz) = 72f06899ac8978d3716660f6ac90f82a0c2c80c00a14ced1ad708c23194b5248
+SHA512 (unity-2.6.1.tar.gz) = 70d4c73a2ca317fd64ca2bce62f911d3e398f63e8b8c5b1b718d43c336c482c08f73839f655dc87cec4b58b63306bea3c1f3018aa8b0d6c5130a8b620e16e5f7
+Size (unity-2.6.1.tar.gz) = 316918 bytes
+SHA1 (patch-meson.build) = 991b9f08b6942ef2d96796b8f2efb973e15d7673
+SHA1 (patch-meson__options.txt) = f18a1330d00a35bd85871081cf62d00e1751b5b7
diff --git a/unity/patches/patch-meson.build b/unity/patches/patch-meson.build
new file mode 100644
index 0000000000..f9676704c4
--- /dev/null
+++ b/unity/patches/patch-meson.build
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Prepare package version for pkgsrc SUBST framework.
+
+--- meson.build.orig	2025-01-01 16:53:54.000000000 +0000
++++ meson.build
+@@ -7,14 +7,8 @@
+ project('unity', 'c',
+   license: 'MIT',
+ 
+-  # Set project version to value extracted from unity.h header
+-  version: run_command(
+-    [
+-      'auto/extract_version.py',
+-      'src/unity.h'
+-    ],
+-    check: true
+-  ).stdout().strip(),
++  # Set project version (pkgsrc uses version of package)
++  version: '@PKGVERSION_NOREV@',
+ 
+   meson_version: '>=0.47.0',
+   default_options: [
diff --git a/unity/patches/patch-meson__options.txt b/unity/patches/patch-meson__options.txt
new file mode 100644
index 0000000000..834358d155
--- /dev/null
+++ b/unity/patches/patch-meson__options.txt
@@ -0,0 +1,13 @@
+$NetBSD$
+
+Do not use string values for boolean options.
+
+--- meson_options.txt.orig	2025-01-01 16:53:54.000000000 +0000
++++ meson_options.txt
+@@ -1,3 +1,3 @@
+-option('extension_fixture', type: 'boolean', value: 'false', description: 'Whether to enable the fixture extension.')
+-option('extension_memory', type: 'boolean', value: 'false', description: 'Whether to enable the memory extension.')
+-option('support_double', type: 'boolean', value: 'false', description: 'Whether to enable double precision floating point assertions.')
++option('extension_fixture', type: 'boolean', value: false, description: 'Whether to enable the fixture extension.')
++option('extension_memory', type: 'boolean', value: false, description: 'Whether to enable the memory extension.')
++option('support_double', type: 'boolean', value: false, description: 'Whether to enable double precision floating point assertions.')


Home | Main Index | Thread Index | Old Index