1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-cssselect |
---|
8 | version 0.6.1 |
---|
9 | categories-append devel |
---|
10 | platforms darwin |
---|
11 | supported_archs noarch |
---|
12 | license BSD |
---|
13 | maintainers gmail.com:larry.velazquez |
---|
14 | |
---|
15 | description cssselect parses CSS3 Selectors and translates \ |
---|
16 | them to XPath 1.0 |
---|
17 | long_description cssselect parses CSS3 Selectors and translates \ |
---|
18 | them to XPath 1.0 expressions. Such expressions \ |
---|
19 | can be used in lxml or another XPath engine to \ |
---|
20 | find the matching elements in an XML or HTML \ |
---|
21 | document. |
---|
22 | homepage http://packages.python.org/cssselect/ |
---|
23 | |
---|
24 | master_sites http://pypi.python.org/packages/source/c/cssselect |
---|
25 | distname cssselect-${version} |
---|
26 | checksums rmd160 bac67eeecd1984b12e36513969503256032fa27a \ |
---|
27 | sha256 b35683a6526e24240606b46caf6f7c154a3c0f4ac4137fd2b073ddcfcb25445f |
---|
28 | |
---|
29 | python.versions 24 25 26 27 31 32 |
---|
30 | python.default_version 27 |
---|
31 | |
---|
32 | if {${subport} != ${name}} { |
---|
33 | depends_lib-append port:py${python.version}-distribute |
---|
34 | post-destroot { |
---|
35 | set doc ${destroot}${prefix}/share/doc/${subport} |
---|
36 | xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES LICENSE README.rst ${doc} |
---|
37 | } |
---|
38 | livecheck.type none |
---|
39 | } else { |
---|
40 | livecheck.type regex |
---|
41 | livecheck.url ${master_sites} |
---|
42 | livecheck.regex "cssselect-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|
43 | } |
---|