| 1 | # $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | PortGroup python25 1.0 |
|---|
| 5 | |
|---|
| 6 | name py25-utidylib |
|---|
| 7 | version 0.2 |
|---|
| 8 | revision 1 |
|---|
| 9 | categories python |
|---|
| 10 | platforms darwin |
|---|
| 11 | maintainers nomaintainer |
|---|
| 12 | description Python interface to html tidy |
|---|
| 13 | long_description Python interface to html tidy, the html and xml \ |
|---|
| 14 | cleanup tool from the w3c; |
|---|
| 15 | |
|---|
| 16 | homepage http://utidylib.berlios.de/ |
|---|
| 17 | master_sites http://download.berlios.de/utidylib/ |
|---|
| 18 | distname uTidylib-${version} |
|---|
| 19 | checksums md5 c9f16988f92ef660f46523192ef37462 |
|---|
| 20 | use_zip yes |
|---|
| 21 | patchfiles patch-lib.py.diff |
|---|
| 22 | |
|---|
| 23 | depends_lib-append lib:libtidy:tidy \ |
|---|
| 24 | port:py25-ctypes \ |
|---|
| 25 | port:py25-epydoc |
|---|
| 26 | |
|---|
| 27 | post-patch { |
|---|
| 28 | reinplace "s|__TIDYLIB__|${prefix}/lib/libtidy.dylib|g" \ |
|---|
| 29 | ${worksrcpath}/tidy/lib.py |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | post-build { |
|---|
| 33 | system "cd ${worksrcpath} && ${python.bin} gendoc.py" |
|---|
| 34 | file rename ${worksrcpath}/apidoc ${worksrcpath}/doc |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | post-destroot { |
|---|
| 38 | file delete -force ${destroot}${prefix}/share/doc/${name} |
|---|
| 39 | file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} |
|---|
| 40 | xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.path README.txt \ |
|---|
| 41 | ${destroot}${prefix}/share/doc/${name} |
|---|
| 42 | } |
|---|