Revision
110535
Author
stromnov@macports.org
Date
2013-09-01 13:57:14 -0700 (Sun, 01 Sep 2013)

Log Message

libdynd: new port

Added Paths

Diff

Added: trunk/dports/devel/libdynd/Portfile (0 => 110535)


--- trunk/dports/devel/libdynd/Portfile	                        (rev 0)
+++ trunk/dports/devel/libdynd/Portfile	2013-09-01 20:57:14 UTC (rev 110535)
@@ -0,0 +1,50 @@
+# -*- 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           cmake 1.0
+
+set version_string  "v0.4.2"
+set git_sha1        "41a91350c053c7f7a5f92e440fb05ae9ae700c0b"
+set distname_suf    "07f39d0"
+
+github.setup        ContinuumIO libdynd ${version_string}
+
+name                libdynd
+categories          devel math
+platforms           darwin
+license             BSD
+
+maintainers         stromnov openmaintainer
+
+description         LibDyND is a C++ library for dynamic, multidimensional arrays.
+long_description    ${description}
+
+homepage            https://github.com/ContinuumIO/libdynd
+
+checksums           rmd160  98048cb1b7454f0e8ceebb9bdb0cd076a39b82ba \
+                    sha256  9afd2a02b162a3fffec89bba83ff5cdb295d2f941920f49689297f77082f333e
+
+worksrcdir          ContinuumIO-${name}-${distname_suf}
+
+patchfiles          patch-CMakeLists.txt.diff
+
+post-patch {
+    reinplace "s|@@DYND_GIT_SHA1@@|${git_sha1}|g" ${worksrcpath}/CMakeLists.txt
+    reinplace "s|@@DYND_VERSION_STRING@@|${version_string}|g" ${worksrcpath}/CMakeLists.txt
+}
+
+set build_dir        ${worksrcpath}/build
+pre-configure {
+    file mkdir ${build_dir}
+}
+configure.dir       ${build_dir}
+build.dir           ${build_dir}
+
+configure.args-append \
+                    ../ \
+                    -DDYND_SHARED_LIB=ON \
+                    -DDYND_INSTALL_LIB=ON \
+                    -DUSE_RELATIVE_RPATH=OFF \
+                    -DDYND_BUILD_TESTS=OFF
Property changes on: trunk/dports/devel/libdynd/Portfile
___________________________________________________________________

Added: svn:keywords

Added: svn:eol-style

Added: trunk/dports/devel/libdynd/files/patch-CMakeLists.txt.diff (0 => 110535)


--- trunk/dports/devel/libdynd/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/devel/libdynd/files/patch-CMakeLists.txt.diff	2013-09-01 20:57:14 UTC (rev 110535)
@@ -0,0 +1,15 @@
+--- CMakeLists.txt.orig	2013-09-01 22:25:28.000000000 +0400
++++ CMakeLists.txt	2013-09-02 00:17:28.000000000 +0400
+@@ -86,9 +86,9 @@
+ endif()
+ 
+ # Get the git revision
+-include(GetGitRevisionDescriptionDyND)
+-get_git_head_revision("${CMAKE_CURRENT_SOURCE_DIR}" GIT_REFSPEC DYND_GIT_SHA1)
+-git_describe("${CMAKE_CURRENT_SOURCE_DIR}" DYND_VERSION_STRING --dirty --match "v[0-9]*")
++
++SET(DYND_GIT_SHA1 "@@DYND_GIT_SHA1@@")
++SET(DYND_VERSION_STRING "@@DYND_VERSION_STRING@@")
+ message(STATUS "DyND version: ${DYND_VERSION_STRING}")
+ configure_file(
+     "${CMAKE_CURRENT_SOURCE_DIR}/src/dynd/git_version.cpp.in"