source: trunk/dports/math/sgd/Portfile

Last change on this file was 115240, checked in by hum@…, 4 years ago

sgd: add patch to build on Mavericks.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 115240 2013-12-30 01:20:58Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                sgd
7version             2.1
8revision            1
9categories          math textproc
10maintainers         hum openmaintainer
11
12description         Stochastic Gradient Descent
13long_description    The goal of this package is to illustrate the efficiency of \
14                    stochastic gradient descent for large-scale learning tasks. \
15                    Two algorithms, Stochastic Gradient Descent (SGD), and \
16                    Averaged Stochastic Gradient Descent (ASGD), are applied to \
17                    two well known problems, Linear Support Vector Machines, and \
18                    Conditional Random Fields.
19
20homepage            http://leon.bottou.org/projects/sgd
21platforms           darwin
22license             LGPL-3
23
24master_sites        http://leon.bottou.org/_media/projects/
25checksums           rmd160  ee438a984a67b36944d4dba3fa2de2cd017d665f \
26                    sha256  f591e8352bfc47f280887a23cac521123814556abd510b65e4ba39218275a112
27 
28depends_lib         port:zlib
29
30patchfiles          patch-c++11.diff
31
32use_configure       no
33
34variant universal {}
35
36build.args          CXX=${configure.cxx} \
37                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx] -I../lib" \
38                    LIBS="-L${prefix}/lib -lz -lm"
39
40destroot {
41    # install executables.
42    xinstall -m 755 -W ${worksrcpath}/crf \
43        crfsgd crfasgd conlleval \
44        ${destroot}${prefix}/bin
45    xinstall -m 755 -W ${worksrcpath}/svm \
46        prep_rcv1 prep_alpha prep_webspam svmsgd svmasgd \
47        ${destroot}${prefix}/bin
48    # install additional documents.
49    set dest_doc ${destroot}${prefix}/share/doc/${name}
50    xinstall -d ${dest_doc}
51    xinstall -m 644 -W ${worksrcpath} \
52        COPYING README.txt \
53        ${dest_doc}
54    xinstall -d ${dest_doc}/crf
55    xinstall -m 644 ${worksrcpath}/crf/README.txt ${dest_doc}/crf
56    xinstall -d ${dest_doc}/svm
57    xinstall -m 644 ${worksrcpath}/svm/README.txt ${dest_doc}/svm
58    # install examples.
59    set dest_ex ${destroot}${prefix}/share/examples/${name}
60    xinstall -d ${dest_ex}
61    copy ${worksrcpath}/data ${dest_ex}
62    xinstall -d ${dest_ex}/crf
63    xinstall -m 644 ${worksrcpath}/crf/template ${dest_ex}/crf
64}
65
66livecheck.type      regex
67livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.