pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/aceunit



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sat May  4 18:06:24 UTC 2024

Added Files:
        pkgsrc/devel/aceunit: DESCR Makefile PLIST distinfo
        pkgsrc/devel/aceunit/patches: patch-Makefile

Log Message:
Add aceunit: Advanced C and Embedded Unit test framework

AceUnit is a comfortable unit test framework for C, in the best
tradition of xUnit frameworks (like JUnit). Its target audience are
developers using the C programming language to develop firmware,
drivers, operating systems, and other C programs, like command line
programs. It is tiny and thus suitable even for extremely
resource-constrained environments.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/aceunit/DESCR \
    pkgsrc/devel/aceunit/Makefile pkgsrc/devel/aceunit/PLIST \
    pkgsrc/devel/aceunit/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/aceunit/patches/patch-Makefile

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

Added files:

Index: pkgsrc/devel/aceunit/DESCR
diff -u /dev/null pkgsrc/devel/aceunit/DESCR:1.1
--- /dev/null   Sat May  4 18:06:24 2024
+++ pkgsrc/devel/aceunit/DESCR  Sat May  4 18:06:23 2024
@@ -0,0 +1,6 @@
+AceUnit is a comfortable unit test framework for C, in the best
+tradition of xUnit frameworks (like JUnit). Its target audience are
+developers using the C programming language to develop firmware,
+drivers, operating systems, and other C programs, like command line
+programs. It is tiny and thus suitable even for extremely
+resource-constrained environments.
Index: pkgsrc/devel/aceunit/Makefile
diff -u /dev/null pkgsrc/devel/aceunit/Makefile:1.1
--- /dev/null   Sat May  4 18:06:24 2024
+++ pkgsrc/devel/aceunit/Makefile       Sat May  4 18:06:23 2024
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2024/05/04 18:06:23 schmonz Exp $
+
+DISTNAME=              aceunit-${GITHUB_TAG}
+PKGNAME=               ${DISTNAME:S/-v/-/}
+CATEGORIES=            devel
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=christianhujer/}
+GITHUB_TAG=            v3.0.0
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://nelkinda.com/products/aceunit/
+COMMENT=               Advanced C and Embedded Unit test framework
+LICENSE=               modified-bsd
+
+USE_TOOLS+=            bash:run gmake
+FORCE_C_STD=           c90
+TOOLS_PLATFORM.bash=   # undef, to avoid too-old vendor bash
+REPLACE_BASH=          bin/aceunit
+BUILD_TARGET=          build   # need to build the tests in this phase
+MAKE_ENV+=             MANDIR=${PKGMANDIR:Q}
+TEST_TARGET=           test-all
+
+post-extract:
+       [ ${PKGMANDIR} = "share/man" ] || ${MV} -f ${WRKSRC}/share/man ${WRKSRC}/${PKGMANDIR}
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/aceunit/PLIST
diff -u /dev/null pkgsrc/devel/aceunit/PLIST:1.1
--- /dev/null   Sat May  4 18:06:24 2024
+++ pkgsrc/devel/aceunit/PLIST  Sat May  4 18:06:23 2024
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2024/05/04 18:06:23 schmonz Exp $
+bin/aceunit
+include/aceunit.h
+include/aceunit.mk
+lib/libaceunit-abort.a
+lib/libaceunit-fork.a
+lib/libaceunit-setjmp.a
+lib/libaceunit-simple.a
+man/man1/aceunit.1
+man/man3/aceunit.3
+share/aceunit/nm.ac
+share/aceunit/objdump.ac
+share/aceunit/readelf.ac
+share/doc/aceunit/copyright
Index: pkgsrc/devel/aceunit/distinfo
diff -u /dev/null pkgsrc/devel/aceunit/distinfo:1.1
--- /dev/null   Sat May  4 18:06:24 2024
+++ pkgsrc/devel/aceunit/distinfo       Sat May  4 18:06:23 2024
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2024/05/04 18:06:23 schmonz Exp $
+
+BLAKE2s (aceunit-v3.0.0.tar.gz) = 6c3d1e740fee1dd6c20fd4d29b4afc6006104f35ee8410523885ec967c19a753
+SHA512 (aceunit-v3.0.0.tar.gz) = 5ba2e3a0e8eb5297f32799ad577407d06aba6dc7e08bf179276cf87c28857265c90c2473f8daefa6f7c2b5199a92e45840a49e23b33c81ffbd28167f277f7ba1
+Size (aceunit-v3.0.0.tar.gz) = 30498 bytes
+SHA1 (patch-Makefile) = 0bd2b6084a5da98d931e8d1b32ab8de8ae85c15d

Index: pkgsrc/devel/aceunit/patches/patch-Makefile
diff -u /dev/null pkgsrc/devel/aceunit/patches/patch-Makefile:1.1
--- /dev/null   Sat May  4 18:06:24 2024
+++ pkgsrc/devel/aceunit/patches/patch-Makefile Sat May  4 18:06:23 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-Makefile,v 1.1 2024/05/04 18:06:23 schmonz Exp $
+
+Set permissions more precisely.
+Install without building and running the tests.
+
+--- Makefile.orig      2024-05-04 13:27:28.000000000 +0000
++++ Makefile
+@@ -6,7 +6,7 @@ include recurse.mk
+ ## clean:             Remove all generated files.
+ ## lib-all:   Build and self-test the AceUnit library.
+ 
+-test-all examples-all install: lib-all
++test-all examples-all: lib-all
+ 
+ versions:=c90 c99 c11 c17 c2x gnu90 gnu99 gnu11 gnu17 gnu2x
+ ## compiler-test:     Test AceUnit with different versions of C.
+@@ -46,11 +46,11 @@ install: $(FILES_TO_INSTALL)
+ 
+ $(DESTDIR)$(PREFIX)/bin/aceunit: bin/aceunit
+       install -d $(dir $@)
+-      install $^ $@
++      ${BSD_INSTALL_SCRIPT} $^ $@
+ 
+ $(DESTDIR)$(PREFIX)/%: %
+       install -d $(dir $@)
+-      install -m 644 $^ $@
++      ${BSD_INSTALL_DATA} $^ $@
+ 
+ $(DESTDIR)$(PREFIX)/include/aceunit.mk: include/aceunit.mk
+       install -d $(dir $@)



Home | Main Index | Thread Index | Old Index