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.
This commit is contained in:
adam 2017-10-17 11:34:36 +00:00
parent f37fed2eaf
commit 5d246c6300
5 changed files with 49 additions and 1 deletions

View file

@ -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-cssutils
SUBDIR+= py-deepdiff
SUBDIR+= py-defusedxml
SUBDIR+= py-dicttoxml
SUBDIR+= py-diff-match-patch
SUBDIR+= py-docutils
SUBDIR+= py-docx
SUBDIR+= py-ejson

View file

@ -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.

View file

@ -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
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"

View file

@ -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

View file

@ -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