diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-08-02 10:31:29 -0700 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-08-02 10:31:29 -0700 |
| commit | 38bee840eb2d42f4689d0466fd87b1335b3abbf1 (patch) | |
| tree | 0326537d3918abf1569beac848e650e5ae1eb285 | |
| parent | 3063c145cab44d48a464bd2aec094d44bc1e199e (diff) | |
| download | vcpkg-38bee840eb2d42f4689d0466fd87b1335b3abbf1.tar.gz vcpkg-38bee840eb2d42f4689d0466fd87b1335b3abbf1.zip | |
[ctbignum] Add new port (#7512)
| -rw-r--r-- | ports/ctbignum/CONTROL | 6 | ||||
| -rw-r--r-- | ports/ctbignum/portfile.cmake | 30 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ports/ctbignum/CONTROL b/ports/ctbignum/CONTROL new file mode 100644 index 000000000..977abc21f --- /dev/null +++ b/ports/ctbignum/CONTROL @@ -0,0 +1,6 @@ +Source: ctbignum +Version: 2019-08-02 +Homepage: https://github.com/niekbouman/ctbignum +Description: This is a header-only template library for fixed-width "small big-integer" computations, for use during run-time as well as compile-time. +Build-Depends: boost + diff --git a/ports/ctbignum/portfile.cmake b/ports/ctbignum/portfile.cmake new file mode 100644 index 000000000..6d297117f --- /dev/null +++ b/ports/ctbignum/portfile.cmake @@ -0,0 +1,30 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO niekbouman/ctbignum + REF cf3233d8b7dcff59f29a7389204959ee2228a4af + SHA512 8cd5e187836f48165a088a171c87ce438393e66f7362af1b67a253ae6ef0b17c41468e21e0dfe337094796f2b2a2fa5062cc9a9231afc377f187baf1ead1257e + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DCTBIGNUM_BuildTests=OFF + -DCTBIGNUM_BuildBenchmarks=OFF +) + +vcpkg_install_cmake() + +# Move CMake files to the right place +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) +# Remove empty files +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib) + +# Handle copyright +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) + |
