aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2021-07-16 05:52:47 +0800
committerGitHub <noreply@github.com>2021-07-15 14:52:47 -0700
commit04208f04daf17a747c27eb5fafe411d3635e759c (patch)
treeeb222141676ae90ec86255d733a72bfa55d179f8
parentf698b0e8bef4e80b1f70181054e8270a74f5d0f5 (diff)
downloadvcpkg-04208f04daf17a747c27eb5fafe411d3635e759c.tar.gz
vcpkg-04208f04daf17a747c27eb5fafe411d3635e759c.zip
[Pistache] update to HEAD (#17013)
* [Pistache] update to HEAD * update version * fix linux Error * update version Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
-rw-r--r--ports/pistache/CONTROL5
-rw-r--r--ports/pistache/fix-debug-empty.patch36
-rw-r--r--ports/pistache/portfile.cmake18
-rw-r--r--ports/pistache/vcpkg.json7
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/p-/pistache.json5
6 files changed, 58 insertions, 15 deletions
diff --git a/ports/pistache/CONTROL b/ports/pistache/CONTROL
deleted file mode 100644
index 307fe0191..000000000
--- a/ports/pistache/CONTROL
+++ /dev/null
@@ -1,5 +0,0 @@
-Source: pistache
-Version: 2019-08-05
-Homepage: https://github.com/oktal/pistache
-Description: Pistache is a modern and elegant HTTP and REST framework for C++. It is entirely written in pure-C++11 and provides a clear and pleasant API.
-Supports: linux \ No newline at end of file
diff --git a/ports/pistache/fix-debug-empty.patch b/ports/pistache/fix-debug-empty.patch
new file mode 100644
index 000000000..f6a7b97a0
--- /dev/null
+++ b/ports/pistache/fix-debug-empty.patch
@@ -0,0 +1,36 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 9aeed1e..7316732 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -48,12 +48,12 @@ if (BUILD_SHARED_LIBS)
+ add_library(pistache_shared SHARED $<TARGET_OBJECTS:pistache>)
+ target_link_libraries(pistache_shared PRIVATE Threads::Threads ${CMAKE_REQUIRED_LIBRARIES})
+ target_include_directories(pistache_shared INTERFACE ${PISTACHE_INCLUDE})
+-endif ()
++else ()
+
+ add_library(pistache_static STATIC $<TARGET_OBJECTS:pistache>)
+ target_link_libraries(pistache_static PRIVATE Threads::Threads ${CMAKE_REQUIRED_LIBRARIES})
+ target_include_directories(pistache_static INTERFACE ${PISTACHE_INCLUDE})
+-
++endif()
+ if (PISTACHE_USE_SSL)
+ target_compile_definitions(pistache PUBLIC PISTACHE_USE_SSL)
+ target_compile_definitions(pistache_static PUBLIC PISTACHE_USE_SSL)
+@@ -72,8 +72,15 @@ if (BUILD_SHARED_LIBS)
+ OUTPUT_NAME ${Pistache_OUTPUT_NAME}-${VERSION}
+ SOVERSION ${SONAME_VERSION_MAJOR}.${SONAME_VERSION_MINOR}
+ )
+-endif ()
++else ()
+
+ set_target_properties(pistache_static PROPERTIES
+ OUTPUT_NAME ${Pistache_OUTPUT_NAME}
+ )
++endif()
++install(
++ TARGETS pistache
++ RUNTIME DESTINATION bin
++ LIBRARY DESTINATION lib
++ ARCHIVE DESTINATION lib
++)
diff --git a/ports/pistache/portfile.cmake b/ports/pistache/portfile.cmake
index ea7deba19..409c0e0f6 100644
--- a/ports/pistache/portfile.cmake
+++ b/ports/pistache/portfile.cmake
@@ -1,13 +1,15 @@
-if(NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
+if(NOT VCPKG_TARGET_IS_LINUX)
message(FATAL_ERROR "${PORT} currently only supports Linux platform.")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
- REPO oktal/pistache
- REF 4dc9e3ef9a1b953a62e5fadbed88e72b4b3734de
- SHA512 427b6a6e7200e5f91ce8737cd1cc5d6cd689025033c85979c96f0ece64ae05d9c6839a936d7d6015b0e1065dc72362f6f70ab588ea7cae7aa718dfe5cd288554
+ REPO pistacheio/pistache
+ REF 9dc080b9ebbe6fc1726b45e9db1550305938313e #2021-03-31
+ SHA512 b55c395fb98af85317590ed2502564af5e92e30a35618132568c6ab589a6d0971570ad20ddbd1f49d9dd8cf54692866c69cfc1350c6fdccf9efb039aacf153b4
HEAD_REF master
+ PATCHES
+ fix-debug-empty.patch
)
vcpkg_configure_cmake(
@@ -17,13 +19,11 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
-vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/RapidJSON)
+vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
# Handle copyright
-file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/pistache/vcpkg.json b/ports/pistache/vcpkg.json
new file mode 100644
index 000000000..30a1bf4ed
--- /dev/null
+++ b/ports/pistache/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "pistache",
+ "version-date": "2021-03-31",
+ "description": "Pistache is a modern and elegant HTTP and REST framework for C++. It is entirely written in pure-C++11 and provides a clear and pleasant API",
+ "homepage": "https://github.com/oktal/pistache",
+ "supports": "linux"
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 0c9184aad..be1787a55 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -4849,7 +4849,7 @@
"port-version": 0
},
"pistache": {
- "baseline": "2019-08-05",
+ "baseline": "2021-03-31",
"port-version": 0
},
"pixel": {
diff --git a/versions/p-/pistache.json b/versions/p-/pistache.json
index 2c9491e14..68755a316 100644
--- a/versions/p-/pistache.json
+++ b/versions/p-/pistache.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "f2c28dea6191ea1f399a862889d095f1d268a3f0",
+ "version-date": "2021-03-31",
+ "port-version": 0
+ },
+ {
"git-tree": "63fa37bfa9925b106a2e5a66db9133e381dc499e",
"version-string": "2019-08-05",
"port-version": 0