diff options
author | miwi <miwi@FreeBSD.org> | 2006-12-27 23:05:59 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-12-27 23:05:59 +0800 |
commit | b4e9d04863ba228a3c67f064ca065f62b1d93752 (patch) | |
tree | 91646269c6414eeb5e86be577cf0df06c65aeb53 /ftp/py-ftputil | |
parent | a2835156f8a2676ad0239ea973b2c94715063241 (diff) | |
download | freebsd-ports-gnome-b4e9d04863ba228a3c67f064ca065f62b1d93752.tar.gz freebsd-ports-gnome-b4e9d04863ba228a3c67f064ca065f62b1d93752.tar.zst freebsd-ports-gnome-b4e9d04863ba228a3c67f064ca065f62b1d93752.zip |
ftputil is a high-level FTP client library for the Python programming language.
ftputil implements a virtual file system for accessing FTP servers, that is,
it can generate file-like objects for remote files. The library supports many
functions similar to those in the os, os.path and shutil modules. ftputil has
convenience functions for conditional uploads and downloads, and handles FTP
clients and servers in different timezones.
WWW: http://ftputil.sschwarzer.net/
PR: ports/107186
Submitted by: Li-Wen Hsu <lwhsu at lwhsu.org>
Diffstat (limited to 'ftp/py-ftputil')
-rw-r--r-- | ftp/py-ftputil/Makefile | 40 | ||||
-rw-r--r-- | ftp/py-ftputil/distinfo | 3 | ||||
-rw-r--r-- | ftp/py-ftputil/files/patch-setup.py | 11 | ||||
-rw-r--r-- | ftp/py-ftputil/pkg-descr | 9 | ||||
-rw-r--r-- | ftp/py-ftputil/pkg-plist | 52 |
5 files changed, 115 insertions, 0 deletions
diff --git a/ftp/py-ftputil/Makefile b/ftp/py-ftputil/Makefile new file mode 100644 index 000000000000..d08fd64c0959 --- /dev/null +++ b/ftp/py-ftputil/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: py-ftputil +# Date created: 2006-12-25 +# Whom: Li-Wen Hsu <lwhsu@lwhsu.org> +# +# $FreeBSD$ +# + +PORTNAME= ftputil +PORTVERSION= 2.2 +CATEGORIES= ftp python +MASTER_SITES= # http://ftputil.sschwarzer.net/trac/attachment/wiki/Download/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= lwhsu@lwhsu.org +COMMENT= High-level FTP client library + +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +.if !defined(NOPORTDOCS) +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +PORTDOC_FILES= README.html README.txt ftputil.html ftputil.txt ftputil_ru_utf8.txt +.endif + +.include <bsd.port.pre.mk> + +do-fetch: +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) + ${FETCH_CMD} -o "${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}" "http://ftputil.sschwarzer.net/trac/attachment/wiki/Download/ftputil-2.2.tar.gz?format=raw" +.endif + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for i in ${PORTDOC_FILES} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.post.mk> diff --git a/ftp/py-ftputil/distinfo b/ftp/py-ftputil/distinfo new file mode 100644 index 000000000000..c73c0210aeec --- /dev/null +++ b/ftp/py-ftputil/distinfo @@ -0,0 +1,3 @@ +MD5 (ftputil-2.2.tar.gz) = 9b19a93449bd85a387677f7596bdffd9 +SHA256 (ftputil-2.2.tar.gz) = 1eb8d6fb6c2940f68435453581a2ae06798e708840208b865c7814c5d69dd467 +SIZE (ftputil-2.2.tar.gz) = 83520 diff --git a/ftp/py-ftputil/files/patch-setup.py b/ftp/py-ftputil/files/patch-setup.py new file mode 100644 index 000000000000..9cbf7b22d4d5 --- /dev/null +++ b/ftp/py-ftputil/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig Mon Dec 25 09:20:34 2006 ++++ setup.py Mon Dec 25 09:20:44 2006 +@@ -54,8 +54,6 @@ + version=_version, + packages=[_package], + package_dir={_package: ""}, +- data_files=[(_data_target, ["ftputil.txt", "ftputil.html", +- "README.txt", "README.html"])], + # metadata + author="Stefan Schwarzer", + author_email="sschwarzer@sschwarzer.net", diff --git a/ftp/py-ftputil/pkg-descr b/ftp/py-ftputil/pkg-descr new file mode 100644 index 000000000000..fb63551753be --- /dev/null +++ b/ftp/py-ftputil/pkg-descr @@ -0,0 +1,9 @@ +ftputil is a high-level FTP client library for the Python programming language. + +ftputil implements a virtual file system for accessing FTP servers, that is, +it can generate file-like objects for remote files. The library supports many +functions similar to those in the os, os.path and shutil modules. ftputil has +convenience functions for conditional uploads and downloads, and handles FTP +clients and servers in different timezones. + +WWW: http://ftputil.sschwarzer.net/ diff --git a/ftp/py-ftputil/pkg-plist b/ftp/py-ftputil/pkg-plist new file mode 100644 index 000000000000..570efa2cdb34 --- /dev/null +++ b/ftp/py-ftputil/pkg-plist @@ -0,0 +1,52 @@ +%%PYTHON_SITELIBDIR%%/ftputil/__init__.py +%%PYTHON_SITELIBDIR%%/ftputil/__init__.pyc +%%PYTHON_SITELIBDIR%%/ftputil/__init__.pyo +%%PYTHON_SITELIBDIR%%/ftputil/_mock_ftplib.py +%%PYTHON_SITELIBDIR%%/ftputil/_mock_ftplib.pyc +%%PYTHON_SITELIBDIR%%/ftputil/_mock_ftplib.pyo +%%PYTHON_SITELIBDIR%%/ftputil/_test_base.py +%%PYTHON_SITELIBDIR%%/ftputil/_test_base.pyc +%%PYTHON_SITELIBDIR%%/ftputil/_test_base.pyo +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_path.py +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_path.pyc +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_path.pyo +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_stat.py +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_stat.pyc +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_stat.pyo +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_stat_cache.py +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_stat_cache.pyc +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftp_stat_cache.pyo +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftputil.py +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftputil.pyc +%%PYTHON_SITELIBDIR%%/ftputil/_test_ftputil.pyo +%%PYTHON_SITELIBDIR%%/ftputil/ftp_error.py +%%PYTHON_SITELIBDIR%%/ftputil/ftp_error.pyc +%%PYTHON_SITELIBDIR%%/ftputil/ftp_error.pyo +%%PYTHON_SITELIBDIR%%/ftputil/ftp_file.py +%%PYTHON_SITELIBDIR%%/ftputil/ftp_file.pyc +%%PYTHON_SITELIBDIR%%/ftputil/ftp_file.pyo +%%PYTHON_SITELIBDIR%%/ftputil/ftp_path.py +%%PYTHON_SITELIBDIR%%/ftputil/ftp_path.pyc +%%PYTHON_SITELIBDIR%%/ftputil/ftp_path.pyo +%%PYTHON_SITELIBDIR%%/ftputil/ftp_stat.py +%%PYTHON_SITELIBDIR%%/ftputil/ftp_stat.pyc +%%PYTHON_SITELIBDIR%%/ftputil/ftp_stat.pyo +%%PYTHON_SITELIBDIR%%/ftputil/ftp_stat_cache.py +%%PYTHON_SITELIBDIR%%/ftputil/ftp_stat_cache.pyc +%%PYTHON_SITELIBDIR%%/ftputil/ftp_stat_cache.pyo +%%PYTHON_SITELIBDIR%%/ftputil/ftputil.py +%%PYTHON_SITELIBDIR%%/ftputil/ftputil.pyc +%%PYTHON_SITELIBDIR%%/ftputil/ftputil.pyo +%%PYTHON_SITELIBDIR%%/ftputil/ftputil_version.py +%%PYTHON_SITELIBDIR%%/ftputil/ftputil_version.pyc +%%PYTHON_SITELIBDIR%%/ftputil/ftputil_version.pyo +%%PYTHON_SITELIBDIR%%/ftputil/lrucache.py +%%PYTHON_SITELIBDIR%%/ftputil/lrucache.pyc +%%PYTHON_SITELIBDIR%%/ftputil/lrucache.pyo +@dirrm %%PYTHON_SITELIBDIR%%/ftputil +%%PORTDOCS%%%%DOCSDIR%%/README.html +%%PORTDOCS%%%%DOCSDIR%%/README.txt +%%PORTDOCS%%%%DOCSDIR%%/ftputil.html +%%PORTDOCS%%%%DOCSDIR%%/ftputil.txt +%%PORTDOCS%%%%DOCSDIR%%/ftputil_ru_utf8.txt +%%PORTDOCS%%@dirrm %%DOCSDIR%% |