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

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

New port: lda-d @0.2 - a Latent Dirichlet Allocation package.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 101793 2013-01-19 13:39:21Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# the suffix '-d' is taken from the initial of the author, Daichi Mochihashi.
7name                lda-d
8version             0.2
9categories          math
10maintainers         hum openmaintainer
11
12description         a Latent Dirichlet Allocation package
13
14long_description    lda-d is a Latent Dirichlet Allocation (LDA) package made \
15                    by Daichi Mochihashi.
16
17homepage            http://chasen.org/~daiti-m/dist/lda/
18platforms           darwin
19license             unknown
20
21master_sites        ${homepage}
22checksums           rmd160  8779f4d129cb56f202d755dc3cf11ab30c10bb9f \
23                    sha256  226cb9849777bafe09587badde89f96578c445ef08ed6c00a451c2088071b237
24
25distname            lda-${version}
26
27use_configure       no
28
29variant universal {}
30
31build.args          CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]"
32
33destroot {
34    # install lda executable as 'lda-d'.
35    xinstall -m 755 ${worksrcpath}/lda ${destroot}${prefix}/bin/${name}
36    # install additional documents.
37    set docdir ${prefix}/share/doc/${name}
38    xinstall -d ${destroot}${docdir}
39    xinstall -m 644 -W ${worksrcpath} \
40        AUTHOR README \
41        ${destroot}${docdir}
42    # install sample data.
43    set data_dir ${prefix}/share/${name}
44    xinstall -d ${destroot}${data_dir}
45    xinstall -m 644 -W ${worksrcpath} \
46        train train.lex \
47        ${destroot}${data_dir}
48}
49
50livecheck.type      regex
51livecheck.url       ${homepage}
52livecheck.regex     {lda-([\d\.]+)\.tar}
Note: See TracBrowser for help on using the repository browser.