[94409] trunk/dports/math
hum at macports.org
hum at macports.org
Mon Jun 18 07:47:45 PDT 2012
Revision: 94409
https://trac.macports.org/changeset/94409
Author: hum at macports.org
Date: 2012-06-18 07:47:45 -0700 (Mon, 18 Jun 2012)
Log Message:
-----------
New port: sgd @2.0 - Stochastic Gradient Descent.
Added Paths:
-----------
trunk/dports/math/sgd/
trunk/dports/math/sgd/Portfile
Added: trunk/dports/math/sgd/Portfile
===================================================================
--- trunk/dports/math/sgd/Portfile (rev 0)
+++ trunk/dports/math/sgd/Portfile 2012-06-18 14:47:45 UTC (rev 94409)
@@ -0,0 +1,67 @@
+# -*- 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$
+
+PortSystem 1.0
+
+name sgd
+version 2.0
+categories math textproc
+maintainers hum openmaintainer
+
+description Stochastic Gradient Descent
+long_description The goal of this package is to illustrate the efficiency of \
+ stochastic gradient descent for large-scale learning tasks. \
+ Two algorithms, Stochastic Gradient Descent (SGD), and \
+ Averaged Stochastic Gradient Descent (ASGD), are applied to \
+ two well known problems, Linear Support Vector Machines, and \
+ Conditional Random Fields.
+
+homepage http://leon.bottou.org/projects/sgd
+platforms darwin
+license LGPL-3
+
+master_sites http://leon.bottou.org/_media/projects/
+checksums rmd160 a0e51f5835e4f34f55ec555ce5565ee662204cd1 \
+ sha256 d028149cf6f4ae80cdd377bf1d2008c32147768ac416146ddccffd9db0dd0e3b
+
+depends_lib port:zlib
+
+use_configure no
+
+variant universal {}
+
+build.args CXX=${configure.cxx} \
+ CXXFLAGS="${configure.cxxflags} -I../lib -L${prefix}/lib [get_canonical_archflags cxx]"
+
+destroot {
+ # install executables.
+ xinstall -m 755 -W ${worksrcpath}/svm \
+ prep_rcv1 prep_alpha prep_webspam svmsgd svmasgd \
+ ${destroot}${prefix}/bin
+ xinstall -m 755 -W ${worksrcpath}/crf \
+ crfsgd crfasgd conlleval \
+ ${destroot}${prefix}/bin
+ # install additional documents.
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ COPYING README.txt \
+ ${destroot}${docdir}
+ # install additional documents for svm.
+ xinstall -d ${destroot}${docdir}/svm
+ xinstall -m 644 -W ${worksrcpath}/svm \
+ README.txt \
+ ${destroot}${docdir}/svm
+ # install additional documents for crf.
+ xinstall -d ${destroot}${docdir}/crf
+ xinstall -m 644 -W ${worksrcpath}/crf \
+ README.txt template \
+ ${destroot}${docdir}/crf
+ # install additional files for data.
+ set sgd_dir ${prefix}/share/${name}
+ xinstall -d ${destroot}${sgd_dir}
+ copy ${worksrcpath}/data ${destroot}${sgd_dir}
+}
+
+livecheck.type regex
+livecheck.regex ${name}-(\[0-9.\]+)\\.tar
Property changes on: trunk/dports/math/sgd/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120618/7e6e7353/attachment.html>
More information about the macports-changes
mailing list