textproc/py-diff-match-patch 20241021nb1 NetBSD
Robust algorithms for synchronizing plain text
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- apache-2.0
- Categories
- textproc, python
- Package size
- 67.9 KiB, 463.3 KiB installed
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | textproc/py-diff-match-patch | 20241021nb1 |
| FreeBSD | textproc/py-diff-match-patch | 20241021 |
| OpenBSD | textproc/py-diff-match-patch | 20241021p2 |
| DragonFly | textproc/py-diff-match-patch | 20241021 |
Install
Binary package:
pkgin install py311-diff-match-patch
From pkgsrc:
cd /usr/pkgsrc/textproc/py-diff-match-patch && make install clean
Dependencies
Run dependencies 1
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-diff-match-patch-20241021nb1,py313-diff-match-patch-20241021nb1,py314-diff-match-patch-20241021nb1