Ticket #21943: Portfile

File Portfile, 2.4 KB (added by sb@…, 15 years ago)
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$
3
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                py26-logilab-hmm
8version             0.5.0
9maintainers         
10description         Python Hidden Markov model implementation
11long_description    an implementation of Hidden Markov model and associated algorithms (Viterbi and Baum-Welsh)
12
13platforms           darwin
14
15homepage            http://www.logilab.org/project/logilab-hmm
16master_sites        ftp://ftp.logilab.fr/pub/hmm/
17distname            logilab-hmm-${version}
18
19livecheck.url       http://ftp.logilab.org/pub/hmm/
20livecheck.type      regex
21livecheck.regex     {logilab-hmm-(\d+(?:\.\d+)*)\.tar\.gz}
22
23checksums           md5     81f63768df022714e66f6d471245800a \
24                    sha1    6be2012ab3b7ed6ceac42b48a821f6e194c71f6f \
25                    rmd160  b62f3ac49e4d2681138e55490430c4bdfdf418f6
26
27depends_lib-append  port:py26-logilab-common
28
29variant gcc42 conflicts gcc43 gcc44 description "Use gfortran-mp-4.2 as fortran compiler" {
30  depends_lib-append    port:gcc42
31  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.2 --f90exec ${prefix}/bin/gfortran-mp-4.2"
32  build.cmd-append      ${fc_options}
33  destroot.cmd-append   ${fc_options}
34}
35
36variant gcc43 conflicts gcc42 gcc44 description "Use gfortran-mp-4.3 as fortran compiler" {
37  depends_lib-append    port:gcc43
38  set fc_options        "config_fc --fcompiler gnu95 --f77exec ${prefix}/bin/gfortran-mp-4.3 --f90exec ${prefix}/bin/gfortran-mp-4.3"
39  build.cmd-append      ${fc_options}
40  destroot.cmd-append   ${fc_options}
41}
42
43variant gcc44 conflicts gcc42 gcc43 description "Use gfortran-mp-4.4 as fortran compiler" {
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
50if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] } {
51  default_variants      +gcc43
52}
53
54post-destroot {
55    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
56    xinstall -m 644 -W ${worksrcpath} README \
57        ${destroot}${prefix}/share/doc/${name}
58    file delete ${destroot}/${python.prefix}/lib/python2.6/site-packages/logilab/__init__.py
59}