aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/pprint
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/pprint')
-rw-r--r--vcpkg/ports/pprint/portfile.cmake24
-rw-r--r--vcpkg/ports/pprint/vcpkg.json17
2 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/pprint/portfile.cmake b/vcpkg/ports/pprint/portfile.cmake
new file mode 100644
index 0000000..79b6458
--- /dev/null
+++ b/vcpkg/ports/pprint/portfile.cmake
@@ -0,0 +1,24 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO p-ranav/pprint
+ REF 2fb81cd4af62c019ea28ea1707164fc3637bc656
+ SHA512 51bdf0e06666511fb475b46ff2d512e5d04b231f63c274c021f56b194501885a0302af95cc90977b0a3b39b555d1076926f618d0a6751926acb5f8b2a968bc0a
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DPPRINT_BUILD_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+# Handle copyright
+configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
diff --git a/vcpkg/ports/pprint/vcpkg.json b/vcpkg/ports/pprint/vcpkg.json
new file mode 100644
index 0000000..f1f1722
--- /dev/null
+++ b/vcpkg/ports/pprint/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "pprint",
+ "version-date": "2019-07-19",
+ "port-version": 3,
+ "description": "Pretty Printer for Modern C++",
+ "homepage": "https://github.com/p-ranav/pprint",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}