Ticket #16852: Portfile.3

File Portfile.3, 3.2 KB (added by nerdling (Jeremy Lavergne), 15 years ago)

cleaned up lint warnings, added portgroup, should we disable python variant?

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$
3
4PortSystem          1.0
5PortGroup           python25 1.0
6
7name                py25-shogun
8version             0.6.7
9categories          python science math
10maintainers         jameskyle@ucla.edu
11description         The machine learning toolbox's focus is on large scale \
12                    kernel methods and especially on Support Vector Machines \
13                    (SVM).
14long_description  ${description} It provides a generic SVM object interfacing \
15                    to several different SVM implementations, among them the \
16                    state of the art OCAS, LibSVM , SVMLight,  SVMLin  and \
17                    GPDT . Each of the SVMs can be combined with a variety of \
18                    kernels. The toolbox not only provides efficient \
19                    implementations of the most common kernels, like the \
20                    Linear, Polynomial, Gaussian and Sigmoid Kernel but also \
21                    comes with a number of recent string kernels as e.g. the \
22                    Locality Improved , Fischer , TOP , Spectrum , Weighted \
23                    Degree Kernel (with shifts).
24
25use_parallel_build  yes
26use_bzip2           yes
27homepage            http://www.shogun-toolbox.org
28platforms           darwin
29master_sites        http://shogun-toolbox.org/archives/shogun/releases/0.6/sources/
30
31checksums           md5 03d2c5ae44fa7ca8baeb8c3fd2bae010 \
32                    sha1 7657da29d9f9afc0c204b8f2e68c784308185a1e \
33                    rmd160 c00ceceb791d2073413c089e23e361a3d584cc24
34
35distfiles           shogun-${version}${extract.suffix}
36
37configure.args      --disable-svm-light \
38                    --interface=python \
39                    --python=${prefix}/bin/python2.5 \
40                    --libs=${prefix}/lib \
41                    --includes=${prefix}/include \
42                    --cxx=${prefix}/bin/g++-mp-4.3 \
43                    --cc=${prefix}/bin/gcc-mp-4.3 \
44                    --disable-lapack \
45                    --install-path=${prefix} \
46                    --enable-readline \
47                    --destdir=${destroot}
48
49worksrcdir          shogun-${version}/src
50patchfiles          patch-src.diff
51
52# atlas/lapack disabled due to bug #17698
53# default_variants  +atlas +glpk +lp_solve
54default_variants    +glpk +lp_solve
55
56depends_lib         port:python25 \
57                    port:py25-numpy \
58                    port:gcc43 \
59                    port:readline
60
61patch {
62    system "cd ${workpath}/shogun-${version} && patch -p0 < ${filespath}/${patchfiles}"
63}
64
65variant cplex description {enable Multiple Kernel Learning CPLEX(tm)} {
66    configure.args-append --enable-cplex
67}
68
69variant python description {build the python interface} {
70}
71
72#variant atlas description {use the fast atlas and lapack libraries} {
73#    depends_lib-append port:atlas
74#}
75
76variant glpk description {enable support for the GNU Linear Programming Kit} {
77    depends_lib-append port:glpk
78}
79
80variant lp_solve description {enable support for the lp_solve library} {
81    depends_lib-append port:lp_solve
82}
83
84post-clean {
85    ui_msg "Make sure that ${prefix}/lib is in your DYLD_LIBRARY_PATH or the sg module will not load properly!"
86}