forked from Lainports/freebsd-ports
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)
27 lines
633 B
Makefile
27 lines
633 B
Makefile
# Created by: Rene Ladan <rene@FreeBSD.org>
|
|
# $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 <bsd.port.mk>
|