diff options
author | rafan <rafan@FreeBSD.org> | 2007-01-16 22:35:36 +0800 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2007-01-16 22:35:36 +0800 |
commit | ed8b9563c27210b29944393f0f4e575b5332200b (patch) | |
tree | d9121c08d067206a2024017b65334a8b95dcb3af | |
parent | e32e3226f8f2bb3d76a3dae4a6d9cc01a1b90374 (diff) | |
download | freebsd-ports-gnome-ed8b9563c27210b29944393f0f4e575b5332200b.tar.gz freebsd-ports-gnome-ed8b9563c27210b29944393f0f4e575b5332200b.tar.zst freebsd-ports-gnome-ed8b9563c27210b29944393f0f4e575b5332200b.zip |
Add pythontidy 1.10, cleans up, regularizes, and reformats the text of
Python scripts.
PR: ports/107979
Submitted by: Li-Wen Hsu <lwhsu at lwhsu.org>
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/pythontidy/Makefile | 35 | ||||
-rw-r--r-- | devel/pythontidy/distinfo | 3 | ||||
-rw-r--r-- | devel/pythontidy/pkg-descr | 11 |
4 files changed, 50 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index cdaa22fd3f84..2e4be6e77878 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1820,6 +1820,7 @@ SUBDIR += pymacs SUBDIR += pypersrc SUBDIR += pyrex + SUBDIR += pythontidy SUBDIR += qca SUBDIR += qextmdi SUBDIR += qmake diff --git a/devel/pythontidy/Makefile b/devel/pythontidy/Makefile new file mode 100644 index 000000000000..3dececdf81e2 --- /dev/null +++ b/devel/pythontidy/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: pythontidy +# Date created: Jan. 16 ,2007 +# Whom: Li-Wen Hsu <lwhsu@lwhsu.org> +# +# $FreeBSD$ +# + +PORTNAME= pythontidy +PORTVERSION= 1.10 +CATEGORIES= devel python +MASTER_SITES= http://www.lacusveris.com/PythonTidy/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= PythonTidy-${PORTVERSION}.python +EXTRACT_SUFX= # +DIST_SUBDIR= python + +MAINTAINER= lwhsu@lwhsu.org +COMMENT= Cleans up, regularizes, and reformats the text of Python scripts + +USE_PYTHON= yes +NO_BUILD= yes + +PLIST_FILES= bin/pythontidy + +do-extract: + @${MKDIR} ${WRKDIR} + @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKDIR} + +do-patch: + ${REINPLACE_CMD} -e s,/usr/bin/python,${PYTHON_CMD}, ${WRKDIR}/${DISTFILES} + +do-install: + ${INSTALL_SCRIPT} ${WRKDIR}/${DISTFILES} ${TARGETDIR}/bin/pythontidy + +.include <bsd.port.mk> diff --git a/devel/pythontidy/distinfo b/devel/pythontidy/distinfo new file mode 100644 index 000000000000..05f5f59c5caa --- /dev/null +++ b/devel/pythontidy/distinfo @@ -0,0 +1,3 @@ +MD5 (python/PythonTidy-1.10.python) = 675550dbf22afc4527f584a1b735df92 +SHA256 (python/PythonTidy-1.10.python) = ab6c5d98b9eeadd4c911b445e4e628ab2de554eed52fb085ff204932ffbf2037 +SIZE (python/PythonTidy-1.10.python) = 116894 diff --git a/devel/pythontidy/pkg-descr b/devel/pythontidy/pkg-descr new file mode 100644 index 000000000000..1847ead6fdc1 --- /dev/null +++ b/devel/pythontidy/pkg-descr @@ -0,0 +1,11 @@ +This script reads Python code from standard input and writes a revised +version to standard output. + +Alternatively, it may be invoked with file names as arguments: + + python PythonTidy.py input output + +Suffice it to say that input defaults to '-', the standard input, and output +defaults to '-', the standard output. + +WWW: http://www.python.org/pypi/PythonTidy/ |