aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-12-20 23:01:44 -0800
committerGitHub <noreply@github.com>2018-12-20 23:01:44 -0800
commit4afe20fc123d794cd066d1dc19b8873b3a2a3645 (patch)
treec113c130420bb06550a8f47ce31c242cd28bf848
parent6ec8eebaeb865c06be12ef5f039860d441163251 (diff)
parentded0d0141a13be84bec1f04ac34d5b72e7547164 (diff)
downloadvcpkg-4afe20fc123d794cd066d1dc19b8873b3a2a3645.tar.gz
vcpkg-4afe20fc123d794cd066d1dc19b8873b3a2a3645.zip
Merge pull request #4967 from myd7349/ponder
[ponder] Add new port
-rw-r--r--ports/ponder/CONTROL3
-rw-r--r--ports/ponder/no-install-unused.patch27
-rw-r--r--ports/ponder/portfile.cmake38
3 files changed, 68 insertions, 0 deletions
diff --git a/ports/ponder/CONTROL b/ports/ponder/CONTROL
new file mode 100644
index 000000000..7f935d304
--- /dev/null
+++ b/ports/ponder/CONTROL
@@ -0,0 +1,3 @@
+Source: ponder
+Version: 3.0.0
+Description: A C++ multi-purpose reflection library.
diff --git a/ports/ponder/no-install-unused.patch b/ports/ponder/no-install-unused.patch
new file mode 100644
index 000000000..e540dd909
--- /dev/null
+++ b/ports/ponder/no-install-unused.patch
@@ -0,0 +1,27 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 091f56d..715f86e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -325,14 +325,14 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/PonderConfig.cmake ${CMAKE_CURRENT_BIN
+ COMPONENT devel
+ )
+
+-install(FILES README.md COPYING.txt
+- DESTINATION ${INSTALL_MISC_DIR}
+-)
+-
+-install(DIRECTORY cmake
+- DESTINATION ${INSTALL_MISC_DIR}
+- COMPONENT utils
+-)
++#install(FILES README.md COPYING.txt
++# DESTINATION ${INSTALL_MISC_DIR}
++#)
++
++#install(DIRECTORY cmake
++# DESTINATION ${INSTALL_MISC_DIR}
++# COMPONENT utils
++#)
+
+ ###############################
+ # packaging
diff --git a/ports/ponder/portfile.cmake b/ports/ponder/portfile.cmake
new file mode 100644
index 000000000..b85378ce3
--- /dev/null
+++ b/ports/ponder/portfile.cmake
@@ -0,0 +1,38 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO billyquith/ponder
+ REF 3.0.0
+ SHA512 b6ba1ce9fa0584b16085c56afb70e31f204a66b57193c1a4225bfe18abbda561bb71b3279dd0a4f1b21867b985ef5ce78c8e360f3fc654c61ce61c44d35c5f38
+ HEAD_REF master
+ PATCHES
+ no-install-unused.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DUSES_RAPIDJSON=OFF
+ -DUSES_RAPIDXML=OFF
+ -DBUILD_TEST=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/${PORT}/cmake)
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug/include
+ ${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}
+ ${CURRENT_PACKAGES_DIR}/lib/${PORT})
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(READ ${CURRENT_PACKAGES_DIR}/include/${PORT}/config.hpp _contents)
+ string(REPLACE "ifndef PONDER_STATIC" "if 0 //ifndef PONDER_STATIC" _contents "${_contents}")
+ file(WRITE ${CURRENT_PACKAGES_DIR}/include/${PORT}/config.hpp "${_contents}")
+endif()
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)