[88340] trunk/dports/math/pecco
hum at macports.org
hum at macports.org
Thu Dec 29 01:26:31 PST 2011
Revision: 88340
http://trac.macports.org/changeset/88340
Author: hum at macports.org
Date: 2011-12-29 01:26:25 -0800 (Thu, 29 Dec 2011)
Log Message:
-----------
pecco: update to 20111221; add dartsclone, float and trie variants; set dartsclone variant to default.
Modified Paths:
--------------
trunk/dports/math/pecco/Portfile
trunk/dports/math/pecco/files/patch-pecco_conf.h.diff
Modified: trunk/dports/math/pecco/Portfile
===================================================================
--- trunk/dports/math/pecco/Portfile 2011-12-29 08:21:23 UTC (rev 88339)
+++ trunk/dports/math/pecco/Portfile 2011-12-29 09:26:25 UTC (rev 88340)
@@ -4,8 +4,7 @@
PortSystem 1.0
name pecco
-version 20110829
-revision 3
+version 20111221
categories math
platforms darwin
maintainers hum openmaintainer
@@ -16,17 +15,12 @@
long_description ${name} is a ${description}.
master_sites ${homepage}
+checksums rmd160 b6c3a4ec3256996eaa144025a3903c23e9ee6f95 \
+ sha256 16dae8cdff35819f979982363fec68642e652d340f8623c51d8e4e4496a82485
-checksums rmd160 27d609eda4fcc200d89dac976924bfa5faad4ad5 \
- sha256 99eb12e794ba516fcfbd46541ef633b70dcd85b6c6c56226132b4272c42ef162
-
-depends_build path:include/darts.h:darts-clone
-
worksrcdir ${name}
use_bzip2 yes
-patchfiles patch-pecco_conf.h.diff
-
use_configure no
variant universal {}
@@ -42,6 +36,21 @@
${destroot}${prefix}/share/doc/${name}
}
+variant dartsclone description {Use darts-clone} {
+ depends_build-append port:darts-clone
+ patchfiles-append patch-pecco_conf.h.diff
+}
+
+variant float description {Use float as the type of weights} {
+ build.args-append CFLAGS=-DUSE_FLOAT
+}
+
+variant trie description {Encode weights into a trie in kernel_model} {
+ build.args-append CFLAGS=-DABUSE_TRIE
+}
+
+default_variants +dartsclone
+
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex ${name}-(\\d+)\\.tar
Modified: trunk/dports/math/pecco/files/patch-pecco_conf.h.diff
===================================================================
--- trunk/dports/math/pecco/files/patch-pecco_conf.h.diff 2011-12-29 08:21:23 UTC (rev 88339)
+++ trunk/dports/math/pecco/files/patch-pecco_conf.h.diff 2011-12-29 09:26:25 UTC (rev 88340)
@@ -1,13 +1,13 @@
---- pecco_conf.h.orig 2011-09-03 23:35:03.000000000 +0900
-+++ pecco_conf.h 2011-09-03 23:37:46.000000000 +0900
-@@ -28,8 +28,8 @@
+--- pecco_conf.h.orig 2011-12-21 14:50:08.000000000 +0900
++++ pecco_conf.h 2011-12-29 15:59:42.000000000 +0900
+@@ -26,8 +26,8 @@
// - CEDAR (USE_CEDAR)
- // EFFECT: Darts-Clone requires 1/2 to 1/3 memory compared to others and is
- // highly recommended; either should be set
--// #define USE_DARTS
--#define USE_DARTS_CLONE
-+#define USE_DARTS
-+// #define USE_DARTS_CLONE
- // #define USE_CEDAR
+ // darts-clone requires 1/2 to 1/3 memory compared to others (recommended)
+ // #define USE_DARTS
+-// #define USE_DARTS_CLONE
+-#define USE_CEDAR
++#define USE_DARTS_CLONE
++// #define USE_CEDAR
// use TR1 unordered_map / unordered_set for map / set type
+ // set to slightly speeding up the initialization
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111229/3c33b3f0/attachment.html>
More information about the macports-changes
mailing list