source: trunk/dports/math/sofia-ml/Portfile

Last change on this file was 95899, checked in by jmr@…, 5 years ago

correct license formatting

  • 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 95899 2012-07-26 10:56:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6fetch.type          svn
7svn.url             http://sofia-ml.googlecode.com/svn/trunk/sofia-ml
8svn.revision        42
9
10name                sofia-ml
11version             2011-06-20-r${svn.revision}
12revision            1
13categories          math
14platforms           darwin
15maintainers         hum openmaintainer
16license             Apache-2
17
18homepage            http://code.google.com/p/sofia-ml/
19description         Suite of Fast Incremental Algorithms for Machine Learning
20long_description    The suite of fast incremental algorithms for machine learning (sofia-ml) \
21                    can be used for training models for classification, regression, ranking, \
22                    or combined regression and ranking. Several different techniques are \
23                    available. This release is intended to aid researchers and practitioners \
24                    who require fast methods for classification and ranking on large, sparse \
25                    data sets.
26
27worksrcdir          ${name}
28
29use_configure       no
30
31variant universal   {}
32
33build.dir           ${worksrcpath}/src
34build.args          GCC="${configure.cxx} ${configure.cxxflags} [get_canonical_archflags cxx]"
35build.target       
36
37test.run            yes
38eval test.args      ${build.args}
39test.target         all_test
40
41destroot {
42    xinstall -m 755 -W ${worksrcpath} sofia-ml ${destroot}${prefix}/bin
43    xinstall -m 755 -W ${worksrcpath} eval.pl  ${destroot}${prefix}/bin/sofia-eval.pl
44    file mkdir ${destroot}${prefix}/share/${name}
45    foreach item {COPYING README demo papers} {
46        file copy ${worksrcpath}/${item} \
47            ${destroot}${prefix}/share/${name}
48    }
49}
50
51set kmeans_worksrcpath ${worksrcpath}/cluster-src
52
53variant kmeans description {Add sofia-kmeans package} {
54    post-build {
55        system -W ${kmeans_worksrcpath} "${build.cmd} [join ${build.args}] ${build.target}"
56    }
57    post-test {
58        system -W ${kmeans_worksrcpath} "${build.cmd} [join ${test.args}] ${test.target}"
59    }
60    post-destroot {
61        xinstall -m 755 -W ${worksrcpath} sofia-kmeans ${destroot}${prefix}/bin
62    }
63}
64
65default_variants    +kmeans
66
67livecheck.type      regex
68livecheck.version   ${svn.revision}
69livecheck.url       ${homepage}source/list
70livecheck.regex     >r(\\d+)<
Note: See TracBrowser for help on using the repository browser.