[96047] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon Jul 30 03:55:43 PDT 2012


Revision: 96047
          https://trac.macports.org/changeset/96047
Author:   jmr at macports.org
Date:     2012-07-30 03:55:43 -0700 (Mon, 30 Jul 2012)
Log Message:
-----------
py*-utidylib: unify, add py27, apply 64-bit fix (#33385)

Modified Paths:
--------------
    trunk/dports/python/py-utidylib/Portfile

Added Paths:
-----------
    trunk/dports/python/py-utidylib/
    trunk/dports/python/py-utidylib/files/patch-lib.py-64bit.diff

Removed Paths:
-------------
    trunk/dports/python/py25-utidylib/
    trunk/dports/python/py26-utidylib/

Modified: trunk/dports/python/py-utidylib/Portfile
===================================================================
--- trunk/dports/python/py26-utidylib/Portfile	2012-07-30 06:58:25 UTC (rev 96040)
+++ trunk/dports/python/py-utidylib/Portfile	2012-07-30 10:55:43 UTC (rev 96047)
@@ -1,40 +1,48 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
 
-name			py26-utidylib
+name			py-utidylib
 version			0.2
-categories		python
+revision		2
 platforms		darwin
+supported_archs	noarch
+license			MIT
 maintainers		amln.net:dima openmaintainer
 description		Python interface to html tidy
 long_description	Python interface to html tidy, the html and xml \
 			cleanup tool from the w3c.
 
 homepage		http://utidylib.berlios.de/
-master_sites		http://download.berlios.de/utidylib/
-distname		uTidylib-${version}
-checksums		md5 c9f16988f92ef660f46523192ef37462
-use_zip			yes
-patchfiles		patch-lib.py.diff
 
-depends_lib-append	port:tidy \
-			port:py26-epydoc
+python.versions	25 26 27
 
-post-patch	{
-	reinplace "s|__TIDYLIB__|${prefix}/lib/libtidy.dylib|g" \
-		${worksrcpath}/tidy/lib.py
-}
+if {$subport != $name} {
+    master_sites		http://download.berlios.de/utidylib/
+    distname		uTidylib-${version}
+    checksums		md5 c9f16988f92ef660f46523192ef37462
+    use_zip			yes
 
-post-build	{
-	system "cd ${worksrcpath} && ${python.bin} gendoc.py"
-	file rename ${worksrcpath}/apidoc ${worksrcpath}/doc
-}
+    patchfiles		patch-lib.py.diff patch-lib.py-64bit.diff
 
-post-destroot	{
-	file delete -force ${destroot}${prefix}/share/doc/${name}
-	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.path README.txt \
-		${destroot}${prefix}/share/doc/${name}
+    depends_lib-append	port:tidy \
+			port:py${python.version}-epydoc
+
+    post-patch	{
+        reinplace "s|__TIDYLIB__|${prefix}/lib/libtidy.dylib|g" \
+            ${worksrcpath}/tidy/lib.py
+    }
+
+    post-build	{
+        system -W ${worksrcpath} "${python.bin} gendoc.py"
+        file rename ${worksrcpath}/apidoc ${worksrcpath}/doc
+    }
+
+    post-destroot	{
+        file delete -force ${destroot}${prefix}/share/doc/${subport}
+        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.path README.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }

Added: trunk/dports/python/py-utidylib/files/patch-lib.py-64bit.diff
===================================================================
--- trunk/dports/python/py-utidylib/files/patch-lib.py-64bit.diff	                        (rev 0)
+++ trunk/dports/python/py-utidylib/files/patch-lib.py-64bit.diff	2012-07-30 10:55:43 UTC (rev 96047)
@@ -0,0 +1,11 @@
+--- tidy/lib.py	2012-02-28 04:56:35.000000000 +0200
++++ tidy/lib.py.new	2012-02-28 04:57:09.000000000 +0200
+@@ -130,6 +130,8 @@
+ 
+ sinkfactory=SinkFactory()
+ 
++_tidy.Create.restype = ctypes.POINTER(ctypes.c_void_p)
++
+ class _Document(object):
+     def __init__(self):
+         self.cdoc = _tidy.Create()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120730/2dc326c6/attachment.html>


More information about the macports-changes mailing list