source: trunk/dports/math/gibbslda/Portfile

Last change on this file was 115213, checked in by hum@…, 4 years ago

gibbslda: add patch to build on Mavericks; see #41915.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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: Portfile 115213 2013-12-28 11:30:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gibbslda
7version             0.2
8categories          math
9maintainers         hum openmaintainer
10
11description         a C/C++ implementation of Latent Dirichlet Allocation (LDA) using Gibbs Sampling
12
13long_description    GibbsLDA++ is a C/C++ implementation of Latent Dirichlet \
14                    Allocation (LDA) using Gibbs Sampling technique for parameter \
15                    estimation and inference. It is very fast and is designed to \
16                    analyze hidden/latent topic structures of large-scale datasets \
17                    including very large collections of text/Web documents.
18
19homepage            http://gibbslda.sourceforge.net/
20platforms           darwin
21license             GPL-2+
22
23master_sites        sourceforge:/project/gibbslda/GibbsLDA%2B%2B/${version}
24checksums           rmd160  9a11c3ee3c9883ffb4a56d350b761864b493d378 \
25                    sha256  4ca7b51bd2f098534f2fdf82c3f861f5d8bf92e29a6b7fbdc50c3c2baeb070ae
26
27distname            GibbsLDA++-${version}
28
29patchfiles          patch-src_utils.cpp.diff
30
31post-extract {
32    system -W ${worksrcpath} "make clean"
33}
34
35use_configure       no
36
37variant universal {}
38
39build.args          CC="${configure.cxx} ${configure.cxxflags} [get_canonical_archflags cxx]"
40
41destroot {
42    # install lda executable as 'gibbslda'.
43    xinstall -m 755 ${worksrcpath}/src/lda ${destroot}${prefix}/bin/${name}
44    # install additional documents.
45    set docdir ${prefix}/share/doc/${name}
46    xinstall -d ${destroot}${docdir}
47    xinstall -m 644 -W ${worksrcpath} \
48        README docs/GibbsLDA++Manual.pdf docs/index.html \
49        ${destroot}${docdir}
50}
51
52livecheck.regex     {GibbsLDA\+\+\-([\d\.]+)\.tar}
Note: See TracBrowser for help on using the repository browser.