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

Last change on this file was 148976, checked in by raimue@…, 14 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: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-llvmmath
8version             0.1.1
9revision            1
10categories-append   devel
11platforms           darwin
12license             BSD
13
14python.versions     27 34
15
16maintainers         stromnov openmaintainer
17
18description         LLVM math library
19long_description    ${description}
20
21homepage            http://pypi.python.org/pypi/llvmmath
22master_sites        pypi:l/llvmmath/
23
24distname            llvmmath-${version}
25
26checksums           rmd160  83122b865efffc88de2a3bcd6a22d1d803d68069 \
27                    sha256  383a380ee0f7984f50201dc6b0e25ccd291a952ca1afacb850d50dae85810b75
28
29if {${name} ne ${subport}} {
30    depends_build-append \
31                        port:py${python.version}-setuptools
32
33    depends_lib-append  port:py${python.version}-llvmpy \
34                        port:py${python.version}-numpy
35
36    # Keep in sync with py-llvmpy
37    depends_lib-append  port:clang-3.3
38    configure.compiler  macports-clang-3.3
39
40    patchfiles-append   patch-setup.py.diff \
41                        patch-llvmmath_build.py.diff
42
43    post-patch {
44        reinplace "s|@clang@|${prefix}/bin/clang-mp-3.3|g" ${worksrcpath}/llvmmath/build.py
45    }
46
47    build.env-append    CC="${configure.cc}" CXX="${configure.cxx}"
48
49    destroot.env-append CC="${configure.cc}" CXX="${configure.cxx}"
50
51    livecheck.type      none
52} else {
53    livecheck.type      regex
54    livecheck.url       https://pypi.python.org/pypi/llvmmath/json
55    livecheck.regex     {llvmmath-(\d+(?:\.\d+)*)\.[tz]}
56}
Note: See TracBrowser for help on using the repository browser.