[34638] trunk/dports/python
jmr at macports.org
jmr at macports.org
Fri Feb 29 18:02:44 PST 2008
Revision: 34638
http://trac.macosforge.org/projects/macports/changeset/34638
Author: jmr at macports.org
Date: 2008-02-29 18:02:43 -0800 (Fri, 29 Feb 2008)
Log Message:
-----------
new port: py25-utidylib (py25 version of py-utidylib).
Closes #13487.
Added Paths:
-----------
trunk/dports/python/py25-utidylib/
trunk/dports/python/py25-utidylib/Portfile
trunk/dports/python/py25-utidylib/files/
trunk/dports/python/py25-utidylib/files/patch-lib.py.diff
Added: trunk/dports/python/py25-utidylib/Portfile
===================================================================
--- trunk/dports/python/py25-utidylib/Portfile (rev 0)
+++ trunk/dports/python/py25-utidylib/Portfile 2008-03-01 02:02:43 UTC (rev 34638)
@@ -0,0 +1,40 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+
+name py25-utidylib
+version 0.2
+categories python
+platforms darwin
+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:py25-epydoc
+
+post-patch {
+ reinplace "s|__TIDYLIB__|${prefix}/lib/libtidy.dylib|g" \
+ ${worksrcpath}/tidy/lib.py
+}
+
+post-build {
+ system "cd ${worksrcpath} && ${python.bin} gendoc.py"
+ file rename ${worksrcpath}/apidoc ${worksrcpath}/doc
+}
+
+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}
+}
Property changes on: trunk/dports/python/py25-utidylib/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/python/py25-utidylib/files/patch-lib.py.diff
===================================================================
--- trunk/dports/python/py25-utidylib/files/patch-lib.py.diff (rev 0)
+++ trunk/dports/python/py25-utidylib/files/patch-lib.py.diff 2008-03-01 02:02:43 UTC (rev 34638)
@@ -0,0 +1,11 @@
+--- tidy/lib.py Tue Feb 24 08:12:24 2004
++++ tidy/lib.py.new Sat May 8 01:31:20 2004
+@@ -25,7 +25,7 @@
+ for libname in ('cygtidy-0-99-0', 'libtidy', 'libtidy.so',
+ 'libtidy-0.99.so.0', 'tidylib'):
+ try:
+- thelib = getattr(ctypes.cdll, libname)
++ thelib = getattr(ctypes.cdll, '__TIDYLIB__' )
+ break
+ except OSError:
+ pass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080229/e226060e/attachment-0001.html
More information about the macports-changes
mailing list