diff options
author | ryoon <ryoon@pkgsrc.org> | 2018-11-18 08:24:23 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2018-11-18 08:24:23 +0000 |
commit | a50d28e42d7f631e60055e121f4c9a8345700bb0 (patch) | |
tree | de01a53d762784f4c890fe9760ac735489e23552 /textproc | |
parent | 5e85952c42049b7bf227207e6b0dc15e3ab87c23 (diff) | |
download | pkgsrc-a50d28e42d7f631e60055e121f4c9a8345700bb0.tar.gz |
textproc/go-diff: import go-go-diff-1.0.0
go-diff offers algorithms to perform operations required for synchronizing
plain text:
Compare two texts and return their differences.
Perform fuzzy matching of text.
Apply patches onto text.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/go-diff/DESCR | 6 | ||||
-rw-r--r-- | textproc/go-diff/Makefile | 19 | ||||
-rw-r--r-- | textproc/go-diff/PLIST | 22 | ||||
-rw-r--r-- | textproc/go-diff/buildlink3.mk | 15 | ||||
-rw-r--r-- | textproc/go-diff/distinfo | 6 |
5 files changed, 68 insertions, 0 deletions
diff --git a/textproc/go-diff/DESCR b/textproc/go-diff/DESCR new file mode 100644 index 00000000000..05109d3fe41 --- /dev/null +++ b/textproc/go-diff/DESCR @@ -0,0 +1,6 @@ +go-diff offers algorithms to perform operations required for synchronizing +plain text: + + Compare two texts and return their differences. + Perform fuzzy matching of text. + Apply patches onto text. diff --git a/textproc/go-diff/Makefile b/textproc/go-diff/Makefile new file mode 100644 index 00000000000..5885e9bb2fa --- /dev/null +++ b/textproc/go-diff/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2018/11/18 08:24:23 ryoon Exp $ + +DISTNAME= go-diff-1.0.0 +PKGNAME= go-${DISTNAME} +MASTER_SITES= ${MASTER_SITE_GITHUB:=sergi/} +CATEGORIES= textproc +GITHUB_PROJECT= go-diff +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/sergi/go-diff +COMMENT= Diff, match and patch text in Go +LICENSE= apache-2.0 + +GO_DIST_BASE= ${DISTNAME} +GO_SRCPATH= github.com/sergi/go-diff + +.include "../../lang/go/go-package.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/go-diff/PLIST b/textproc/go-diff/PLIST new file mode 100644 index 00000000000..e7c884205dc --- /dev/null +++ b/textproc/go-diff/PLIST @@ -0,0 +1,22 @@ +@comment $NetBSD: PLIST,v 1.1 2018/11/18 08:24:23 ryoon Exp $ +gopkg/pkg/${GO_PLATFORM}/github.com/sergi/go-diff/diffmatchpatch.a +gopkg/src/github.com/sergi/go-diff/APACHE-LICENSE-2.0 +gopkg/src/github.com/sergi/go-diff/AUTHORS +gopkg/src/github.com/sergi/go-diff/CONTRIBUTORS +gopkg/src/github.com/sergi/go-diff/LICENSE +gopkg/src/github.com/sergi/go-diff/Makefile +gopkg/src/github.com/sergi/go-diff/README.md +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/benchutil_test.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/diff.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/diff_test.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/diffmatchpatch.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/match.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/match_test.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/mathutil.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/patch.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/patch_test.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/stringutil.go +gopkg/src/github.com/sergi/go-diff/diffmatchpatch/stringutil_test.go +gopkg/src/github.com/sergi/go-diff/scripts/lint.sh +gopkg/src/github.com/sergi/go-diff/testdata/speedtest1.txt +gopkg/src/github.com/sergi/go-diff/testdata/speedtest2.txt diff --git a/textproc/go-diff/buildlink3.mk b/textproc/go-diff/buildlink3.mk new file mode 100644 index 00000000000..f9d57e8ca04 --- /dev/null +++ b/textproc/go-diff/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2018/11/18 08:24:23 ryoon Exp $ + +BUILDLINK_TREE+= go-go-diff + +.if !defined(GO_GO_DIFF_BUILDLINK3_MK) +GO_GO_DIFF_BUILDLINK3_MK:= + +BUILDLINK_CONTENTS_FILTER.go-go-diff= ${EGREP} gopkg/ +BUILDLINK_DEPMETHOD.go-go-diff?= build + +BUILDLINK_API_DEPENDS.go-go-diff+= go-go-diff>=1.0.0 +BUILDLINK_PKGSRCDIR.go-go-diff?= ../../textproc/go-diff +.endif # GO_GO_DIFF_BUILDLINK3_MK + +BUILDLINK_TREE+= -go-go-diff diff --git a/textproc/go-diff/distinfo b/textproc/go-diff/distinfo new file mode 100644 index 00000000000..2f75afc65e1 --- /dev/null +++ b/textproc/go-diff/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/11/18 08:24:23 ryoon Exp $ + +SHA1 (go-diff-1.0.0.tar.gz) = 43df4e5176bb2c543924c5743585c8be0deb66f4 +RMD160 (go-diff-1.0.0.tar.gz) = b27379dcb319afbefb6fac2963401ceb4648785d +SHA512 (go-diff-1.0.0.tar.gz) = aed012908610c75dbf7141ee5652d6b1b21ebf6e6a72ed88cbe32213ad8ca6ccdbfe1d42815eb8cbd98276acf75306aef21b729237746d30e24ac6dbc36552b0 +Size (go-diff-1.0.0.tar.gz) = 41609 bytes |