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

Last change on this file was 150724, checked in by petr@…, 14 months ago

various py-* ports, nomaintainer: retire py26 subport for ports without dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 150724 2016-07-27 20:07:24Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-pytidylib
7version             0.2.1
8categories-append   textproc www
9license             MIT
10maintainers         nomaintainer
11description         Python wrapper for tidylib
12long_description \
13   A new Python wrapper for tidylib, which allows you to convert slightly \
14   invalid HTML/XHTML markup into valid markup. E.g. this Python tidy \
15   library will correct unescaped ampersands, some unclosed tags, missing \
16   elements, missing attributes, etc. Tidylib is highly configurable. It can \
17   output HTML or XHTML, and perform other functions such as converting \
18   named entities to numeric entities (named entities work only along with \
19   an HTML or XHTML doctype, numeric entities work in generic XML data).
20
21platforms           darwin
22supported_archs     noarch
23
24homepage            http://countergram.com/open-source/pytidylib/
25master_sites        http://cloud.github.com/downloads/countergram/pytidylib/
26distname            pytidylib-${version}
27
28checksums           md5     1da834d4305f0ff7efacc20c8783efd3 \
29                    sha1    0e3d89ce52289af641996fe0243417607bc5e941 \
30                    rmd160  82db29a4cdd530aa7eb72c2da1131b7615c2def5
31
32python.versions     27
33
34if {${name} ne ${subport}} {
35    depends_lib-append  port:tidy
36
37    post-destroot {
38       xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
39       xinstall -m 644 -W ${worksrcpath} LICENSE README \
40          ${destroot}${prefix}/share/doc/${subport}
41       copy {*}[glob ${worksrcpath}/docs/*] \
42          ${destroot}${prefix}/share/doc/${subport}
43    }
44    livecheck.type      none
45} else {
46    livecheck.url       http://github.com/countergram/pytidylib/downloads
47    livecheck.type      regex
48    livecheck.regex     {pytidylib-([0-9.]+)\.tar\.gz}
49}
Note: See TracBrowser for help on using the repository browser.