source: trunk/dports/python/py-logilab-hmm/Portfile @ 125278

Last change on this file since 125278 was 125278, checked in by jmr@…, 5 years ago

py26-logilab-hmm: use unified python portgroup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 125278 2014-09-12 17:13:33Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-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
29python.versions     26
30
31if {$subport ne $name} {
32    depends_lib         port:py${python.version}-logilab-common port:py${python.version}-numpy
33
34    universal_variant   no
35    python.add_archflags no
36
37    post-destroot {
38        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
39        xinstall -m 644 -W ${worksrcpath} README \
40            ${destroot}${prefix}/share/doc/${subport}
41        file delete ${destroot}${python.pkgd}/logilab/__init__.py
42    }
43}
44
45variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description "Use gfortran-mp-4.3 as fortran compiler" {
46  if {$subport ne $name} {
47    configure.compiler    macports-gcc-4.3
48    set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
49    build.cmd-append      ${fc_options}
50    destroot.cmd-append   ${fc_options}
51  }
52}
53
54variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description "Use gfortran-mp-4.4 as fortran compiler" {
55  if {$subport ne $name} {
56    configure.compiler    macports-gcc-4.4
57    set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4"
58    build.cmd-append      ${fc_options}
59    destroot.cmd-append   ${fc_options}
60  }
61}
62
63variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description "Use gfortran-mp-4.5 as fortran compiler" {
64  if {$subport ne $name} {
65    configure.compiler    macports-gcc-4.5
66    set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5"
67    build.cmd-append      ${fc_options}
68    destroot.cmd-append   ${fc_options}
69  }
70}
71
72variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description "Use gfortran-mp-4.6 as fortran compiler" {
73  if {$subport ne $name} {
74    configure.compiler    macports-gcc-4.6
75    set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.6 --f90exec ${prefix}/bin/gfortran-mp-4.6"
76    build.cmd-append      ${fc_options}
77    destroot.cmd-append   ${fc_options}
78  }
79}
80
81variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description "Use gfortran-mp-4.7 as fortran compiler" {
82  if {$subport ne $name} {
83    configure.compiler    macports-gcc-4.7
84    set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.7 --f90exec ${prefix}/bin/gfortran-mp-4.7"
85    build.cmd-append      ${fc_options}
86    destroot.cmd-append   ${fc_options}
87  }
88}
89
90if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] } {
91  default_variants      +gcc47
92}
Note: See TracBrowser for help on using the repository browser.