source: trunk/dports/python/py25-shogun/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

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