source: trunk/dports/python/py-utidylib/Portfile

Last change on this file was 130447, checked in by larryv@…, 3 years ago

py25-utidylib: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 130447 2014-12-31 00:51:02Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-utidylib
7version                 0.2
8revision                2
9platforms               darwin
10supported_archs noarch
11license                 MIT
12maintainers             amln.net:dima openmaintainer
13description             Python interface to html tidy
14long_description        Python interface to html tidy, the html and xml \
15                        cleanup tool from the w3c.
16
17homepage                http://utidylib.berlios.de/
18
19python.versions 26 27
20
21if {${name} ne ${subport}} {
22    master_sites                http://download.berlios.de/utidylib/
23    distname            uTidylib-${version}
24    checksums           md5 c9f16988f92ef660f46523192ef37462
25    use_zip                     yes
26
27    patchfiles          patch-lib.py.diff patch-lib.py-64bit.diff
28
29    depends_lib-append  port:tidy \
30                        port:py${python.version}-epydoc
31
32    post-patch  {
33        reinplace "s|__TIDYLIB__|${prefix}/lib/libtidy.dylib|g" \
34            ${worksrcpath}/tidy/lib.py
35    }
36
37    post-build  {
38        system -W ${worksrcpath} "${python.bin} gendoc.py"
39        file rename ${worksrcpath}/apidoc ${worksrcpath}/doc
40    }
41
42    post-destroot       {
43        file delete -force ${destroot}${prefix}/share/doc/${subport}
44        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
45        xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.path README.txt \
46            ${destroot}${prefix}/share/doc/${subport}
47    }
48}
Note: See TracBrowser for help on using the repository browser.