aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Henoch <40023589+Tom-Henoch@users.noreply.github.com>2018-10-22 18:08:19 +0200
committerRobert Schumacher <roschuma@microsoft.com>2018-10-22 09:08:19 -0700
commit2db456f44a98e3ec0165325406d4f52b8e70cb0f (patch)
tree9a065936fc154176b28e163c3c3bdad7b929f498
parent0720fd246322539a16a7574840f5fe9715ecac15 (diff)
downloadvcpkg-2db456f44a98e3ec0165325406d4f52b8e70cb0f.tar.gz
vcpkg-2db456f44a98e3ec0165325406d4f52b8e70cb0f.zip
Reproc initial port (#4263)
* reproc initial port * Remove portfile debug output * Fix Cmake files path * [reproc] Update to v1.0.0 * [reproc] Fix hash for v1.0.0
-rw-r--r--ports/reproc/CONTROL3
-rw-r--r--ports/reproc/portfile.cmake29
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/reproc/CONTROL b/ports/reproc/CONTROL
new file mode 100644
index 000000000..14b08a416
--- /dev/null
+++ b/ports/reproc/CONTROL
@@ -0,0 +1,3 @@
+Source: reproc
+Version: v1.0.0
+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
new file mode 100644
index 000000000..54c0cc70c
--- /dev/null
+++ b/ports/reproc/portfile.cmake
@@ -0,0 +1,29 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO DaanDeMeyer/reproc
+ REF v1.0.0
+ SHA512 f567de9d6cd8bca0b34f1f48231a59c6698730c5b63f1d733de14fecf09991de74e4b3a99cc98ae7f62dcba8b2b7831d5e617fd32ca38b296b9073bc07fb2d92
+ 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