pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/goredo



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Thu Jan  6 11:25:25 UTC 2022

Added Files:
        pkgsrc/devel/goredo: DESCR Makefile PLIST distinfo
        pkgsrc/devel/goredo/patches: patch-main.go

Log Message:
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.


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

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

Added files:

Index: pkgsrc/devel/goredo/DESCR
diff -u /dev/null pkgsrc/devel/goredo/DESCR:1.1
--- /dev/null   Thu Jan  6 11:25:25 2022
+++ pkgsrc/devel/goredo/DESCR   Thu Jan  6 11:25:24 2022
@@ -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.
Index: pkgsrc/devel/goredo/Makefile
diff -u /dev/null pkgsrc/devel/goredo/Makefile:1.1
--- /dev/null   Thu Jan  6 11:25:25 2022
+++ pkgsrc/devel/goredo/Makefile        Thu Jan  6 11:25:24 2022
@@ -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"
Index: pkgsrc/devel/goredo/PLIST
diff -u /dev/null pkgsrc/devel/goredo/PLIST:1.1
--- /dev/null   Thu Jan  6 11:25:25 2022
+++ pkgsrc/devel/goredo/PLIST   Thu Jan  6 11:25:24 2022
@@ -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
Index: pkgsrc/devel/goredo/distinfo
diff -u /dev/null pkgsrc/devel/goredo/distinfo:1.1
--- /dev/null   Thu Jan  6 11:25:25 2022
+++ pkgsrc/devel/goredo/distinfo        Thu Jan  6 11:25:24 2022
@@ -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

Index: pkgsrc/devel/goredo/patches/patch-main.go
diff -u /dev/null pkgsrc/devel/goredo/patches/patch-main.go:1.1
--- /dev/null   Thu Jan  6 11:25:25 2022
+++ pkgsrc/devel/goredo/patches/patch-main.go   Thu Jan  6 11:25:25 2022
@@ -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