[110535] trunk/dports/devel

stromnov at macports.org stromnov at macports.org
Sun Sep 1 13:57:14 PDT 2013


Revision: 110535
          https://trac.macports.org/changeset/110535
Author:   stromnov at macports.org
Date:     2013-09-01 13:57:14 -0700 (Sun, 01 Sep 2013)
Log Message:
-----------
libdynd: new port

Added Paths:
-----------
    trunk/dports/devel/libdynd/
    trunk/dports/devel/libdynd/Portfile
    trunk/dports/devel/libdynd/files/
    trunk/dports/devel/libdynd/files/patch-CMakeLists.txt.diff

Added: trunk/dports/devel/libdynd/Portfile
===================================================================
--- 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
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/libdynd/files/patch-CMakeLists.txt.diff
===================================================================
--- 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130901/87f86de1/attachment.html>


More information about the macports-changes mailing list