Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/leahneukirchen-redo Add Leah Neukirchen's implem...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f3325e6e6105
branches: trunk
changeset: 435347:f3325e6e6105
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Mon Jul 06 15:27:19 2020 +0000
description:
Add Leah Neukirchen's implementation of DJB's redo build system in
portable C with zero dependencies.
diffstat:
devel/leahneukirchen-redo/ALTERNATIVES | 4 ++
devel/leahneukirchen-redo/DESCR | 2 +
devel/leahneukirchen-redo/Makefile | 30 +++++++++++++++++++++
devel/leahneukirchen-redo/PLIST | 6 ++++
devel/leahneukirchen-redo/distinfo | 7 ++++
devel/leahneukirchen-redo/patches/patch-redo.c | 37 ++++++++++++++++++++++++++
6 files changed, 86 insertions(+), 0 deletions(-)
diffs (110 lines):
diff -r 28011cf791fb -r f3325e6e6105 devel/leahneukirchen-redo/ALTERNATIVES
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/leahneukirchen-redo/ALTERNATIVES Mon Jul 06 15:27:19 2020 +0000
@@ -0,0 +1,4 @@
+bin/redo @PREFIX@/bin/leahneukirchen-redo
+bin/redo-always @PREFIX@/bin/leahneukirchen-redo-always
+bin/redo-ifchange @PREFIX@/bin/leahneukirchen-redo-ifchange
+bin/redo-ifcreate @PREFIX@/bin/leahneukirchen-redo-ifcreate
diff -r 28011cf791fb -r f3325e6e6105 devel/leahneukirchen-redo/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/leahneukirchen-redo/DESCR Mon Jul 06 15:27:19 2020 +0000
@@ -0,0 +1,2 @@
+redo-c is an implementation of DJB's redo build system in portable C
+with zero dependencies.
diff -r 28011cf791fb -r f3325e6e6105 devel/leahneukirchen-redo/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/leahneukirchen-redo/Makefile Mon Jul 06 15:27:19 2020 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2020/07/06 15:27:19 schmonz Exp $
+
+GITHUB_PROJECT= redo-c
+GITHUB_TAG= v0.2
+DISTNAME= v0.2
+PKGNAME= leahneukirchen-redo-${DISTNAME:S,^v,,}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=leahneukirchen/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= schmonz%NetBSD.org@localhost
+HOMEPAGE= https://github.com/leahneukirchen/redo-c/
+COMMENT= Redo build system implemented in portable C
+LICENSE= public-domain
+
+WRKSRC= ${WRKDIR}/redo-c-0.2
+
+INSTALLATION_DIRS= bin share/doc/${PKGBASE}
+
+do-build:
+ cd ${WRKSRC}; \
+ cc -Wall -Wextra -Wwrite-strings -o redo redo.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/redo ${DESTDIR}${PREFIX}/bin
+ cd ${DESTDIR}${PREFIX}/bin; sh ${WRKSRC}/links.do; \
+ for i in *; do mv $${i} leahneukirchen-$${i}; done
+ ${INSTALL_DATA} ${WRKSRC}/NOTES ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../mk/bsd.pkg.mk"
diff -r 28011cf791fb -r f3325e6e6105 devel/leahneukirchen-redo/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/leahneukirchen-redo/PLIST Mon Jul 06 15:27:19 2020 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/06 15:27:19 schmonz Exp $
+bin/leahneukirchen-redo
+bin/leahneukirchen-redo-always
+bin/leahneukirchen-redo-ifchange
+bin/leahneukirchen-redo-ifcreate
+share/doc/leahneukirchen-redo/NOTES
diff -r 28011cf791fb -r f3325e6e6105 devel/leahneukirchen-redo/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/leahneukirchen-redo/distinfo Mon Jul 06 15:27:19 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/07/06 15:27:19 schmonz Exp $
+
+SHA1 (redo-c/v0.2.tar.gz) = 1c7ea152b8839abde63b32b39aaa76aeb16aa7d3
+RMD160 (redo-c/v0.2.tar.gz) = 40f2ef804d31fdba636eaf3e2ce55b81561d8d76
+SHA512 (redo-c/v0.2.tar.gz) = 7547625d3536bf875b34f05acdbed825d3a6915e62f4d504360c4bfcfd41506f197712f7bbc90fa7d5d50e87eddb6cb37bf27e39e105238406abe617600e0c4f
+Size (redo-c/v0.2.tar.gz) = 7673 bytes
+SHA1 (patch-redo.c) = 96e794071dc06bfc6efae27fc955b00c1b39326f
diff -r 28011cf791fb -r f3325e6e6105 devel/leahneukirchen-redo/patches/patch-redo.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/leahneukirchen-redo/patches/patch-redo.c Mon Jul 06 15:27:19 2020 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-redo.c,v 1.1 2020/07/06 15:27:19 schmonz Exp $
+
+Avoid CONFLICTS with other redo implementations.
+
+--- redo.c.orig 2018-07-08 21:49:57.000000000 +0000
++++ redo.c
+@@ -974,20 +974,25 @@ main(int argc, char *argv[])
+
+ dir_fd = keepdir();
+
+- if (strcmp(program, "redo") == 0) {
++ if (strcmp(program, "redo") == 0
++ || strcmp(program, "leahneukirchen-redo") == 0) {
+ fflag = 1;
+ redo_ifchange(argc, argv);
+ procure();
+- } else if (strcmp(program, "redo-ifchange") == 0) {
++ } else if (strcmp(program, "redo-ifchange") == 0
++ || strcmp(program, "leahneukirchen-redo-ifchange") == 0) {
+ redo_ifchange(argc, argv);
+ record_deps(argc, argv);
+ procure();
+- } else if (strcmp(program, "redo-ifcreate") == 0) {
++ } else if (strcmp(program, "redo-ifcreate") == 0
++ || strcmp(program, "leahneukirchen-redo-ifcreate") == 0) {
+ for (i = 0; i < argc; i++)
+ redo_ifcreate(dep_fd, argv[i]);
+- } else if (strcmp(program, "redo-always") == 0) {
++ } else if (strcmp(program, "redo-always") == 0
++ || strcmp(program, "leahneukirchen-redo-always") == 0) {
+ dprintf(dep_fd, "!\n");
+- } else if (strcmp(program, "redo-hash") == 0) {
++ } else if (strcmp(program, "redo-hash") == 0
++ || strcmp(program, "leahneukirchen-redo-hash") == 0) {
+ for (i = 0; i < argc; i++)
+ write_dep(1, argv[i]);
+ } else {
Home |
Main Index |
Thread Index |
Old Index