API for locking files. Unlike the Windows msvcrt.locking function, the Unix fcntl.flock, fcntl.lockf and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms. The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls. WWW: http://pypi.python.org/pypi/lockfile/ PR: ports/138647 Submitted by: Wen Heping <wenheping at gmail.com>
20 lines
434 B
Makefile
20 lines
434 B
Makefile
# New ports collection makefile for: lockfile
|
|
# Date created: 4th Sep, 2009
|
|
# Whom: Wen Heping <wenheping@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= lockfile
|
|
PORTVERSION= 0.8
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= http://smontanaro.dyndns.org/python/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= wenheping@gmail.com
|
|
COMMENT= Platform-independent file locking module
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
.include <bsd.port.mk>
|