[112663] trunk/dports/python/py-pymc
g5pw at macports.org
g5pw at macports.org
Tue Oct 29 02:17:30 PDT 2013
Revision: 112663
https://trac.macports.org/changeset/112663
Author: g5pw at macports.org
Date: 2013-10-29 02:17:30 -0700 (Tue, 29 Oct 2013)
Log Message:
-----------
python/py-pymc:
update to 2.3
use github portgroup
add python3 subports
use FortranReceipe
maintainer timeout (#35241 and #38491)
Modified Paths:
--------------
trunk/dports/python/py-pymc/Portfile
Removed Paths:
-------------
trunk/dports/python/py-pymc/files/
Modified: trunk/dports/python/py-pymc/Portfile
===================================================================
--- trunk/dports/python/py-pymc/Portfile 2013-10-29 09:15:48 UTC (rev 112662)
+++ trunk/dports/python/py-pymc/Portfile 2013-10-29 09:17:30 UTC (rev 112663)
@@ -1,12 +1,12 @@
-# -*- 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; 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 github 1.0
+github.setup pymc-devs pymc 2.3
name py-pymc
-version 2.0
-revision 1
maintainers mnick
license BSD
@@ -20,69 +20,100 @@
platforms darwin
-homepage http://code.google.com/p/pymc/
-master_sites googlecode:pymc http://distfiles.macports.org/python/
-distname pymc-${version}
-checksums md5 fc24deb12a72903832c450a913264603 \
- sha1 228843d16be02dc6f26f2bdfffc8846801f1d8ee \
- rmd160 6e7775cad5aa185b190e89b0d6a4fed48adf335a
+python.versions 26 27 32 33 34
-python.versions 25 26 27
-
if {$subport ne $name} {
- use_zip yes
-
- patchfiles-append patch-pymc-gibbsit.f.diff
depends_lib-append port:py${python.version}-numpy
- python.add_archflags no
- variant gcc43 description {create Fortran wrappers using gcc43} conflicts gcc44 gcc45 gcc46 gcc47 g95 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc43
- set fc ${prefix}/bin/gfortran-mp-4.3
- build.env-append F77=${fc} F90=${fc}
- }
+ checksums rmd160 0c0d9f7ef37cbe0ff608a8e059cff6f8cdb6587e \
+ sha256 506455fd0a4f27db4448fcf8343ffa60d1c16a1f2819c947edf52f0fe2f4070d
- variant gcc44 description {create Fortran wrappers using gcc44} conflicts gcc43 gcc45 gcc46 gcc47 g95 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc44
- set fc ${prefix}/bin/gfortran-mp-4.4
- build.env-append F77=${fc} F90=${fc}
+ set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
+ set default_fortran_variant +gcc48
+ set g95_conflicts {}
+
+ 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}" conflicts g95}
+
+ 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
+
+ append g95_conflicts " conflicts gcc${ver_no_dot}"
+
+ if {[variant_isset gcc${ver_no_dot}]} {
+ if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
+ set default_fortran_variant ""
+ }
+ }
}
- variant gcc45 description {create Fortran wrappers using gcc45} conflicts gcc43 gcc44 gcc46 gcc47 g95 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc45
- set fc ${prefix}/bin/gfortran-mp-4.5
- build.env-append F77=${fc} F90=${fc}
+ eval [concat {variant g95 description {build with g95}} $g95_conflicts {{}}]
+
+ if {[variant_isset g95]} {
+ if {${default_fortran_variant} != "+g95"} {
+ set default_fortran_variant ""
+ }
}
- variant gcc46 description {create Fortran wrappers using gcc46} conflicts gcc43 gcc44 gcc45 gcc47 g95 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc46
- set fc ${prefix}/bin/gfortran-mp-4.6
- build.env-append F77=${fc} F90=${fc}
+ if {${default_fortran_variant} != ""} {
+ default_variants-append "${default_fortran_variant}"
}
- variant gcc47 description {create Fortran wrappers using gcc47} conflicts gcc43 gcc44 gcc45 gcc46 g95 {
- depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
- depends_build-append port:gcc47
- set fc ${prefix}/bin/gfortran-mp-4.7
- build.env-append F77=${fc} F90=${fc}
+ 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}
+
+ build.cmd "${build.cmd} config_fc --fcompiler gfortran"
+
+ configure.fc ${prefix}/bin/gfortran-mp-${ver}
+ configure.f77 ${prefix}/bin/gfortran-mp-${ver}
+ configure.f90 ${prefix}/bin/gfortran-mp-${ver}
+ }
}
- variant g95 description {create Fortran wrappers using f95} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 {
- depends_lib-append port:g95
- set fc ${prefix}/bin/g95
- build.env-append F77=${fc} F90=${fc}
+ if {[variant_isset g95]} {
+ depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
+ depends_build-append port:g95
+
+ build.cmd "${build.cmd} config_fc --fcompiler g95"
+
+ configure.fc ${prefix}/bin/g95
+ configure.f77 ${prefix}/bin/g95
+ configure.f90 ${prefix}/bin/g95
}
- if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset g95]} {
- default_variants +gcc47
+ # Insert my own archflags, so I can edit LDFLAGS
+ python.add_archflags no
+
+ if {[variant_exists universal] && [variant_isset universal]} {
+ build.env-append CFLAGS="${configure.universal_cflags}" \
+ OBJCFLAGS="${configure.universal_cflags}" \
+ CXXFLAGS="${configure.universal_cxxflags}" \
+ LDFLAGS="-undefined dynamic_lookup -bundle ${configure.universal_ldflags}"
+ } else {
+ build.env-append CFLAGS="${configure.cc_archflags}" \
+ OBJCFLAGS="${configure.objc_archflags}" \
+ CXXFLAGS="${configure.cxx_archflags}" \
+ FFLAGS="${configure.f77_archflags}" \
+ F90FLAGS="${configure.f90_archflags}" \
+ FCFLAGS="${configure.fc_archflags}" \
+ LDFLAGS="-undefined dynamic_lookup -bundle ${configure.ld_archflags}"
}
livecheck.type none
-} else {
- livecheck.regex <a href=\"http://pymc.googlecode.com/files/pymc-(\[\\d\.\]+)${extract.suffix}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131029/a05f8ef3/attachment-0001.html>
More information about the macports-changes
mailing list