mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
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 WWW: https://github.com/techtonik/python-patch PR: 229500 Submitted by: freebsd_ports@k-worx.org Sponsored by: iXsystems Inc.
This commit is contained in:
parent
bf18fa40ff
commit
10afadc3be
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475542
@ -4797,6 +4797,7 @@
|
||||
SUBDIR += py-palm
|
||||
SUBDIR += py-parallax
|
||||
SUBDIR += py-parsedatetime
|
||||
SUBDIR += py-patch
|
||||
SUBDIR += py-path.py
|
||||
SUBDIR += py-pathlib
|
||||
SUBDIR += py-pathlib2
|
||||
|
20
devel/py-patch/Makefile
Normal file
20
devel/py-patch/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= patch
|
||||
DISTVERSION= 1.16
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= freebsd_ports@k-worx.org
|
||||
COMMENT= Cross-platform alternative to the UNIX patch utility
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
USES= python zip
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
NO_ARCH= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/py-patch/distinfo
Normal file
3
devel/py-patch/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1530195203
|
||||
SHA256 (patch-1.16.zip) = c62073f356cff054c8ac24496f1a3d7cfa137835c31e9af39a9f5292fd75bd9f
|
||||
SIZE (patch-1.16.zip) = 12809
|
21
devel/py-patch/pkg-descr
Normal file
21
devel/py-patch/pkg-descr
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
||||
|
||||
WWW: https://github.com/techtonik/python-patch
|
Loading…
Reference in New Issue
Block a user