build: LuaRocks: require unzip (#6049)

This commit is contained in:
Matthieu Coudron
2017-02-04 01:03:04 +01:00
committed by Justin M. Keyes
parent 11f2bd5fa3
commit 54293b73d4

View File

@@ -123,6 +123,11 @@ add_custom_target(inspect
list(APPEND THIRD_PARTY_DEPS inspect)
if(USE_BUNDLED_BUSTED)
find_program(UNZIP_PRG unzip)
if(NOT UNZIP_PRG)
message(FATAL_ERROR "'unzip' must be installed to allow for penlight installation")
endif()
add_custom_command(OUTPUT ${HOSTDEPS_LIB_DIR}/luarocks/rocks/penlight/1.3.2-2
COMMAND ${LUAROCKS_BINARY}
ARGS build penlight 1.3.2-2 ${LUAROCKS_BUILDARGS}