aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexej Harm <alexej.h@xiphos.de>2019-06-01 16:28:38 +0200
committerRobert Schumacher <roschuma@microsoft.com>2019-06-01 07:28:38 -0700
commite251b22f266cfd9115d784c34bf7294b3cc41137 (patch)
treee5694932e9796fd41acf3d90bf205d28081ed8f1
parent046f8383efd70f57814faf1a8b7ef628c92ed959 (diff)
downloadvcpkg-e251b22f266cfd9115d784c34bf7294b3cc41137.tar.gz
vcpkg-e251b22f266cfd9115d784c34bf7294b3cc41137.zip
[reproc] Enabled C++ target for version 6.0.0. (#6711)
* enabled reproc++ target * added version suffix
-rw-r--r--ports/reproc/CONTROL6
-rw-r--r--ports/reproc/portfile.cmake59
2 files changed, 34 insertions, 31 deletions
diff --git a/ports/reproc/CONTROL b/ports/reproc/CONTROL
index 825ba92f9..d55102f55 100644
--- a/ports/reproc/CONTROL
+++ b/ports/reproc/CONTROL
@@ -1,3 +1,3 @@
-Source: reproc
-Version: 6.0.0
-Description: Cross-platform library that simplifies working with external CLI applications from C and C++
+Source: reproc
+Version: 6.0.0-1
+Description: Cross-platform library that simplifies working with external CLI applications from C and C++
diff --git a/ports/reproc/portfile.cmake b/ports/reproc/portfile.cmake
index 89cf5f491..e263c194c 100644
--- a/ports/reproc/portfile.cmake
+++ b/ports/reproc/portfile.cmake
@@ -1,29 +1,32 @@
-include(vcpkg_common_functions)
-
-vcpkg_from_github(
- OUT_SOURCE_PATH SOURCE_PATH
- REPO DaanDeMeyer/reproc
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO DaanDeMeyer/reproc
REF v6.0.0
- SHA512 482eb7b52961878877d1e4a4f1e1a5a867ff5b83f0df3ce47c0eb68f43eabcde720ea7ccb2eeb960dbc29fc61c888db62751984425e9b27c7498dfa4441aa801
- HEAD_REF master
-)
-
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
- OPTIONS
- -DREPROC_BUILD_CXX_WRAPPER=ON
- -DREPROC_INSTALL=ON
-)
-
-vcpkg_install_cmake()
-
-vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/reproc)
-
-
-# Debug
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-
-# Handle License
-file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/reproc)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/reproc/LICENSE ${CURRENT_PACKAGES_DIR}/share/reproc/copyright) \ No newline at end of file
+ SHA512 482eb7b52961878877d1e4a4f1e1a5a867ff5b83f0df3ce47c0eb68f43eabcde720ea7ccb2eeb960dbc29fc61c888db62751984425e9b27c7498dfa4441aa801
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DREPROC++=ON
+ -DREPROC++_INSTALL=ON
+ -DREPROC_INSTALL=ON
+)
+
+vcpkg_install_cmake()
+
+file(GLOB REPROC_CMAKE_FILES ${CURRENT_PACKAGES_DIR}/lib/cmake/reproc++/*)
+file(COPY ${REPROC_CMAKE_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/lib/cmake/reproc)
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/reproc)
+
+# Debug
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+# Handle License
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/reproc)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/reproc/LICENSE ${CURRENT_PACKAGES_DIR}/share/reproc/copyright)