Files
Joshua Root 00add8495d textproc/*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-30 08:12:16 +11:00

49 lines
1.7 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
PortGroup github 1.0
github.setup percyliang brown-cluster 123bff38de44592d32a5eec588ea46a290a77ae6
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version 1.3-20171019
checksums rmd160 da20de5cadf0e554e7ad8cdb714831ce189c887d \
sha256 66bf04ad0bb34f3dec53075112e5b2d444fea73c8a38733868631219867512cc \
size 38680
categories textproc
maintainers nomaintainer
description C++ implementation of the Brown word clustering algorithm
long_description {*}${description}.
license Permissive
patchfiles patch-Makefile.diff
compiler.cxx_standard 2011
use_configure no
variant universal {}
build.target wcluster
build.args CXX="${configure.cxx}" \
CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
destroot {
# install binary.
xinstall -m 755 ${worksrcpath}/wcluster ${destroot}${prefix}/bin
# install additional documents and examples.
set docdir ${prefix}/share/doc/${name}
set exdir ${prefix}/share/examples/${name}
xinstall -d ${destroot}${docdir}
xinstall -d ${destroot}${exdir}
xinstall -m 644 -W ${worksrcpath} README ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} input.txt output.txt ${destroot}${exdir}
# install cluster-viewer.
set libexecdir ${prefix}/libexec/${name}
xinstall -d ${destroot}${libexecdir}
copy ${worksrcpath}/cluster-viewer ${destroot}${libexecdir}
}