Skip to content

Commit

Permalink
[botan] no absolute paths (#21287)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort authored Nov 11, 2021
1 parent 1d459e2 commit f15cf57
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ports/botan/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,8 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/botan/build.h" "#define BOTAN_INSTALL_PREFIX R\"(${CURRENT_PACKAGES_DIR})\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/botan/build.h" "#define BOTAN_INSTALL_LIB_DIR R\"(${CURRENT_PACKAGES_DIR}/lib)\"" "")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/botan/build.h" "--prefix=${CURRENT_PACKAGES_DIR}" "")

file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
2 changes: 1 addition & 1 deletion ports/botan/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "botan",
"version": "2.18.1",
"port-version": 3,
"port-version": 4,
"description": "A cryptography library written in C++11",
"homepage": "https://botan.randombit.net",
"supports": "!(windows & arm)",
Expand Down
5 changes: 5 additions & 0 deletions versions/b-/botan.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "477e259691b81a016da459532f616b5fca230a91",
"version": "2.18.1",
"port-version": 4
},
{
"git-tree": "045c95bf0e7f1352d91398bc0dc41ce5ec5a288a",
"version": "2.18.1",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@
},
"botan": {
"baseline": "2.18.1",
"port-version": 3
"port-version": 4
},
"box2d": {
"baseline": "2.4.1",
Expand Down

0 comments on commit f15cf57

Please sign in to comment.