pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/goredo Add goredo, a Go implementation of djb's ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c21bcc83b653
branches: trunk
changeset: 371195:c21bcc83b653
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Thu Jan 06 11:25:24 2022 +0000
description:
Add goredo, a Go implementation of djb's redo.
Originally it was just a rewrite of redo-c, but later most features of
apenwarr/redo were also implemented. Why yet another implementation? It
is featureful and has better performance comparing to shell and Python
implementation.
It passes tests from redo-sh.tests and implementation-neutral ones from
apenwarr/redo.
diffstat:
devel/goredo/DESCR | 9 +++++
devel/goredo/Makefile | 26 +++++++++++++++
devel/goredo/PLIST | 14 ++++++++
devel/goredo/distinfo | 6 +++
devel/goredo/patches/patch-main.go | 63 ++++++++++++++++++++++++++++++++++++++
5 files changed, 118 insertions(+), 0 deletions(-)
diffs (138 lines):
diff -r 9a63b53c33d6 -r c21bcc83b653 devel/goredo/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/goredo/DESCR Thu Jan 06 11:25:24 2022 +0000
@@ -0,0 +1,9 @@
+Go implementation of djb's redo, Makefile replacement that sucks less.
+
+Originally it was just a rewrite of redo-c, but later most features of
+apenwarr/redo were also implemented. Why yet another implementation? It
+is featureful and has better performance comparing to shell and Python
+implementation.
+
+It passes tests from redo-sh.tests and implementation-neutral ones from
+apenwarr/redo.
diff -r 9a63b53c33d6 -r c21bcc83b653 devel/goredo/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/goredo/Makefile Thu Jan 06 11:25:24 2022 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2022/01/06 11:25:24 schmonz Exp $
+
+DISTNAME= goredo-1.21.0
+CATEGORIES= devel
+MASTER_SITES= http://www.goredo.cypherpunks.ru/download/
+EXTRACT_SUFX= .tar.zst
+
+MAINTAINER= schmonz%NetBSD.org@localhost
+HOMEPAGE= http://www.goredo.cypherpunks.ru/
+COMMENT= Go implementation of djb's redo
+LICENSE= gnu-gpl-v3
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+
+INSTALLATION_DIRS= bin
+
+do-build:
+ ${RUN} cd ${WRKSRC} && \
+ ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} build -v -mod=vendor
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/goredo ${DESTDIR}${PREFIX}/bin
+ cd ${DESTDIR}${PREFIX}/bin && ./goredo -symlinks
+
+.include "../../lang/go/go-module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9a63b53c33d6 -r c21bcc83b653 devel/goredo/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/goredo/PLIST Thu Jan 06 11:25:24 2022 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/06 11:25:24 schmonz Exp $
+bin/goredo
+bin/goredo-affects
+bin/goredo-always
+bin/goredo-cleanup
+bin/goredo-dot
+bin/goredo-ifchange
+bin/goredo-ifcreate
+bin/goredo-log
+bin/goredo-ood
+bin/goredo-sources
+bin/goredo-stamp
+bin/goredo-targets
+bin/goredo-whichdo
diff -r 9a63b53c33d6 -r c21bcc83b653 devel/goredo/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/goredo/distinfo Thu Jan 06 11:25:24 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/01/06 11:25:24 schmonz Exp $
+
+BLAKE2s (goredo-1.21.0.tar.zst) = d15aa1ed05c6e3cf9388d1d69cf1a7873f971588d5b01398a2ef499c74d9c55f
+SHA512 (goredo-1.21.0.tar.zst) = 3c9459501473b9aecf1eb9e4a7d801fe9a360e1be4aa560e122be69d1d20283a197ae9eb9a2236dde4cdc151ab060e96dd112c229cd594ac6e8b1cc9126a93ca
+Size (goredo-1.21.0.tar.zst) = 396647 bytes
+SHA1 (patch-main.go) = f6faf8b84661ccb3c6454c8f78863e8b59f709a9
diff -r 9a63b53c33d6 -r c21bcc83b653 devel/goredo/patches/patch-main.go
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/goredo/patches/patch-main.go Thu Jan 06 11:25:24 2022 +0000
@@ -0,0 +1,63 @@
+$NetBSD: patch-main.go,v 1.1 2022/01/06 11:25:25 schmonz Exp $
+
+Avoid CONFLICTS with other redo implementations.
+
+--- main.go.orig 2021-11-20 14:43:11.000000000 +0000
++++ main.go
+@@ -41,20 +41,19 @@ import (
+ )
+
+ const (
+- CmdNameGoredo = "goredo"
+- CmdNameRedo = "redo"
+- CmdNameRedoAffects = "redo-affects"
+- CmdNameRedoAlways = "redo-always"
+- CmdNameRedoCleanup = "redo-cleanup"
+- CmdNameRedoDot = "redo-dot"
+- CmdNameRedoIfchange = "redo-ifchange"
+- CmdNameRedoIfcreate = "redo-ifcreate"
+- CmdNameRedoLog = "redo-log"
+- CmdNameRedoOOD = "redo-ood"
+- CmdNameRedoSources = "redo-sources"
+- CmdNameRedoStamp = "redo-stamp"
+- CmdNameRedoTargets = "redo-targets"
+- CmdNameRedoWhichdo = "redo-whichdo"
++ CmdNameRedo = "goredo"
++ CmdNameRedoAffects = "goredo-affects"
++ CmdNameRedoAlways = "goredo-always"
++ CmdNameRedoCleanup = "goredo-cleanup"
++ CmdNameRedoDot = "goredo-dot"
++ CmdNameRedoIfchange = "goredo-ifchange"
++ CmdNameRedoIfcreate = "goredo-ifcreate"
++ CmdNameRedoLog = "goredo-log"
++ CmdNameRedoOOD = "goredo-ood"
++ CmdNameRedoSources = "goredo-sources"
++ CmdNameRedoStamp = "goredo-stamp"
++ CmdNameRedoTargets = "goredo-targets"
++ CmdNameRedoWhichdo = "goredo-whichdo"
+ )
+
+ var (
+@@ -105,10 +104,9 @@ func main() {
+ fmt.Println("goredo", Version, "built with", runtime.Version())
+ return
+ }
+- if cmdName == CmdNameGoredo && *symlinks {
++ if cmdName == CmdNameRedo && *symlinks {
+ rc := 0
+ for _, cmdName := range []string{
+- CmdNameRedo,
+ CmdNameRedoAffects,
+ CmdNameRedoAlways,
+ CmdNameRedoCleanup,
+@@ -122,8 +120,8 @@ func main() {
+ CmdNameRedoTargets,
+ CmdNameRedoWhichdo,
+ } {
+- fmt.Println(os.Args[0], "<-", cmdName)
+- if err := os.Symlink(os.Args[0], cmdName); err != nil {
++ fmt.Println(CmdNameRedo, "<-", cmdName)
++ if err := os.Symlink(CmdNameRedo, cmdName); err != nil {
+ rc = 1
+ log.Println(err)
+ }
Home |
Main Index |
Thread Index |
Old Index