source: trunk/dports/python/py-scikits-bvp_solver/Portfile

Last change on this file was 148976, checked in by raimue@…, 18 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.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8: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
6PortGroup               compilers 1.0
7
8name                    py-scikits-bvp_solver
9version                 1.1
10
11categories-append       science
12platforms               darwin
13license                 BSD
14
15maintainers             nomaintainer
16
17description             Python package for solving two-point boundary-value problems.
18
19long_description        scikits.bvp_solver is a python package for solving two-point boundary-value \
20                        problems, which is based on a modified version of the BVP_SOLVER Fortran package.
21
22homepage                http://packages.python.org/scikits.bvp_solver/
23master_sites            pypi:s/scikits.bvp_solver/
24
25distname                scikits.bvp_solver-${version}
26
27# md5 checksum comes from the source site
28checksums               md5     894a566a3080ea6fe0e0b0c17fc628a7 \
29                        rmd160  903e53a0b4bf40d864abbdb83dc5d008a3e1c874 \
30                        sha256  3de71a39d97cdd61fea5693f7dd01b3820310d755f8e6669a3694b01eb787f1d
31
32# Only tested on python 2.7.
33python.versions         27
34
35python.add_archflags    no
36universal_variant       no
37
38if {${name} ne ${subport}} {
39    compilers.choose    fc f90 f77
40    compilers.setup     require_fortran
41
42    patchfiles                  patch-setup_py.diff
43
44    depends_lib-append  port:py${python.version}-numpy
45
46    post-patch {
47        set pyver [join [split ${python.version} {}] {.}]
48        set pyfwk ${frameworks_dir}/Python.framework/Versions/
49
50        reinplace -E "s|XXX|-L${pyfwk}${pyver}/lib -lpython${pyver} -Xlinker -dylib|g" \
51                                         ${worksrcpath}/setup.py
52    }
53
54    livecheck.type      none
55} else {
56    livecheck.type      regex
57    livecheck.url       ${master_sites}
58    livecheck.regex     "bvp_solver-(\\d+(?:\\.\\d+)*)${extract.suffix}"
59}
Note: See TracBrowser for help on using the repository browser.