Ignore:
Timestamp:
Jan 19, 2013, 1:32:32 PM (7 years ago)
Author:
hum@…
Message:

plda: install binaries as 'plda' not 'lda' to avoid conflict with other lda packages; install a useful script and sample data contained in the distribution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/plda/Portfile

    r95899 r101791  
    66name                plda
    77version             3.1
     8revision            1
    89categories          math textproc
    9 platforms           darwin
    1010maintainers         hum openmaintainer
    11 license             Apache-2
     11
     12description         A parallel C++ implementation of fast Gibbs sampling of Latent Dirichlet Allocation
     13
     14long_description    plda is a parallel C++ implementation of fast Gibbs sampling of \
     15                    Latent Dirichlet Allocation (LDA).
    1216
    1317homepage            http://code.google.com/p/plda/
    14 description         A parallel C++ implementation of fast Gibbs sampling of Latent Dirichlet Allocation
    15 long_description    plda is a parallel C++ implementation of fast Gibbs sampling of \
    16                     Latent Dirichlet Allocation (LDA).
     18platforms           darwin
     19license             Apache-2
    1720
    1821master_sites        googlecode
     
    3336    depends_lib         port:mpich2
    3437    build.target        lda infer mpi_lda
     38    post-destroot {
     39        xinstall -m 755 ${worksrcpath}/mpi_lda ${destroot}${prefix}/bin/mpi_plda
     40    }
    3541}
    3642   
    3743destroot {
    38     set plda_dir ${destroot}${prefix}/share/plda
    39     xinstall -m 755 -d ${plda_dir}/testdata
    40     xinstall -m 644 -W ${worksrcpath} COPYING README         ${plda_dir}
    41     xinstall -m 644 -W ${worksrcpath}/testdata test_data.txt ${plda_dir}/testdata
    42     foreach target ${build.target} {
    43         xinstall -W ${worksrcpath} ${target} ${destroot}${prefix}/bin
    44     }
     44    # install binaries as 'plda' and 'plda_infer'.
     45    xinstall -m 755 ${worksrcpath}/lda   ${destroot}${prefix}/bin/${name}
     46    xinstall -m 755 ${worksrcpath}/infer ${destroot}${prefix}/bin/${name}_infer
     47    # install additional documents.
     48    set doc_dir  ${prefix}/share/doc/${name}
     49    xinstall -m 755 -d ${destroot}${doc_dir}
     50    xinstall -m 644 -W ${worksrcpath} \
     51        COPYING README \
     52        ${destroot}${doc_dir}
     53    # install a useful script and a sample data file.
     54    set plda_dir ${prefix}/share/${name}
     55    xinstall -m 755 -d ${destroot}${plda_dir}
     56    xinstall -m 755 ${worksrcpath}/view_model.py          ${destroot}${plda_dir}
     57    xinstall -m 644 ${worksrcpath}/testdata/test_data.txt ${destroot}${plda_dir}
     58    reinplace "s|/usr/bin/python2\.4|/usr/bin/env python|" \
     59        ${destroot}${plda_dir}/view_model.py
    4560}
    46 
    47 livecheck.type      default
Note: See TracChangeset for help on using the changeset viewer.