# -*- 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 # $Id: Portfile 115213 2013-12-28 11:30:06Z hum@macports.org $ PortSystem 1.0 name gibbslda version 0.2 categories math maintainers hum openmaintainer description a C/C++ implementation of Latent Dirichlet Allocation (LDA) using Gibbs Sampling long_description GibbsLDA++ is a C/C++ implementation of Latent Dirichlet \ Allocation (LDA) using Gibbs Sampling technique for parameter \ estimation and inference. It is very fast and is designed to \ analyze hidden/latent topic structures of large-scale datasets \ including very large collections of text/Web documents. homepage http://gibbslda.sourceforge.net/ platforms darwin license GPL-2+ master_sites sourceforge:/project/gibbslda/GibbsLDA%2B%2B/${version} checksums rmd160 9a11c3ee3c9883ffb4a56d350b761864b493d378 \ sha256 4ca7b51bd2f098534f2fdf82c3f861f5d8bf92e29a6b7fbdc50c3c2baeb070ae distname GibbsLDA++-${version} patchfiles patch-src_utils.cpp.diff post-extract { system -W ${worksrcpath} "make clean" } use_configure no variant universal {} build.args CC="${configure.cxx} ${configure.cxxflags} [get_canonical_archflags cxx]" destroot { # install lda executable as 'gibbslda'. xinstall -m 755 ${worksrcpath}/src/lda ${destroot}${prefix}/bin/${name} # install additional documents. set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} \ README docs/GibbsLDA++Manual.pdf docs/index.html \ ${destroot}${docdir} } livecheck.regex {GibbsLDA\+\+\-([\d\.]+)\.tar}