source: trunk/dports/math/lda-c/Portfile

Last change on this file was 101792, checked in by hum@…, 5 years ago

New port: lda-c @20080413 - a C implementation of latent Dirichlet allocation (LDA).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 101792 2013-01-19 13:38:44Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                lda-c
7version             20080413
8categories          math
9maintainers         hum openmaintainer
10
11description         a C implementation of latent Dirichlet allocation (LDA)
12
13long_description    LDA-C is a C implementation of latent Dirichlet allocation \
14                    (LDA) made by David M. Blei.
15
16homepage            http://www.cs.princeton.edu/~blei/lda-c/
17platforms           darwin
18license             GPL
19
20distname            ${name}-dist
21extract.suffix      .tgz
22
23master_sites        ${homepage}
24checksums           ${distname}${extract.suffix} \
25                    rmd160  a1e2fb1248827142eb31b72dc5a63ca57ffb6470 \
26                    sha256  d3f387bfd468552319a05d62f33be9872c1b03bee1c7e382ebda37d8e35bc993
27
28use_configure       no
29
30variant universal {}
31
32build.args          CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]"
33build.target       
34
35set share_dir       ${prefix}/share/${name}
36
37destroot {
38    # install lda executable as 'lda-c'.
39    xinstall -m 755 ${worksrcpath}/lda ${destroot}${prefix}/bin/${name}
40    # install additional documents.
41    set docdir ${prefix}/share/doc/${name}
42    xinstall -d ${destroot}${docdir}
43    xinstall -m 644 -W ${worksrcpath} \
44        readme.txt todo.txt \
45        ${destroot}${docdir}
46    # install settings files and a script.
47    xinstall -d ${destroot}${share_dir}
48    foreach f {inf-settings.txt settings.txt} {
49        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${share_dir}
50    }
51    xinstall -m 755 ${worksrcpath}/topics.py ${destroot}${share_dir}
52}
53
54variant sample description {Add sample data from the Associated Press} {
55    distfiles-append    ap${extract.suffix}
56    checksums-append    ap${extract.suffix} \
57                        rmd160  25b1b2e8871eb50cb6a179c0b100c455fc19bca6 \
58                        sha256  91bc914b8f66d55c3b87556d6450b7a7c635efae752eedc702fd20b1fb1b3e8b
59    post-destroot {
60        copy ${workpath}/ap ${destroot}${share_dir}
61    }
62}
63
64default_variants    +sample
65
66livecheck.type      none
Note: See TracBrowser for help on using the repository browser.