diff options
author | wiz <wiz> | 2014-01-17 14:45:26 +0000 |
---|---|---|
committer | wiz <wiz> | 2014-01-17 14:45:26 +0000 |
commit | 2151c05568e6ec098040f577255543dee8fae9e2 (patch) | |
tree | 4c03b18d247a8811a2260ae493fb888439e3cd43 /devel | |
parent | 6e5ab8f12ea45a4849d2fb8a4d41ba46b70373ce (diff) | |
download | pkgsrc-2151c05568e6ec098040f577255543dee8fae9e2.tar.gz |
Updated HOMEPAGE, remove obsolete MASTER_SITES.
Add patch for python-3.x compatibility.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-lockfile/Makefile | 8 | ||||
-rw-r--r-- | devel/py-lockfile/distinfo | 3 | ||||
-rw-r--r-- | devel/py-lockfile/patches/patch-lockfile_pidlockfile.py | 33 |
3 files changed, 39 insertions, 5 deletions
diff --git a/devel/py-lockfile/Makefile b/devel/py-lockfile/Makefile index 775ce39f7ee..7fc61f876c4 100644 --- a/devel/py-lockfile/Makefile +++ b/devel/py-lockfile/Makefile @@ -1,19 +1,19 @@ -# $NetBSD: Makefile,v 1.2 2012/10/31 11:19:32 asau Exp $ -# +# $NetBSD: Makefile,v 1.3 2014/01/17 14:45:26 wiz Exp $ DISTNAME= lockfile-0.9.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel python -MASTER_SITES= http://pylockfile.googlecode.com/files/ +MASTER_SITES= # MAINTAINER= kamel.derouiche@gmail.com -HOMEPAGE= http://pypi.python.org/pypi/lockfile/ +HOMEPAGE= https://github.com/smontanaro/pylockfile/ COMMENT= Platform-independent file locking module LICENSE= mit DEPENDS+= ${PYPKGPREFIX}-sqlite3>=0:../../databases/py-sqlite3 PYDISTUTILSPKG= yes + USE_LANGUAGES= # none .include "../../lang/python/extension.mk" diff --git a/devel/py-lockfile/distinfo b/devel/py-lockfile/distinfo index f455e06f702..f39be7bc726 100644 --- a/devel/py-lockfile/distinfo +++ b/devel/py-lockfile/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1 2012/08/14 12:08:48 imil Exp $ +$NetBSD: distinfo,v 1.2 2014/01/17 14:45:26 wiz Exp $ SHA1 (lockfile-0.9.1.tar.gz) = 1eebaee375641c9f29aeb21768f917dd2b985752 RMD160 (lockfile-0.9.1.tar.gz) = c94c1a638f2a11181063d6025a6c5acc8c9d09e6 Size (lockfile-0.9.1.tar.gz) = 16949 bytes +SHA1 (patch-lockfile_pidlockfile.py) = 0b675b6e656e803d59875814391a7ec3ca95abac diff --git a/devel/py-lockfile/patches/patch-lockfile_pidlockfile.py b/devel/py-lockfile/patches/patch-lockfile_pidlockfile.py new file mode 100644 index 00000000000..0b42b6ec723 --- /dev/null +++ b/devel/py-lockfile/patches/patch-lockfile_pidlockfile.py @@ -0,0 +1,33 @@ +$NetBSD: patch-lockfile_pidlockfile.py,v 1.1 2014/01/17 14:45:26 wiz Exp $ + +python-3.x compatibility. + +--- lockfile/pidlockfile.py.orig 2010-09-19 13:39:17.000000000 +0000 ++++ lockfile/pidlockfile.py +@@ -77,7 +77,7 @@ class PIDLockFile(LockBase): + while True: + try: + write_pid_to_pidfile(self.path) +- except OSError, exc: ++ except OSError as exc: + if exc.errno == errno.EEXIST: + # The lock creation failed. Maybe sleep a bit. + if timeout is not None and time.time() > end_time: +@@ -155,7 +155,7 @@ def write_pid_to_pidfile(pidfile_path): + + """ + open_flags = (os.O_CREAT | os.O_EXCL | os.O_WRONLY) +- open_mode = 0644 ++ open_mode = 0o644 + pidfile_fd = os.open(pidfile_path, open_flags, open_mode) + pidfile = os.fdopen(pidfile_fd, 'w') + +@@ -182,7 +182,7 @@ def remove_existing_pidfile(pidfile_path + """ + try: + os.remove(pidfile_path) +- except OSError, exc: ++ except OSError as exc: + if exc.errno == errno.ENOENT: + pass + else: |