[110099] trunk/dports/python/py-tables/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Aug 26 00:40:29 PDT 2013


Revision: 110099
          https://trac.macports.org/changeset/110099
Author:   jeremyhu at macports.org
Date:     2013-08-26 00:40:29 -0700 (Mon, 26 Aug 2013)
Log Message:
-----------
py-tables: Rename utils.h to avoid possible build failure

Modified Paths:
--------------
    trunk/dports/python/py-tables/Portfile

Modified: trunk/dports/python/py-tables/Portfile
===================================================================
--- trunk/dports/python/py-tables/Portfile	2013-08-26 07:30:24 UTC (rev 110098)
+++ trunk/dports/python/py-tables/Portfile	2013-08-26 07:40:29 UTC (rev 110099)
@@ -55,6 +55,14 @@
         depends_lib-append  port:py${python.version}-scientific
     }
 
+    post-extract {
+        file rename ${worksrcpath}/src/utils.h ${worksrcpath}/src/xxx_utils.h
+    }
+
+    post-patch {
+        eval reinplace "s:utils.h:xxx_utils.h:" [glob ${worksrcpath}/{src,tables}/*.c]
+    }
+
     post-destroot    {
         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
         xinstall -m 644 -W ${worksrcpath} ANNOUNCE.txt LICENSE.txt README.txt \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130826/d407a081/attachment-0001.html>


More information about the macports-changes mailing list