Changeset 125278


Ignore:
Timestamp:
Sep 12, 2014, 5:13:33 PM (5 years ago)
Author:
jmr@…
Message:

py26-logilab-hmm: use unified python portgroup

Location:
trunk/dports/python/py-logilab-hmm
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-logilab-hmm/Portfile

    r109702 r125278  
    33
    44PortSystem          1.0
    5 PortGroup           python26 1.0
     5PortGroup           python 1.0
    66
    7 name                py26-logilab-hmm
     7name                py-logilab-hmm
    88version             0.5.0
    99revision            1
     
    2727                    rmd160  b62f3ac49e4d2681138e55490430c4bdfdf418f6
    2828
    29 depends_lib         port:py26-logilab-common port:py26-numpy
     29python.versions     26
    3030
    31 universal_variant   no
    32 python.add_archflags no
     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}
    3344
    3445variant 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}
     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  }
    3952}
    4053
    4154variant 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}
     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  }
    4661}
    4762
    4863variant 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}
     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  }
    5370}
    5471
    5572variant 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}
     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  }
    6079}
    6180
    6281variant 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}
     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  }
    6788}
    6889
     
    7091  default_variants      +gcc47
    7192}
    72 
    73 post-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 TracChangeset for help on using the changeset viewer.