[110536] trunk/dports/python
stromnov at macports.org
stromnov at macports.org
Sun Sep 1 13:58:24 PDT 2013
Revision: 110536
https://trac.macports.org/changeset/110536
Author: stromnov at macports.org
Date: 2013-09-01 13:58:24 -0700 (Sun, 01 Sep 2013)
Log Message:
-----------
py-dynd: new port
Added Paths:
-----------
trunk/dports/python/py-dynd/
trunk/dports/python/py-dynd/Portfile
trunk/dports/python/py-dynd/files/
trunk/dports/python/py-dynd/files/patch-CMakeLists.txt.diff
Added: trunk/dports/python/py-dynd/Portfile
===================================================================
--- trunk/dports/python/py-dynd/Portfile (rev 0)
+++ trunk/dports/python/py-dynd/Portfile 2013-09-01 20:58:24 UTC (rev 110536)
@@ -0,0 +1,61 @@
+# -*- 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
+PortGroup github 1.0
+PortGroup python 1.0
+PortGroup cmake 1.0
+
+set version_string "v0.4.2"
+set git_sha1 "9f9044e1b6f80869d230f9de73cfe887884bb04d"
+set distname_suf "07f39d0"
+
+github.setup ContinuumIO dynd-python ${version_string}
+
+name py-dynd
+categories-append devel
+platforms darwin
+license BSD
+
+python.versions 26 27 33
+
+maintainers stromnov openmaintainer
+
+description Dynamic multi-dimensional array library.
+
+long_description DyND-Python, a component of the Blaze project, is the \
+ Python exposure of the DyND dynamic multi-dimensional \
+ array library.
+
+homepage https://github.com/ContinuumIO/dynd-python
+
+checksums rmd160 41ca9cd0faa0903cea34977f2ca9d39535cc4dcc \
+ sha256 aadb8ba2d654c026d92bf8740c35211457f3ea12b3541dc623094a70164968ff
+
+if {$subport != $name} {
+ depends_lib-append port:libdynd \
+ port:py${python.version}-numpy \
+ port:py${python.version}-cython
+
+ patchfiles-append patch-CMakeLists.txt.diff
+
+ post-patch {
+ reinplace "s|@@DYND_PYTHON_GIT_SHA1@@|${git_sha1}|g" ${worksrcpath}/CMakeLists.txt
+ reinplace "s|@@DYND_PYTHON_VERSION_STRING@@|${version_string}|g" ${worksrcpath}/CMakeLists.txt
+ }
+
+ use_configure yes
+ configure.args-append \
+ -DUSE_SEPARATE_LIBDYND=ON \
+ -DUSE_RELATIVE_RPATH=OFF \
+ -DPYTHON_EXECUTABLE=${prefix}/bin/python${python.branch} \
+ -DCYTHON_EXECUTABLE=${prefix}/bin/cython-${python.branch}
+
+ build.cmd make
+ build.target all
+
+ destroot.cmd make
+ destroot.destdir DESTDIR=${destroot}
+
+ livecheck.type none
+}
Property changes on: trunk/dports/python/py-dynd/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py-dynd/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/python/py-dynd/files/patch-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/python/py-dynd/files/patch-CMakeLists.txt.diff 2013-09-01 20:58:24 UTC (rev 110536)
@@ -0,0 +1,13 @@
+--- CMakeLists.txt.orig 2013-09-02 00:40:01.000000000 +0400
++++ CMakeLists.txt 2013-09-02 00:41:49.000000000 +0400
+@@ -86,8 +86,8 @@
+ endif()
+
+ # Get the git revision
+-get_git_head_revision("${CMAKE_CURRENT_SOURCE_DIR}" GIT_REFSPEC DYND_PYTHON_GIT_SHA1)
+-git_describe("${CMAKE_CURRENT_SOURCE_DIR}" DYND_PYTHON_VERSION_STRING --dirty --match "v[0-9]*")
++SET(DYND_PYTHON_GIT_SHA1 "@@DYND_PYTHON_GIT_SHA1@@")
++SET(DYND_PYTHON_VERSION_STRING "@@DYND_PYTHON_VERSION_STRING@@")
+ message(STATUS "DyND-Python version: ${DYND_PYTHON_VERSION_STRING}")
+ configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/git_version.cpp.in"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130901/f5f310a2/attachment.html>
More information about the macports-changes
mailing list