diff --git a/devel/Makefile b/devel/Makefile index bcb583394693..8da9fe45b9f1 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/py-patch/Makefile b/devel/py-patch/Makefile new file mode 100644 index 000000000000..fc604f7056f0 --- /dev/null +++ b/devel/py-patch/Makefile @@ -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 diff --git a/devel/py-patch/distinfo b/devel/py-patch/distinfo new file mode 100644 index 000000000000..9805b8609482 --- /dev/null +++ b/devel/py-patch/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1530195203 +SHA256 (patch-1.16.zip) = c62073f356cff054c8ac24496f1a3d7cfa137835c31e9af39a9f5292fd75bd9f +SIZE (patch-1.16.zip) = 12809 diff --git a/devel/py-patch/pkg-descr b/devel/py-patch/pkg-descr new file mode 100644 index 000000000000..a0d2855f1778 --- /dev/null +++ b/devel/py-patch/pkg-descr @@ -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