forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[modp-base64] Update to current github instead of web.archive.org (mi…
…crosoft#13763) Co-authored-by: Robert Schumacher <[email protected]>
- Loading branch information
1 parent
8fe1851
commit 97b58ea
Showing
3 changed files
with
15 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Source: modp-base64 | ||
Version: v2.0.0 | ||
Description: | ||
Version: 2020-09-26 | ||
Description: High performance base64 encoder/decoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
include(vcpkg_common_functions) | ||
|
||
vcpkg_download_distfile(ARCHIVE | ||
URLS "https://web.archive.org/web/20060620024518/http://modp.com:80/release/base64/modp-base64-v2.0.0.tar.bz2" | ||
FILENAME "modp-base64-v2.0.0.tar.bz2" | ||
SHA512 474e20cbbc47f31af5e981a6a9028fcec57e3ae9bb5ba979aa5c5c4cab6f301208fe6f441a0106df4c223d89fb6f18b19ab8812cf9f3c9900e54524e35b45720 | ||
) | ||
|
||
vcpkg_extract_source_archive_ex( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
ARCHIVE ${ARCHIVE} | ||
) | ||
|
||
file(COPY | ||
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt | ||
${CMAKE_CURRENT_LIST_DIR}/config.h.cmake | ||
${CMAKE_CURRENT_LIST_DIR}/libmodpbase64.def | ||
DESTINATION ${SOURCE_PATH} | ||
) | ||
file(COPY | ||
${CMAKE_CURRENT_LIST_DIR}/modp_b64_data.h | ||
DESTINATION ${SOURCE_PATH}/src | ||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO client9/stringencoders | ||
REF e1448a9415f4ebf6f559c86718193ba067cbb99d | ||
SHA512 68c9b9a9eb09075c792cfc0a8ce1959c60a86e5256de8568b0cb6934f748fd9e95c5f1801a8982fecac65850a8f2d633a64dc98e4505ee8e6914bd0b0fb996cf | ||
HEAD_REF master | ||
) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR} | ||
PREFER_NINJA | ||
OPTIONS -DSOURCE_PATH=${SOURCE_PATH} | ||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON | ||
) | ||
|
||
vcpkg_install_cmake() | ||
|
||
# Handle copyright | ||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/modp-base64 RENAME copyright) | ||
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) |