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

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

py26-logilab-hmm: Remove implied dependencies

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 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 109702 2013-08-19 19:11:45Z 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 gcc46 gcc47 description "Use gfortran-mp-4.3 as fortran compiler" {
35  configure.compiler    macports-gcc-4.3
36  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
37  build.cmd-append      ${fc_options}
38  destroot.cmd-append   ${fc_options}
39}
40
41variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description "Use gfortran-mp-4.4 as fortran compiler" {
42  configure.compiler    macports-gcc-4.4
43  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.4 --f90exec ${prefix}/bin/gfortran-mp-4.4"
44  build.cmd-append      ${fc_options}
45  destroot.cmd-append   ${fc_options}
46}
47
48variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description "Use gfortran-mp-4.5 as fortran compiler" {
49  configure.compiler    macports-gcc-4.5
50  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.5 --f90exec ${prefix}/bin/gfortran-mp-4.5"
51  build.cmd-append      ${fc_options}
52  destroot.cmd-append   ${fc_options}
53}
54
55variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description "Use gfortran-mp-4.6 as fortran compiler" {
56  configure.compiler    macports-gcc-4.6
57  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.6 --f90exec ${prefix}/bin/gfortran-mp-4.6"
58  build.cmd-append      ${fc_options}
59  destroot.cmd-append   ${fc_options}
60}
61
62variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description "Use gfortran-mp-4.7 as fortran compiler" {
63  configure.compiler    macports-gcc-4.7
64  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.7 --f90exec ${prefix}/bin/gfortran-mp-4.7"
65  build.cmd-append      ${fc_options}
66  destroot.cmd-append   ${fc_options}
67}
68
69if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46] } {
70  default_variants      +gcc47
71}
72
73post-destroot {
74    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
75    xinstall -m 644 -W ${worksrcpath} README \
76        ${destroot}${prefix}/share/doc/${name}
77    file delete ${destroot}/${python.prefix}/lib/python2.6/site-packages/logilab/__init__.py
78}
Note: See TracBrowser for help on using the repository browser.