From owner-svn-ports-head@FreeBSD.ORG Tue Jun 23 17:45:41 2015 Return-Path: Delivered-To: svn-ports-head@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DAC3F95F; Tue, 23 Jun 2015 17:45:40 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C2FFDF77; Tue, 23 Jun 2015 17:45:40 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5NHje6a061008; Tue, 23 Jun 2015 17:45:40 GMT (envelope-from rene@FreeBSD.org) Received: (from rene@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5NHjdaS061000; Tue, 23 Jun 2015 17:45:39 GMT (envelope-from rene@FreeBSD.org) Message-Id: <201506231745.t5NHjdaS061000@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: rene set sender to rene@FreeBSD.org using -f From: Rene Ladan Date: Tue, 23 Jun 2015 17:45:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390436 - in head/textproc: . py-diff-match-patch X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2015 17:45:41 -0000 Author: rene Date: Tue Jun 23 17:45:39 2015 New Revision: 390436 URL: https://svnweb.freebsd.org/changeset/ports/390436 Log: 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. WWW: https://code.google.com/p/google-diff-match-patch/ Differential Revision: https://reviews.freebsd.org/D2835 Reviewed by: python (koobs) Added: head/textproc/py-diff-match-patch/ head/textproc/py-diff-match-patch/Makefile (contents, props changed) head/textproc/py-diff-match-patch/distinfo (contents, props changed) head/textproc/py-diff-match-patch/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Tue Jun 23 17:29:44 2015 (r390435) +++ head/textproc/Makefile Tue Jun 23 17:45:39 2015 (r390436) @@ -1171,6 +1171,7 @@ SUBDIR += py-chardet SUBDIR += py-cloud_sptheme SUBDIR += py-creole + SUBDIR += py-diff-match-patch SUBDIR += py-docutils SUBDIR += py-dsv SUBDIR += py-elasticsearch-py Added: head/textproc/py-diff-match-patch/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-diff-match-patch/Makefile Tue Jun 23 17:45:39 2015 (r390436) @@ -0,0 +1,27 @@ +# Created by: Rene Ladan +# $FreeBSD$ + +PORTNAME= diff-match-patch +PORTVERSION= 0.0.0.20121119 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +DISTNAME= ${PORTNAME}-${PORTVERSION:E} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= rene@FreeBSD.org +COMMENT= Algorithms for converting plain text + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENCE + +USES= python shebangfix +python_OLD_CMD= /usr/bin/python[0-9\.]* +SHEBANG_FILES= python*/diff_match_patch/*.py +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include Added: head/textproc/py-diff-match-patch/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-diff-match-patch/distinfo Tue Jun 23 17:45:39 2015 (r390436) @@ -0,0 +1,2 @@ +SHA256 (diff-match-patch-20121119.tar.gz) = 9dba5611fbf27893347349fd51cc1911cb403682a7163373adacc565d11e2e4c +SIZE (diff-match-patch-20121119.tar.gz) = 54113 Added: head/textproc/py-diff-match-patch/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-diff-match-patch/pkg-descr Tue Jun 23 17:45:39 2015 (r390436) @@ -0,0 +1,13 @@ +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. + +WWW: https://code.google.com/p/google-diff-match-patch/