[142046] trunk/dports/science/jags/Portfile
dstrubbe at macports.org
dstrubbe at macports.org
Sat Dec 12 04:06:08 PST 2015
Revision: 142046
https://trac.macports.org/changeset/142046
Author: dstrubbe at macports.org
Date: 2015-11-02 13:14:40 -0800 (Mon, 02 Nov 2015)
Log Message:
-----------
Update to 4.0.0. Add license. Use compilers portgroup, greatly simplifying the Portfile. Fix use of vecLib framework which does not exist on Yosemite and later. Remove dependency on bison which does not seem to be used at all. Add openmaintainer. (Maintainer timeout, ticket #49436)
Modified Paths:
--------------
trunk/dports/science/jags/Portfile
Modified: trunk/dports/science/jags/Portfile
===================================================================
--- trunk/dports/science/jags/Portfile 2015-11-02 21:12:23 UTC (rev 142045)
+++ trunk/dports/science/jags/Portfile 2015-11-02 21:14:40 UTC (rev 142046)
@@ -2,85 +2,38 @@
# $Id$
PortSystem 1.0
+PortGroup compilers 1.0
name jags
-version 3.3.0
-revision 1
+version 4.0.0
set major [lindex [split ${version} .] 0]
categories science
+license GPL-2
platforms darwin
-maintainers uchicago.edu:dmeliza
+maintainers uchicago.edu:dmeliza openmaintainer
description Just Another Gibbs Sampler
long_description JAGS is a program for analysis of Bayesian hierarchical \
- models using Markov Chain Monte Carlo (MCMC) simulation \
+ models using Markov Chain Monte Carlo (MCMC) simulation, \
not wholly unlike BUGS.
homepage http://mcmc-jags.sourceforge.net/
master_sites sourceforge:project/mcmc-jags/JAGS/${major}.x/Source
distname JAGS-${version}
-checksums rmd160 7ddefa48dd9b3c837a69e7f0c17da7a5724da87f \
- sha256 8a3755c8e8cd5a2d68a465d56f054f1380fa7e2b602bfe65d360eb23e5b6101a
+checksums rmd160 21b82152f8a112f5dc1544a46396c6758207c1a2 \
+ sha256 a1d572269029d90d4e8b25757fd7ae9678994bd682937ec505ddcf06185d2c4c
-depends_build port:bison \
- port:libtool
+depends_build port:libtool
+compilers.choose cc cxx f77
+compilers.setup require_fortran
+
universal_variant no
-configure.args --with-blas='-framework vecLib' \
- --with-lapack='-framework vecLib'
+# note: BLAS/LAPACK is an optional dependency
+configure.args --with-blas='-framework Accelerate'
-set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
-set default_fortran_variant +gcc48
+# note: actually seems to contain source of SuiteSparse, which is another port
-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}
- }
-}
-
-build.env-append CC="${configure.cc}" \
- CXX="${configure.cxx}" \
- F77="${configure.f77}"
-
-destroot.env-append CC="${configure.cc}" \
- CXX="${configure.cxx}" \
- F77="${configure.f77}"
-
livecheck.type sourceforge
livecheck.name mcmc-jags
livecheck.regex /JAGS-(\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/279e1690/attachment.html>
More information about the macports-changes
mailing list