aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNik Reist <45250287+ZeroAbility@users.noreply.github.com>2020-01-27 16:50:46 -0500
committerVictor Romero <romerosanchezv@gmail.com>2020-01-27 13:50:46 -0800
commitfa4b2e2676c316573b7ae681ef25f7624ccf647e (patch)
tree8d9b2e4df8d0d9c2a19f75fe1efe4fe09cf201d3
parent141522e6ed9bfc0e17296a9cf37faa7daeb9a00c (diff)
downloadvcpkg-fa4b2e2676c316573b7ae681ef25f7624ccf647e.tar.gz
vcpkg-fa4b2e2676c316573b7ae681ef25f7624ccf647e.zip
[mcpp] Add new port (#9598)
-rw-r--r--ports/mcpp/CONTROL4
-rw-r--r--ports/mcpp/portfile.cmake27
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/mcpp/CONTROL b/ports/mcpp/CONTROL
new file mode 100644
index 000000000..e76634440
--- /dev/null
+++ b/ports/mcpp/CONTROL
@@ -0,0 +1,4 @@
+Source: mcpp
+Version: 2.7.2.14
+Homepage: https://github.com/zeroc-ice/mcpp
+Description: Fork of mcpp, a C/C++ preprocessor
diff --git a/ports/mcpp/portfile.cmake b/ports/mcpp/portfile.cmake
new file mode 100644
index 000000000..9394d00c3
--- /dev/null
+++ b/ports/mcpp/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO zeroc-ice/mcpp
+ REF e6abf9a561294b667bb931b80cf749c9be2d1a2f
+ SHA512 131b68401683bcfb947ac4969a59aa4c1683412c30f76c50e9e9c5c952a881b9950127db2ef22c96968d8c90d26bcdb5a90fb1b77d4dda7dee67bfe4a2676b35
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+file(
+ INSTALL
+ ${SOURCE_PATH}/config.h
+ ${SOURCE_PATH}/mcpp_lib.h
+ ${SOURCE_PATH}/mcpp_out.h
+ DESTINATION
+ ${CURRENT_PACKAGES_DIR}/include
+)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)