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

Last change on this file was 150839, checked in by mf2k@…, 14 months ago

py-gmpy2: Update to version 2.0.8. (#51895)

  • 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 150839 2016-07-29 20:24:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-gmpy2
8epoch               1
9version             2.0.8
10maintainers         alluvialsw.com:md14-macports openmaintainer
11license             LGPL-2.1+
12platforms           darwin
13description         General multiple precision arithmetic module for Python
14long_description \
15    GMPY2 is a C-coded Python extension module that supports fast \
16    multiple-precision arithmetic.  GMPY2 supports the GMP library \
17    for integer and rational arithmetic and multiple-precision real \
18    and complex arithmetic as provided by the MPFR and MPC libraries.
19
20homepage            http://code.google.com/p/gmpy/
21master_sites        pypi:g/gmpy2
22distname            gmpy2-${version}
23use_zip             yes
24checksums           rmd160  d7a4f6d8fe370e4565f0af00b903d6b6740e4718 \
25                    sha256  dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f
26
27python.versions     27 34 35
28
29if {${name} ne ${subport}} {
30    depends_lib-append  port:gmp port:libmpc port:mpfr
31
32    patchfiles          patch-setup.py.diff
33
34    post-patch {
35        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py
36    }
37
38    post-destroot {
39        xinstall -m 644 -W ${worksrcpath} README \
40            ${destroot}${prefix}/share/doc/${subport}
41    }
42
43    livecheck.type      none
44} else {
45    livecheck.type      regex
46    livecheck.url       https://pypi.python.org/pypi/gmpy2/json
47    livecheck.regex     {gmpy2-(\d+(?:\.\d+)*)\.[tz]}
48}
Note: See TracBrowser for help on using the repository browser.