source: trunk/dports/python/py26-logilab-hmm/Portfile @ 97763

Last change on this file since 97763 was 97763, checked in by jeremyhu@…, 8 years ago

Revbump everything which could've been built with gcc44 or gcc45. Remove gcc42 variants since gcc42 only builds on Tiger (#33919).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 97763 2012-09-14 18:56:08Z jeremyhu@macports.org $
3
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                py26-logilab-hmm
8version             0.5.0
9revision            1
10maintainers         minimoog.org:sb
11description         Python Hidden Markov model implementation
12long_description    logilab-hmm is an implementation of Hidden Markov model \
13                    and associated algorithms (Viterbi and Baum-Welsh).
14
15platforms           darwin
16
17homepage            http://www.logilab.org/project/logilab-hmm
18master_sites        http://ftp.logilab.org/pub/hmm/
19distname            logilab-hmm-${version}
20
21livecheck.url       http://ftp.logilab.org/pub/hmm/
22livecheck.type      regex
23livecheck.regex     {logilab-hmm-(\d+(?:\.\d+)*)\.tar\.gz}
24
25checksums           md5     81f63768df022714e66f6d471245800a \
26                    sha1    6be2012ab3b7ed6ceac42b48a821f6e194c71f6f \
27                    rmd160  b62f3ac49e4d2681138e55490430c4bdfdf418f6
28
29depends_lib         port:py26-logilab-common port:py26-numpy
30
31universal_variant   no
32python.add_archflags no
33
34variant gcc43 conflicts gcc44 gcc45 description "Use gfortran-mp-4.3 as fortran compiler" {
35  configure.compiler    macports-gcc-4.3
36  depends_lib-append    port:gcc43
37  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
38  build.cmd-append      ${fc_options}
39  destroot.cmd-append   ${fc_options}
40}
41
42variant gcc44 conflicts gcc43 gcc45 description "Use gfortran-mp-4.4 as fortran compiler" {
43  configure.compiler    macports-gcc-4.4
44  depends_lib-append    port:gcc44
45  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4"
46  build.cmd-append      ${fc_options}
47  destroot.cmd-append   ${fc_options}
48}
49
50variant gcc45 conflicts gcc43 gcc44 description "Use gfortran-mp-4.5 as fortran compiler" {
51  configure.compiler    macports-gcc-4.5
52  depends_lib-append    port:gcc45
53  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5"
54  build.cmd-append      ${fc_options}
55  destroot.cmd-append   ${fc_options}
56}
57
58if { ![variant_isset gcc43] && ![variant_isset gcc44] } {
59  default_variants      +gcc45
60}
61
62post-destroot {
63    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
64    xinstall -m 644 -W ${worksrcpath} README \
65        ${destroot}${prefix}/share/doc/${name}
66    file delete ${destroot}/${python.prefix}/lib/python2.6/site-packages/logilab/__init__.py
67}
Note: See TracBrowser for help on using the repository browser.