source: trunk/dports/math/libsvm/Portfile @ 84039

Last change on this file since 84039 was 84039, checked in by hum@…, 8 years ago

libsvm: take over the maintainership.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
RevLine 
[60603]1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
[34108]2# $Id: Portfile 84039 2011-09-15 16:22:31Z hum@macports.org $
3
[79388]4PortSystem              1.0
[34108]5
[79388]6name                    libsvm
7epoch                   1
[79387]8version                 3.1
[79388]9categories              math
[84039]10maintainers             hum openmaintainer
[79388]11license                 BSD
12platforms               darwin
[34108]13
[79388]14description             A free Support Vector Machine implementation.
[34108]15
[79388]16long_description        ${description} By Chih-Chung Chang and Chih-Jen Lin \
17                        of National Taiwan University. \"LIBSVM is an \
18                        integrated software for support vector \
19                        classification, (C-SVC, nu-SVC), regression \
20                        (epsilon-SVR, nu-SVR) and distribution estimation \
21                        (one-class SVM ). It supports multi-class \
22                        classification.\"
23
24homepage                http://www.csie.ntu.edu.tw/~cjlin/libsvm/
25master_sites            ${homepage}
26
[79387]27checksums               sha1    20f09f25a99850009154f6133c5d7ff74cef78a3 \
28                        rmd160  3554cbf671633af17973a25ecf1633ac013f714c
[69574]29
[34108]30patchfiles              patch-Makefile.diff
31
[79388]32use_configure           no
[34108]33
34set libver              ${version}.0
35build.target            all
[79387]36build.args              CXX="${configure.cxx} ${configure.cxx_archflags}" \
37                        PREFIX=${prefix} \
38                        VERSION=${libver}
[34108]39
40destroot {
[34115]41    xinstall -m 755 -W ${worksrcpath} svm-train svm-predict svm-scale ${destroot}${prefix}/bin
42    xinstall -m 644 -W ${worksrcpath} libsvm.a libsvm.${libver}.dylib ${destroot}${prefix}/lib
43    xinstall -m 644 -W ${worksrcpath} svm.h ${destroot}${prefix}/include
[34108]44
[34116]45    ln -sf ${name}.${libver}.dylib ${destroot}${prefix}/lib/${name}.dylib
[34108]46
[69574]47    set docs ${destroot}${prefix}/share/doc/${name}
[34108]48    xinstall -m 755 -d ${docs}
[34115]49    xinstall -m 644 -W ${worksrcpath} COPYRIGHT README FAQ.html ${docs}
[34108]50}
51
[69574]52variant java description {Install Java JAR files} {
53    depends_lib-append  bin:java:kaffe
54
55    post-destroot {
56        set jdir ${destroot}${prefix}/share/java
57        xinstall -m 775 -d ${jdir}
58        file rename ${worksrcpath}/java ${jdir}/${name}
59    }
60}
61
62default_variants        +java
[73860]63
64livecheck.type          regex
65livecheck.regex         {<td> *([0-9.]+) *</td>}
Note: See TracBrowser for help on using the repository browser.