Ticket #13487: Portfile

File Portfile, 1.1 KB (added by dima@…, 16 years ago)
Line 
1# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $
2
3PortSystem 1.0
4PortGroup python25 1.0
5
6name                    py25-utidylib
7version                 0.2
8revision                1
9categories              python
10platforms               darwin
11maintainers             nomaintainer
12description             Python interface to html tidy
13long_description        Python interface to html tidy, the html and xml \
14                                cleanup tool from the w3c;
15
16homepage                http://utidylib.berlios.de/
17master_sites    http://download.berlios.de/utidylib/
18distname                uTidylib-${version}
19checksums               md5 c9f16988f92ef660f46523192ef37462
20use_zip                 yes
21patchfiles              patch-lib.py.diff
22
23depends_lib-append      lib:libtidy:tidy \
24                                port:py25-ctypes \
25                                port:py25-epydoc
26
27post-patch      {
28        reinplace "s|__TIDYLIB__|${prefix}/lib/libtidy.dylib|g" \
29                ${worksrcpath}/tidy/lib.py
30}
31
32post-build      {
33        system "cd ${worksrcpath} && ${python.bin} gendoc.py"
34        file rename ${worksrcpath}/apidoc ${worksrcpath}/doc
35}
36
37post-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}