<pre style='margin:0'>
Mojca Miklavec (mojca) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8c387f2ab2c8ea3a6d039a867eb72e1efc13068a">https://github.com/macports/macports-ports/commit/8c387f2ab2c8ea3a6d039a867eb72e1efc13068a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8c387f2ab2c8ea3a6d039a867eb72e1efc13068a
</span>Author: Gregorio Litenstein <g.litenstein@gmail.com>
AuthorDate: Mon Apr 30 20:43:39 2018 -0300
<span style='display:block; white-space:pre;color:#404040;'> RESTinio: New port.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> RESTinio is a header-only C++14 library that gives you an embedded
</span><span style='display:block; white-space:pre;color:#404040;'> HTTP/Websocket server. It is based on standalone version of ASIO and targeted
</span><span style='display:block; white-space:pre;color:#404040;'> primarily for asynchronous processing of HTTP-requests.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> RESTinio: Updated to 0.4.8
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Addressed some review comments also.
</span>---
www/restinio/Portfile | 69 +++++++++++++++++++
www/restinio/files/patch-CMakeLists.txt.diff | 99 ++++++++++++++++++++++++++++
2 files changed, 168 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/restinio/Portfile b/www/restinio/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..b8213da
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/restinio/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,69 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cxx11 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup Stiffstream restinio 0.4.8 v.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories www devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:g.litenstein @Lord-Kamina} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://stiffstream.com/en/products/restinio.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Header-only C++14 library that gives you an embedded HTTP/Websocket server.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description RESTinio is a header-only C++14 library that gives you an embedded \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HTTP/Websocket server. It is based on standalone version of ASIO and targeted \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ primarily for asynchronous processing of HTTP-requests.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 15b3c324ca28abd62bb4877dd2ce315461d062aa \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 454352bde5f01de5f903322ed55bb39c67616312bffeb1cf7c8f1c85bee502b3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 459870
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append port:boost \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:openssl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pcre \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:doxygen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:asio \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:http-parser \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libfmt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.source_dir ${worksrcpath}/dev
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.build_type Release
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.generator Unix Makefiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.env-append ASIO_STANDALONE=1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ASIO_HAS_STD_CHRONO=1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ASIO_DISABLE_STD_STRING_VIEW=1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FMT_HEADER_ONLY=1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args-delete -DCMAKE_POLICY_DEFAULT_CMP0025=NEW
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.optflags-delete -Os
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append *gcc-3.* *gcc-4.* {*gcc-5.[0-3]} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {clang < 800} macports-clang-3.4 macports-clang-3.5 macports-clang-3.6 macports-clang-3.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.post_args-delete VERBOSE=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set components { . impl path2regex router third_party/optional-lite third_party/string-view-lite transforms utils utils/impl websocket websocket/impl }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set files { }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set instdir "${destroot}${prefix}/include/${github.project}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach i ${components} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend files {*}[glob -tails -directory ${worksrcpath}/dev/${github.project}/ ${i}/*{.hpp,.inl}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${instdir}/${i}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach x ${files} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 "${worksrcpath}/dev/${github.project}/${x}" "${instdir}/${x}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set docdir "${destroot}${prefix}/share/doc/${github.project}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d "${docdir}/html/search"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath}/dev "${prefix}/bin/doxygen ${worksrcpath}/dev/Doxyfile"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 "${worksrcpath}/README.md" "${docdir}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 "${worksrcpath}/LICENSE" "${docdir}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 {*}[glob "${worksrcpath}/dev/doc/html/*.*" "${docdir}/html"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 {*}[glob "${worksrcpath}/dev/doc/html/search/*.*" "${docdir}/html/search"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/restinio/files/patch-CMakeLists.txt.diff b/www/restinio/files/patch-CMakeLists.txt.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..02b52f0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/restinio/files/patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,99 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- dev/CMakeLists.txt.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ dev/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -11,12 +11,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option(RESTINIO_INSTALL "Generate the install target." ${RESTINIO_MASTER_PROJECT})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-option(RESTINIO_TEST "Build the tests." ${RESTINIO_MASTER_PROJECT})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-option(RESTINIO_SAMPLE "Build samples." ${RESTINIO_MASTER_PROJECT})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-option(RESTINIO_INSTALL_SAMPLES "Build install samples." ${RESTINIO_MASTER_PROJECT})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-option(RESTINIO_BENCH "Build the test target." ${RESTINIO_MASTER_PROJECT})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-option(RESTINIO_INSTALL_BENCHES "Build install samples." ${RESTINIO_MASTER_PROJECT})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-option(RESTINIO_FIND_DEPS "Use `find_package()` for including RESTinio dependencies." OFF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++option(RESTINIO_FIND_DEPS "Use `find_package()` for including RESTinio dependencies." ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(RESTINIO_USE_BOOST_ASIO "none" CACHE STRING "Use boost version of ASIO")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SET(RESTINIO_USE_BOOST_ASIO_VALUES "none;static;shared")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -71,82 +66,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fmtlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_subdirectory(fmt)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # ------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # ------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # Tests, samples and benchmark dependencies:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # OpenSSL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- find_package(OpenSSL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- IF ( OPENSSL_FOUND )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message("OpenSSL include dir: ${OPENSSL_INCLUDE_DIR}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message("OpenSSL libraries: ${OPENSSL_LIBRARIES}")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ENDIF ( OPENSSL_FOUND )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # PCRE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- find_package(PCRE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- IF (PCRE_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "PCRE_LIBRARIES='" ${PCRE_LIBRARIES} "'" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "PCRE_INCLUDE_DIRS='" ${PCRE_INCLUDE_DIRS} "'" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # PCRE2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- find_package(PCRE2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- IF (PCRE2_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "PCRE2_LIBRARIES='" ${PCRE2_LIBRARIES} "'" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "PCRE2_INCLUDE_DIRS='" ${PCRE2_INCLUDE_DIRS} "'" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # PCRE2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- find_package(PCRE2)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- IF (PCRE2_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "PCRE2_LIBRARIES='" ${PCRE2_LIBRARIES} "'" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "PCRE2_INCLUDE_DIRS='" ${PCRE2_INCLUDE_DIRS} "'" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # ------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # SObjectizer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(SOBJECTIZER_BUILD_STATIC ON)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(SOBJECTIZER_LIBS sobjectizer::StaticLib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- add_subdirectory(so_5)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # ------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # Zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- find_package(ZLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- IF (NOT ZLIB_FOUND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- add_subdirectory(restinio/third_party/zlib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "USE OWN ZLIB SOURCES")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(ZLIB_LIBRARIES zlibstatic)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- SET(ZLIB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/restinio/third_party/zlib)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "ZLIB_LIBRARIES='" ${ZLIB_LIBRARIES} "'" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- message( STATUS "ZLIB_INCLUDE_DIRS='" ${ZLIB_INCLUDE_DIRS} "'" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ENDIF (RESTINIO_MASTER_PROJECT)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # RESTinio itself.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_subdirectory(restinio)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# ------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# Tests
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-IF (RESTINIO_TEST)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- enable_testing()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- add_subdirectory(test)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- IF (WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- configure_file(${CMAKE_SOURCE_DIR}/cmake/run_tests.bat ${CMAKE_BINARY_DIR} NEWLINE_STYLE WIN32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# ------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# Samples
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-IF (RESTINIO_SAMPLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- add_subdirectory(sample)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ENDIF ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# ------------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# Benches
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-IF (RESTINIO_BENCH)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- add_subdirectory(benches)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ENDIF ()
</span></pre><pre style='margin:0'>
</pre>