mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
69 lines
2.2 KiB
Tcl
69 lines
2.2 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup mpi 1.0
|
|
|
|
name plda
|
|
version 3.1
|
|
revision 4
|
|
categories math textproc
|
|
maintainers nomaintainer
|
|
|
|
description A parallel C++ implementation of fast Gibbs sampling of Latent Dirichlet Allocation
|
|
|
|
long_description plda is a parallel C++ implementation of fast Gibbs sampling of \
|
|
Latent Dirichlet Allocation (LDA).
|
|
|
|
homepage https://code.google.com/p/plda/
|
|
platforms darwin
|
|
license Apache-2
|
|
|
|
master_sites googlecode
|
|
checksums rmd160 f1551328db9eabd99d0ed29d2352e94fcd0249d0 \
|
|
sha256 aae495f96fdbf048b71080dec4506f242044ce40930ad2fdf5ad71e4fedad682
|
|
|
|
compilers.choose cc cxx
|
|
mpi.setup
|
|
|
|
worksrcdir ${name}
|
|
|
|
variant universal {}
|
|
|
|
use_configure no
|
|
|
|
build.target lda infer
|
|
|
|
pre-build {
|
|
build.args CC=${configure.cxx} \
|
|
CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
|
|
}
|
|
|
|
if {[mpi_variant_isset]} {
|
|
build.target lda infer mpi_lda
|
|
post-extract {
|
|
reinplace "s/mpicxx/${mpi.cxx} -Wno-type-safety/" Makefile
|
|
}
|
|
post-destroot {
|
|
xinstall -m 755 ${worksrcpath}/mpi_lda ${destroot}${prefix}/bin/mpi_plda
|
|
}
|
|
}
|
|
|
|
destroot {
|
|
# install binaries as 'plda' and 'plda_infer'.
|
|
xinstall -m 755 ${worksrcpath}/lda ${destroot}${prefix}/bin/${name}
|
|
xinstall -m 755 ${worksrcpath}/infer ${destroot}${prefix}/bin/${name}_infer
|
|
# install additional documents.
|
|
set doc_dir ${prefix}/share/doc/${name}
|
|
xinstall -m 755 -d ${destroot}${doc_dir}
|
|
xinstall -m 644 -W ${worksrcpath} \
|
|
COPYING README \
|
|
${destroot}${doc_dir}
|
|
# install a useful script and a sample data file.
|
|
set plda_dir ${prefix}/share/${name}
|
|
xinstall -m 755 -d ${destroot}${plda_dir}
|
|
xinstall -m 755 ${worksrcpath}/view_model.py ${destroot}${plda_dir}
|
|
xinstall -m 644 ${worksrcpath}/testdata/test_data.txt ${destroot}${plda_dir}
|
|
reinplace "s|/usr/bin/python2\.4|/usr/bin/env python|" \
|
|
${destroot}${plda_dir}/view_model.py
|
|
}
|