source: trunk/dports/python/py-gmpy/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.3 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
7name                py-gmpy
8version             1.17
9maintainers         alluvialsw.com:md14-macports openmaintainer
10license             LGPL-2.1+
11platforms           darwin
12description         General multiple precision arithmetic module for Python
13long_description \
14    GMPY is a C-coded Python extension module that supports fast \
15    integer and rational multiple-precision arithmetic using the \
16    GMP library.
17
18homepage            http://code.google.com/p/gmpy/
19master_sites        pypi:g/gmpy
20distname            gmpy-${version}
21use_zip             yes
22checksums           rmd160  0465338605fa73695259082c973eab23d7d96cff \
23                    sha256  1a79118a5332b40aba6aa24b051ead3a31b9b3b9642288934da754515da8fa14
24
25python.versions     27 34 35
26
27if {${name} ne ${subport}} {
28    depends_lib-append  port:gmp
29
30    post-destroot {
31        xinstall -m 644 -W ${worksrcpath} doc/gmpydoc.txt doc/index.html \
32            README ${destroot}${prefix}/share/doc/${subport}
33    }
34
35    livecheck.type      none
36} else {
37    livecheck.type      regex
38    livecheck.url       https://pypi.python.org/pypi/gmpy/json
39    livecheck.regex     {gmpy-(\d+(?:\.\d+)*)\.[tz]}
40}
Note: See TracBrowser for help on using the repository browser.