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

Last change on this file was 148976, checked in by raimue@…, 16 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
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: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           cssselect
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             0.9.1
12categories-append   devel
13platforms           darwin
14supported_archs     noarch
15license             BSD
16maintainers         nomaintainer
17
18description         cssselect parses CSS3 Selectors and translates \
19                    them to XPath 1.0
20long_description    cssselect parses CSS3 Selectors and translates \
21                    them to XPath 1.0 expressions. Such expressions \
22                    can be used in lxml or another XPath engine to \
23                    find the matching elements in an XML or HTML \
24                    document.
25
26homepage            https://pythonhosted.org/${name}/
27
28master_sites        pypi:${_n}/${_name}/
29distname            ${_name}-${version}
30
31checksums           rmd160  5e1c8da5e94411ca3928d3a805b60fe51d7f8484 \
32                    sha256  0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682
33
34python.versions     27 34 35
35
36if {${name} ne ${subport}} {
37    depends_build-append    port:py${python.version}-setuptools
38    post-destroot {
39        xinstall -m 644 -W ${worksrcpath} \
40            AUTHORS CHANGES LICENSE README.rst \
41                ${destroot}${prefix}/share/doc/${subport}
42    }
43
44    livecheck.type  none
45} else {
46    livecheck.type  regex
47    livecheck.url   https://pypi.python.org/pypi/${_name}/json
48    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
49}
Note: See TracBrowser for help on using the repository browser.