pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc The Diff Match and Patch libraries offer robu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18f6ac539c7a
branches:  trunk
changeset: 370460:18f6ac539c7a
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Oct 17 11:34:36 2017 +0000

description:
The Diff Match and Patch libraries offer robust algorithms to perform the
operations required for synchronizing plain text.

Diff: Compare two blocks of plain text and efficiently return a list of
differences.

Match: Given a search string, find its best fuzzy match in a block of plain
text. Weighted for both accuracy and location.

Patch: Apply a list of patches onto plain text. Use best-effort to apply patch
even when the underlying text doesn't match.

diffstat:

 textproc/Makefile                     |   3 ++-
 textproc/py-diff-match-patch/DESCR    |  11 +++++++++++
 textproc/py-diff-match-patch/Makefile |  16 ++++++++++++++++
 textproc/py-diff-match-patch/PLIST    |  14 ++++++++++++++
 textproc/py-diff-match-patch/distinfo |   6 ++++++
 5 files changed, 49 insertions(+), 1 deletions(-)

diffs (80 lines):

diff -r 36f971b0803d -r 18f6ac539c7a textproc/Makefile
--- a/textproc/Makefile Tue Oct 17 11:31:46 2017 +0000
+++ b/textproc/Makefile Tue Oct 17 11:34:36 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.964 2017/09/29 21:20:46 joerg Exp $
+# $NetBSD: Makefile,v 1.965 2017/10/17 11:34:36 adam Exp $
 #
 
 COMMENT=       Text processing utilities (does not include desktop publishing)
@@ -732,6 +732,7 @@
 SUBDIR+=       py-deepdiff
 SUBDIR+=       py-defusedxml
 SUBDIR+=       py-dicttoxml
+SUBDIR+=       py-diff-match-patch
 SUBDIR+=       py-docutils
 SUBDIR+=       py-docx
 SUBDIR+=       py-ejson
diff -r 36f971b0803d -r 18f6ac539c7a textproc/py-diff-match-patch/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-diff-match-patch/DESCR        Tue Oct 17 11:34:36 2017 +0000
@@ -0,0 +1,11 @@
+The Diff Match and Patch libraries offer robust algorithms to perform the
+operations required for synchronizing plain text.
+
+Diff: Compare two blocks of plain text and efficiently return a list of
+differences.
+
+Match: Given a search string, find its best fuzzy match in a block of plain
+text. Weighted for both accuracy and location.
+
+Patch: Apply a list of patches onto plain text. Use best-effort to apply patch
+even when the underlying text doesn't match.
diff -r 36f971b0803d -r 18f6ac539c7a textproc/py-diff-match-patch/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-diff-match-patch/Makefile     Tue Oct 17 11:34:36 2017 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2017/10/17 11:34:36 adam Exp $
+
+DISTNAME=      diff-match-patch-20121119
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    textproc python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=d/diff-match-patch/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://code.google.com/p/google-diff-match-patch/
+COMMENT=       Robust algorithms for synchronizing plain text
+LICENSE=       apache-2.0
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 36f971b0803d -r 18f6ac539c7a textproc/py-diff-match-patch/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-diff-match-patch/PLIST        Tue Oct 17 11:34:36 2017 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2017/10/17 11:34:36 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/diff_match_patch/__init__.py
+${PYSITELIB}/diff_match_patch/__init__.pyc
+${PYSITELIB}/diff_match_patch/__init__.pyo
+${PYSITELIB}/diff_match_patch/diff_match_patch.py
+${PYSITELIB}/diff_match_patch/diff_match_patch.pyc
+${PYSITELIB}/diff_match_patch/diff_match_patch.pyo
+${PYSITELIB}/diff_match_patch/diff_match_patch_test.py
+${PYSITELIB}/diff_match_patch/diff_match_patch_test.pyc
+${PYSITELIB}/diff_match_patch/diff_match_patch_test.pyo
diff -r 36f971b0803d -r 18f6ac539c7a textproc/py-diff-match-patch/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-diff-match-patch/distinfo     Tue Oct 17 11:34:36 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/10/17 11:34:36 adam Exp $
+
+SHA1 (diff-match-patch-20121119.tar.gz) = 79a93dc622fd47fe30349b0be4a4c6e5ffc9bf67
+RMD160 (diff-match-patch-20121119.tar.gz) = 0279fd90a2ec4db1cd797db47862084e216083ed
+SHA512 (diff-match-patch-20121119.tar.gz) = 3daff80a6043a0413c515125a21839d9fa1d71f7e2441f4870ebefed35f1accea711814ad231c65de0e3468bbd01402c977fc063ab120b7d9f0e04ef555a8207
+Size (diff-match-patch-20121119.tar.gz) = 54113 bytes



Home | Main Index | Thread Index | Old Index