freebsd-ports/ftp/py-ftputil/Makefile
Martin Wilke efed615cc5 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>
2006-12-27 15:05:59 +00:00

40 lines
993 B
Makefile

# 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>