Skip to content

Commit

Permalink
[bond] make haskell an external dependency (microsoft#7306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rastaban authored Jul 17, 2019
1 parent 8e17f07 commit 9a935a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
12 changes: 6 additions & 6 deletions ports/bond/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: bond
Maintainer: [email protected]
Version: 8.1.0-1
Description: Bond is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services.
Homepage: https://github.com/Microsoft/bond
Build-Depends: rapidjson, boost-config, boost-utility, boost-assign
Source: bond
Maintainer: [email protected]
Version: 8.1.0-2
Description: Bond is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services.
Homepage: https://github.com/Microsoft/bond
Build-Depends: rapidjson, boost-config, boost-utility, boost-assign
21 changes: 5 additions & 16 deletions ports/bond/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,11 @@ if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "windows" OR
endif()

else()
message(STATUS "Installing stack...")
vcpkg_download_distfile(
ARCHIVE
URLS "https://get.haskellstack.org/"
FILENAME "stack-install.sh"
SHA512 35a953d626d81bebef33d84cfeb54028b315f6e2802fc50739ed8c5731944bcbefea6284e482f898b27bbed421dbf3e43f284998620091a16d8eed825ebcda37
)

set(BASH /bin/bash)

vcpkg_execute_required_process(
COMMAND ${BASH} --noprofile --norc "${ARCHIVE}" -f
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}
LOGNAME install-stack
)

# According to the readme on https://github.com/microsoft/bond/
# The build needs a version of the Haskel Tool stack that is newer than some distros ship with.
# For this reason the message is not guarded by checking to see if the tool is installed.
message("\nA recent version of Haskell Tool Stack is required to build.\n For information on how to install see https://docs.haskellstack.org/en/stable/README/\n")

endif()

vcpkg_configure_cmake(
Expand Down

0 comments on commit 9a935a6

Please sign in to comment.