[152204] trunk/dports/devel

sean at macports.org sean at macports.org
Wed Aug 31 13:59:51 PDT 2016


Revision: 152204
          https://trac.macports.org/changeset/152204
Author:   sean at macports.org
Date:     2016-08-31 13:59:51 -0700 (Wed, 31 Aug 2016)
Log Message:
-----------
mstch: add new port

Added Paths:
-----------
    trunk/dports/devel/mstch/
    trunk/dports/devel/mstch/Portfile
    trunk/dports/devel/mstch/files/
    trunk/dports/devel/mstch/files/patch-shared.diff

Added: trunk/dports/devel/mstch/Portfile
===================================================================
--- trunk/dports/devel/mstch/Portfile	                        (rev 0)
+++ trunk/dports/devel/mstch/Portfile	2016-08-31 20:59:51 UTC (rev 152204)
@@ -0,0 +1,30 @@
+# -*- 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           cmake 1.0
+PortGroup           github 1.0
+
+github.setup        no1msd mstch 1.0.2
+categories          devel
+platforms           darwin
+license             MIT
+
+maintainers         nomaintainer
+
+description         mstch is a complete implementation of {{mustache}} \
+                    templates using modern C++
+long_description    ${description}
+
+checksums           rmd160  089ce23e4d9be80c1546196ffa48cdfaa3d1d718 \
+                    sha256  77c416142c3f32afd26beab02a494e2688033b390a5a6ced1440515f74b7bf8d
+
+patch.pre_args      -p1
+patchfiles-append   patch-shared.diff
+
+depends_lib-append  port:boost
+
+configure.args-append \
+                    -DBUILD_TESTS=OFF \
+                    -DBUILD_SHARED_LIBS=ON
+

Added: trunk/dports/devel/mstch/files/patch-shared.diff
===================================================================
--- trunk/dports/devel/mstch/files/patch-shared.diff	                        (rev 0)
+++ trunk/dports/devel/mstch/files/patch-shared.diff	2016-08-31 20:59:51 UTC (rev 152204)
@@ -0,0 +1,36 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8d8e0c7..ca6e020 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -8,7 +8,14 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+ set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
+ set(CMAKE_BUILD_TYPE Release)
+ 
+-set(mstch_VERSION 1.0.1)
++set(mstch_VERSION 1.0.2)
++
++string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" mstch_VERSION_MATCH "${mstch_VERSION}")
++set(mstch_VERSION_MAJOR "${CMAKE_MATCH_1}")
++set(mstch_VERSION_MINOR "${CMAKE_MATCH_2}")
++set(mstch_VERSION_PATCH "${CMAKE_MATCH_3}")
++set(mstch_SOVERSION "${mstch_VERSION_MAJOR}.${mstch_VERSION_MINOR}")
++unset(mstch_VERSION_MATCH)
+ 
+ if(NOT MSVC)
+   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -O3")
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 6517fc4..dd0dcbe 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -22,9 +22,9 @@ set(SRC
+     token.cpp
+     utils.cpp)
+ 
+-add_library(mstch STATIC ${SRC})
++add_library(mstch ${SRC})
+ 
+-set_property(TARGET mstch PROPERTY VERSION ${mstch_VERSION})
++set_property(TARGET mstch PROPERTY SOVERSION ${mstch_VERSION})
+ 
+ install(
+     TARGETS mstch EXPORT mstchTargets
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160831/662edd74/attachment.html>


More information about the macports-changes mailing list