[152203] trunk/dports/devel
sean at macports.org
sean at macports.org
Wed Aug 31 13:59:47 PDT 2016
Revision: 152203
https://trac.macports.org/changeset/152203
Author: sean at macports.org
Date: 2016-08-31 13:59:47 -0700 (Wed, 31 Aug 2016)
Log Message:
-----------
wangle: add new port
Added Paths:
-----------
trunk/dports/devel/wangle/
trunk/dports/devel/wangle/Portfile
trunk/dports/devel/wangle/files/
trunk/dports/devel/wangle/files/patch-shared.diff
Added: trunk/dports/devel/wangle/Portfile
===================================================================
--- trunk/dports/devel/wangle/Portfile (rev 0)
+++ trunk/dports/devel/wangle/Portfile 2016-08-31 20:59:47 UTC (rev 152203)
@@ -0,0 +1,38 @@
+# -*- 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 cxx11 1.0
+PortGroup cmake 1.0
+PortGroup github 1.0
+
+github.setup facebook wangle 20a5c5043db8
+version 0.13.99
+categories devel
+platforms darwin
+license BSD
+
+maintainers nomaintainer
+
+description Wangle is a framework providing a set of common \
+ client/server abstractions for building services in a \
+ consistent, modular, and composable way.
+long_description ${description}
+
+checksums rmd160 4ccf688627bc6333b6ada3c2db87f8f80493946e \
+ sha256 661a1999208b49a0e6bf335ac863533102b70b4e7ae3413911120b89b6caedb2
+
+worksrcdir ${worksrcdir}/wangle
+
+patch.pre_args -p2
+patchfiles-append patch-shared.diff
+
+depends_lib-append port:folly \
+ port:boost \
+ port:gflags \
+ port:google-glog \
+ port:openssl
+
+configure.args-append \
+ -DBUILD_TESTS=OFF \
+ -DBUILD_SHARED_LIBS=ON
Added: trunk/dports/devel/wangle/files/patch-shared.diff
===================================================================
--- trunk/dports/devel/wangle/files/patch-shared.diff (rev 0)
+++ trunk/dports/devel/wangle/files/patch-shared.diff 2016-08-31 20:59:47 UTC (rev 152203)
@@ -0,0 +1,30 @@
+diff --git a/wangle/CMakeLists.txt b/wangle/CMakeLists.txt
+index 4a9ed54..2efdb36 100644
+--- a/wangle/CMakeLists.txt
++++ b/wangle/CMakeLists.txt
+@@ -77,18 +77,22 @@ set(WANGLE_SOURCES
+ ssl/TLSTicketKeyManager.cpp
+ )
+
+-add_library(wangle STATIC
++add_library(wangle
+ ${WANGLE_HEADERS}
+ ${WANGLE_SOURCES}
+ )
+
++if (BUILD_SHARED_LIBS)
++ set_target_properties(wangle
++ PROPERTIES VERSION 1.0.0 SOVERSION 1)
++endif()
++
+ target_link_libraries(wangle
+ ${FOLLY_LIBRARIES}
+ ${Boost_LIBRARIES}
+ ${OPENSSL_LIBRARIES}
+ ${GLOG_LIBRARY_PATH}
+- ${GFLAGS_LIBRARY_PATH}
+- $<$<NOT:$<CXX_COMPILER_ID:Clang>>:-latomic>)
++ ${GFLAGS_LIBRARY_PATH})
+
+ install(TARGETS wangle DESTINATION lib)
+ foreach(dir ${WANGLE_HEADER_DIRS})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160831/545e06ed/attachment.html>
More information about the macports-changes
mailing list