source: trunk/dports/python/py-lxml/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.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=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           lxml
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             3.6.0
12categories-append   devel
13platforms           darwin
14license             BSD
15
16python.versions     26 27 33 34 35
17
18maintainers         petr openmaintainer
19
20description         Powerful and Pythonic XML processing library
21
22long_description    lxml is a Pythonic binding for the libxml2 and \
23                    libxslt libraries.  It is unique in that it \
24                    combines the speed and feature completeness of \
25                    these libraries with the simplicity of a native \
26                    Python API, mostly compatible but superior to \
27                    the well-known ElementTree API.
28
29homepage            http://lxml.de/
30master_sites        pypi:${_n}/${_name}/
31distname            ${_name}-${version}
32
33checksums           md5     5957cc384bd6e83934be35c057ec03b6 \
34                    rmd160  c9b12725206623b6c052a86641fe920b6d7bd56c \
35                    sha256  9c74ca28a7f0c30dca8872281b3c47705e21217c8bc63912d95c9e2a7cac6bdf
36
37if {${name} ne ${subport}} {
38    depends_build-append \
39                        port:py${python.version}-setuptools
40
41    depends_lib-append  port:zlib \
42                        port:libxml2 \
43                        port:libxslt
44
45    livecheck.type      none
46} else {
47    livecheck.type      regex
48    livecheck.url   https://pypi.python.org/pypi/${_name}/json
49    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
50}
Note: See TracBrowser for help on using the repository browser.