diff options
Diffstat (limited to 'vcpkg/ports/ptc-print')
| -rw-r--r-- | vcpkg/ports/ptc-print/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/ptc-print/vcpkg.json | 18 |
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/ptc-print/portfile.cmake b/vcpkg/ports/ptc-print/portfile.cmake new file mode 100644 index 0000000..1638033 --- /dev/null +++ b/vcpkg/ports/ptc-print/portfile.cmake @@ -0,0 +1,30 @@ +# header-only library + +# Github config +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO JustWhit3/ptc-print + REF v1.4.1 + SHA512 45f3008cb848f464ac0355660e7cdbd40db60338a4db5e35d29285c8c1afc0556c8dea6ac0e6939837916ec138dd8e385709d1fa89651d3404418cf3e7948fd9 + HEAD_REF master +) + +# Main commands +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DPTCPRINT_TESTS=OFF +) +vcpkg_cmake_install() + +# Move cmake configs +vcpkg_cmake_config_fixup(PACKAGE_NAME ptcprint CONFIG_PATH lib/cmake/ptcprint) + +# Remove duplicate files +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/lib" + "${CURRENT_PACKAGES_DIR}/lib" + "${CURRENT_PACKAGES_DIR}/debug") + +# Install license +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/ptc-print/vcpkg.json b/vcpkg/ports/ptc-print/vcpkg.json new file mode 100644 index 0000000..e90efa4 --- /dev/null +++ b/vcpkg/ports/ptc-print/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "ptc-print", + "version": "1.4.1", + "port-version": 1, + "description": "A single-header library for custom printing to the output stream.", + "homepage": "https://github.com/JustWhit3/ptc-print", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |