[88855] trunk/dports/math
hum at macports.org
hum at macports.org
Fri Jan 13 06:14:57 PST 2012
Revision: 88855
http://trac.macports.org/changeset/88855
Author: hum at macports.org
Date: 2012-01-13 06:14:56 -0800 (Fri, 13 Jan 2012)
Log Message:
-----------
New port: opal @20111221 - C++ header library of online learning with kernel slicing.
Added Paths:
-----------
trunk/dports/math/opal/
trunk/dports/math/opal/Portfile
trunk/dports/math/opal/files/
trunk/dports/math/opal/files/patch-multiclass.diff
Added: trunk/dports/math/opal/Portfile
===================================================================
--- trunk/dports/math/opal/Portfile (rev 0)
+++ trunk/dports/math/opal/Portfile 2012-01-13 14:14:56 UTC (rev 88855)
@@ -0,0 +1,54 @@
+# -*- 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 opal
+version 20111221
+categories math
+platforms darwin
+maintainers hum openmaintainer
+license GPL-2
+
+homepage http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/opal/
+description C++ header library of online learning with kernel slicing
+long_description ${name} is a ${description}.
+
+master_sites ${homepage}
+checksums rmd160 3991b56081ece5dcb97da6bf3a69d343f0805bf6 \
+ sha256 96185b857b668387e3fc884d99b9ecb9f8dd51534954ab961282d0ceda45c6ec
+
+worksrcdir ${name}
+use_bzip2 yes
+
+use_configure no
+
+variant universal {}
+
+build.args CC="${configure.cxx}" \
+ CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
+
+destroot {
+ xinstall -m 755 -W ${worksrcpath} \
+ opal rand_shuf opal-prune opal-pmt opal-prune-pmt opalk \
+ ${destroot}${prefix}/bin
+ file mkdir ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} \
+ COPYING GPL README \
+ ${destroot}${prefix}/share/doc/${name}
+}
+
+variant multiclass description {Add a multi-class classifier} {
+ patchfiles-append patch-multiclass.diff
+ post-destroot {
+ xinstall -m 755 -W ${worksrcpath} \
+ opal-multiclass \
+ ${destroot}${prefix}/bin
+ }
+}
+
+default_variants +multiclass
+
+livecheck.type regex
+livecheck.url ${homepage}
+livecheck.regex ${name}-(\\d+)\\.tar
Property changes on: trunk/dports/math/opal/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/math/opal/files/patch-multiclass.diff
===================================================================
--- trunk/dports/math/opal/files/patch-multiclass.diff (rev 0)
+++ trunk/dports/math/opal/files/patch-multiclass.diff 2012-01-13 14:14:56 UTC (rev 88855)
@@ -0,0 +1,28 @@
+--- Makefile.orig 2011-12-07 01:56:23.000000000 +0900
++++ Makefile 2011-12-29 22:34:48.000000000 +0900
+@@ -5,7 +5,7 @@
+ PREFIX = $(HOME)/local
+ PROGRAM_SUFFIX =
+ CC = g++
+-TARGET = opal rand_shuf opal-prune opal-pmt opal-prune-pmt opalk
++TARGET = opal rand_shuf opal-prune opal-pmt opal-prune-pmt opalk opal-multiclass
+ OBJS = timer.o
+ CFLAGS = -Wall -O2 -DNDEBUG # -m64 -march=native
+
+@@ -21,6 +21,8 @@
+ $(CC) $(CFLAGS) -o $@$(PROGRAM_SUFFIX) $(OBJS) opal.cc
+ opalk: $(OBJS) Makefile
+ $(CC) $(CFLAGS) -DUSE_POLYK -o $@$(PROGRAM_SUFFIX) $(OBJS) opal.cc
++opal-multiclass: $(OBJS) Makefile
++ $(CC) $(CFLAGS) -DUSE_MULTICLASS -o $@$(PROGRAM_SUFFIX) $(OBJS) opal.cc
+ rand_shuf: $(OBJS) Makefile
+ $(CC) $(CFLAGS) -o $@$(PROGRAM_SUFFIX) rand_shuf.cc
+
+@@ -31,6 +33,7 @@
+ install -c -s opal-pmt$(PROGRAM_SUFFIX) $(PREFIX)/bin
+ install -c -s opal-prune-pmt$(PROGRAM_SUFFIX) $(PREFIX)/bin
+ install -c -s opalk$(PROGRAM_SUFFIX) $(PREFIX)/bin
++ install -c -s opal-multiclass$(PROGRAM_SUFFIX) $(PREFIX)/bin
+ install -c -s rand_shuf$(PROGRAM_SUFFIX) $(PREFIX)/bin
+
+ .cc.o: Makefile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120113/4e75d4b0/attachment.html>
More information about the macports-changes
mailing list