diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-28 10:30:29 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-28 10:30:29 -0300 |
commit | 585e5d32a3402bffa971ae8124fc64004ab92e61 (patch) | |
tree | f97577adb6236684ff4972ea5fdd8d2c69ea41e1 | |
parent | bbc9eff9ae16e954b9fe72641b3650f23be2e4dd (diff) | |
download | rneovim-585e5d32a3402bffa971ae8124fc64004ab92e61.tar.gz rneovim-585e5d32a3402bffa971ae8124fc64004ab92e61.tar.bz2 rneovim-585e5d32a3402bffa971ae8124fc64004ab92e61.zip |
deps: Add custom target for pinning busted dependencies
busted depends on a number of libraries that sometimes introduce crashing bugs.
The new custom target makes sure only stable versions of those dependencies are
installed.
-rw-r--r-- | third-party/CMakeLists.txt | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 9cc0df098c..c859940f41 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -211,10 +211,24 @@ if(USE_BUNDLED_LUAROCKS) add_dependencies(luarocks luajit) endif() + add_custom_command(OUTPUT ${DEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps + COMMAND ${DEPS_BIN_DIR}/luarocks ARGS install lua_cliargs 2.3-3 + COMMAND ${DEPS_BIN_DIR}/luarocks ARGS install luafilesystem 1.5.0 + COMMAND ${DEPS_BIN_DIR}/luarocks ARGS install dkjson 2.5-1 + COMMAND ${DEPS_BIN_DIR}/luarocks ARGS install say 1.2-1 + COMMAND ${DEPS_BIN_DIR}/luarocks ARGS install luassert 1.7.2-0 + COMMAND ${DEPS_BIN_DIR}/luarocks ARGS install ansicolors 1.0.2-3 + COMMAND ${DEPS_BIN_DIR}/luarocks ARGS install penlight 1.0.0-1 + COMMAND ${DEPS_BIN_DIR}/luarocks ARGS install mediator_lua 1.1-3 + COMMAND touch ${DEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps + DEPENDS luarocks) + add_custom_target(stable-busted-deps + DEPENDS ${DEPS_LIB_DIR}/luarocks/rocks/stable-busted-deps) + add_custom_command(OUTPUT ${DEPS_BIN_DIR}/busted COMMAND ${DEPS_BIN_DIR}/luarocks ARGS build busted 2.0.rc4 CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER} - DEPENDS luarocks) + DEPENDS stable-busted-deps) add_custom_target(busted DEPENDS ${DEPS_BIN_DIR}/busted) @@ -244,7 +258,7 @@ if(USE_BUNDLED_LUAROCKS) add_custom_target(nvim-client DEPENDS ${DEPS_LIB_DIR}/luarocks/rocks/nvim-client) - list(APPEND THIRD_PARTY_DEPS busted lua-messagepack lpeg nvim-client) + list(APPEND THIRD_PARTY_DEPS stable-busted-deps busted lua-messagepack lpeg nvim-client) endif() add_custom_target(third-party ALL |