From 31af076df872629875bcf4fd0a7a7864f6a496e0 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 8 Jul 2009 13:21:43 +0000 Subject: [PATCH] - Fix runtime crash bug on amd64 PR: ports/136379 Submitted by: Phil Pennock --- www/py-utidy/Makefile | 3 ++- www/py-utidy/files/patch-tidy-lib.py | 10 ++++++++++ www/py-utidy/pkg-descr | 7 +++---- 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 www/py-utidy/files/patch-tidy-lib.py diff --git a/www/py-utidy/Makefile b/www/py-utidy/Makefile index 415cea3b56c0..f25b7c0bc1c8 100644 --- a/www/py-utidy/Makefile +++ b/www/py-utidy/Makefile @@ -7,9 +7,10 @@ PORTNAME= utidy PORTVERSION= 0.2 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_BERLIOS} -MASTER_SITE_SUBDIR= utidylib +MASTER_SITE_SUBDIR= utidylib PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= uTidylib-${PORTVERSION} diff --git a/www/py-utidy/files/patch-tidy-lib.py b/www/py-utidy/files/patch-tidy-lib.py new file mode 100644 index 000000000000..8b49cbcab1d7 --- /dev/null +++ b/www/py-utidy/files/patch-tidy-lib.py @@ -0,0 +1,10 @@ +--- tidy/lib.py.orig 2004-02-24 08:12:24.000000000 +0100 ++++ tidy/lib.py 2009-07-08 15:16:11.000000000 +0200 +@@ -129,6 +129,7 @@ + return sink + + sinkfactory=SinkFactory() ++_tidy.Create.restype = ctypes.POINTER(ctypes.c_void_p) + + class _Document(object): + def __init__(self): diff --git a/www/py-utidy/pkg-descr b/www/py-utidy/pkg-descr index 097d0ef22b5c..3e14fb7948ce 100644 --- a/www/py-utidy/pkg-descr +++ b/www/py-utidy/pkg-descr @@ -1,7 +1,6 @@ -This is uTidylib, the Python wrapper for the HTML cleaning library -named TidyLib: +This is uTidylib, the Python wrapper for the HTML cleaning library named +TidyLib: http://tidy.sf.net -WWW: http://utidylib.sf.net -WWW: http://prdownload.berlios.de/utidylib/ +WWW: http://utidylib.berlios.de/