[144231] trunk/dports/python/py-scikits-bvp_solver/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Mon Jan 4 18:52:32 PST 2016
Revision: 144231
https://trac.macports.org/changeset/144231
Author: dstrubbe at macports.org
Date: 2016-01-04 18:52:32 -0800 (Mon, 04 Jan 2016)
Log Message:
-----------
py-scikits-bvp_solver: Use compilers portgroup for Fortran variants. Fix syntax-highlighting header, improve description.
Modified Paths:
--------------
trunk/dports/python/py-scikits-bvp_solver/Portfile
Modified: trunk/dports/python/py-scikits-bvp_solver/Portfile
===================================================================
--- trunk/dports/python/py-scikits-bvp_solver/Portfile 2016-01-05 02:49:13 UTC (rev 144230)
+++ trunk/dports/python/py-scikits-bvp_solver/Portfile 2016-01-05 02:52:32 UTC (rev 144231)
@@ -1,8 +1,9 @@
-# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# -*- 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
# $Id$
PortSystem 1.0
PortGroup python 1.0
+PortGroup compilers 1.0
name py-scikits-bvp_solver
version 1.1
@@ -13,10 +14,10 @@
maintainers nomaintainer
-description bvp_solver is a Python package for solving two-point boundary value problems.
+description Python package for solving two-point boundary-value problems.
-long_description scikits.bvp_solver is a python package for solving two point boundary value \
- problems which is based on a modified version of the BVP_SOLVER Fortran package.
+long_description scikits.bvp_solver is a python package for solving two-point boundary-value \
+ problems, which is based on a modified version of the BVP_SOLVER Fortran package.
homepage http://packages.python.org/scikits.bvp_solver/
master_sites http://pypi.python.org/packages/source/s/scikits.bvp_solver/
@@ -35,8 +36,11 @@
universal_variant no
if {${name} ne ${subport}} {
- patchfiles patch-setup_py.diff
+ compilers.choose fc f90 f77
+ compilers.setup require_fortran
+ patchfiles patch-setup_py.diff
+
depends_lib-append port:py${python.version}-numpy
post-patch {
@@ -47,50 +51,6 @@
${worksrcpath}/setup.py
}
- set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
- set default_fortran_variant +gcc48
-
- foreach ver ${gcc_versions} {
- set ver_no_dot [join [split ${ver} "."] ""]
-
- set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"}
-
- foreach over ${gcc_versions} {
- if {${ver} == ${over}} {
- continue
- }
-
- set over_no_dot [join [split ${over} "."] ""]
- append variant_line " conflicts gcc${over_no_dot}"
- }
- append variant_line { {}}
-
- eval $variant_line
-
- if {[variant_isset gcc${ver_no_dot}]} {
- if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
- set default_fortran_variant ""
- }
- }
- }
-
- if {${default_fortran_variant} != ""} {
- default_variants-append "${default_fortran_variant}"
- }
-
- foreach ver ${gcc_versions} {
- set ver_no_dot [join [split ${ver} "."] ""]
-
- if {[variant_isset gcc${ver_no_dot}]} {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc${ver_no_dot}
-
- configure.fc ${prefix}/bin/gfortran-mp-${ver}
- configure.f77 ${prefix}/bin/gfortran-mp-${ver}
- configure.f90 ${prefix}/bin/gfortran-mp-${ver}
- }
- }
-
livecheck.type none
} else {
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160104/afcae416/attachment.html>
More information about the macports-changes
mailing list