Files
2016-12-04 23:45:28 -05:00

52 lines
1.6 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
# the suffix '-d' is taken from the initial of the author, Daichi Mochihashi.
name lda-d
version 0.2
categories math
maintainers nomaintainer
description a Latent Dirichlet Allocation package
long_description lda-d is a Latent Dirichlet Allocation (LDA) package made \
by Daichi Mochihashi.
homepage http://chasen.org/~daiti-m/dist/lda/
platforms darwin
license unknown
master_sites ${homepage}
checksums rmd160 8779f4d129cb56f202d755dc3cf11ab30c10bb9f \
sha256 226cb9849777bafe09587badde89f96578c445ef08ed6c00a451c2088071b237
distname lda-${version}
use_configure no
variant universal {}
build.args CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags]"
destroot {
# install lda executable as 'lda-d'.
xinstall -m 755 ${worksrcpath}/lda ${destroot}${prefix}/bin/${name}
# install additional documents.
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} \
AUTHOR README \
${destroot}${docdir}
# install sample data.
set data_dir ${prefix}/share/${name}
xinstall -d ${destroot}${data_dir}
xinstall -m 644 -W ${worksrcpath} \
train train.lex \
${destroot}${data_dir}
}
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex {lda-([\d\.]+)\.tar}