# -*- 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 # $Id: Portfile 121510 2014-06-28 01:34:22Z hum@macports.org $ PortSystem 1.0 name pecco version 2014-06-22 epoch 1 categories math maintainers hum openmaintainer description simple C++ library for linear classification with conjunctive features long_description ${name} is a ${description}. homepage http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/pecco/ platforms darwin license {GPL-2 LGPL-2.1} master_sites ${homepage} checksums rmd160 fc88f50594134331ed5d09e7adc14a6dc1cad969 \ sha256 7e0c369491a0e4ddbed6dd4001f2c9f668248f9148ab644167efa307efa75e1b post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} \ AUTHORS COPYING GPL LGPL README THANKS \ ${destroot}${docdir} set exroot ${prefix}/share/examples xinstall -d ${destroot}${exroot} copy ${worksrcpath}/test ${destroot}${exroot}/${name} } variant dartsclone description {Use darts-clone} { depends_build-append port:darts-clone configure.args-append --with-trie-impl=darts-clone } variant float description {Use float as the type of weights} { configure.args-append --enable-float } variant trie description {Encode weights into a trie in kernel_model} { configure.args-append --enable-abuse-trie } default_variants +dartsclone livecheck.type regex livecheck.regex "${name}-(\\d+(?:\\-\\d+)*)${extract.suffix}"