[139337] trunk/dports/python/py-tables
mmoll at macports.org
mmoll at macports.org
Thu Aug 13 07:55:00 PDT 2015
Revision: 139337
https://trac.macports.org/changeset/139337
Author: mmoll at macports.org
Date: 2015-08-13 07:54:59 -0700 (Thu, 13 Aug 2015)
Log Message:
-----------
py-tables: update to 3.2.1, patch blosc filter (thanks to stromnov). closes #48557 and #48566
Modified Paths:
--------------
trunk/dports/python/py-tables/Portfile
Added Paths:
-----------
trunk/dports/python/py-tables/files/
trunk/dports/python/py-tables/files/patch-c-blosc_hdf5_blosc_filter.c.diff
Modified: trunk/dports/python/py-tables/Portfile
===================================================================
--- trunk/dports/python/py-tables/Portfile 2015-08-13 05:10:18 UTC (rev 139336)
+++ trunk/dports/python/py-tables/Portfile 2015-08-13 14:54:59 UTC (rev 139337)
@@ -7,8 +7,8 @@
set realname tables
name py-${realname}
-version 3.2.0
-revision 1
+version 3.2.1
+revision 0
categories-append science
platforms darwin
license BSD
@@ -23,10 +23,11 @@
extremely large amounts of data
homepage https://pytables.github.io/
-master_sites http://sourceforge.net/projects/pytables/files/pytables/${version}
+master_sites https://pypi.python.org/packages/source/t/tables/ \
+ http://sourceforge.net/projects/pytables/files/pytables/${version}
-checksums rmd160 141f2241a5f5a7f737bb191c9e77f009620eb587 \
- sha256 60980e44676bfe463cdd2582ecdacc0b0763b259477015e866f8af72b4cdba44
+checksums rmd160 b5938223a5ff8f008c41bfe39a4be45b928ef540 \
+ sha256 212d4f32899a9a0a6b3f865262c20c6ff864fb60e1b8be70f0bbc80137456e31
distname ${realname}-${version}
@@ -44,6 +45,7 @@
--bzip2=${prefix} \
--lzo=${prefix} \
--blosc=${prefix}
+
pre-destroot {
# need to wrap this in a pre-destroot phase so that ${mpi.cc} expands to the right value
if {[mpi_variant_isset]} {
@@ -66,9 +68,20 @@
}
post-extract {
+ # Fix permissions
+ fs-traverse item ${worksrcpath} {
+ if {[file isdirectory ${item}]} {
+ file attributes ${item} -permissions a+rx
+ } elseif {[file isfile ${item}]} {
+ file attributes ${item} -permissions a+r
+ }
+ }
+
file rename ${worksrcpath}/src/utils.h ${worksrcpath}/src/xxx_utils.h
}
+ patchfiles-append patch-c-blosc_hdf5_blosc_filter.c.diff
+
post-patch {
eval reinplace "s:utils.h:xxx_utils.h:" [glob ${worksrcpath}/{src,tables}/*.c]
}
Added: trunk/dports/python/py-tables/files/patch-c-blosc_hdf5_blosc_filter.c.diff
===================================================================
--- trunk/dports/python/py-tables/files/patch-c-blosc_hdf5_blosc_filter.c.diff (rev 0)
+++ trunk/dports/python/py-tables/files/patch-c-blosc_hdf5_blosc_filter.c.diff 2015-08-13 14:54:59 UTC (rev 139337)
@@ -0,0 +1,11 @@
+--- c-blosc/hdf5/blosc_filter.c.orig 2015-08-13 11:58:26.000000000 +0300
++++ c-blosc/hdf5/blosc_filter.c 2015-08-13 11:58:37.000000000 +0300
+@@ -175,7 +175,7 @@
+ int doshuffle = 1; /* Shuffle default */
+ int compcode; /* Blosc compressor */
+ int code;
+- char *compname = NULL;
++ char *compname = "blosclz";
+ char *complist;
+ char errmsg[256];
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150813/2e4c6580/attachment.html>
More information about the macports-changes
mailing list