devel/py-patch 1.16_1 DragonFly
Cross-platform alternative to the UNIX patch utility
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- MIT
- Categories
- devel, python
- Package size
- 28.3 KiB, 136.0 KiB installed
Description
Python library to parse and apply unified diffs.
Features:
- Automatic correction of * Linefeeds according to patched file * Diffs broken by stripping trailing whitespace * a/ and b/ prefixes
- Single file, which is a command line tool and a library
- No dependencies outside Python stdlib
- Patch format detection (SVN, HG, GIT)
- Nice diffstat histogram
Things that don't work out of the box:
- File renaming, creation and removal
- Directory tree operations
- Version control specific properties
- Non-unified diff formats
Install
Binary package:
pkg install py311-patch
From DPorts:
cd /usr/dports/devel/py-patch && make install clean
Dependencies
Run dependencies 1
No port depends on this one.