forked from koreader/koreader-base
-
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.
tests: don't rely on an external luarocks installation
Build & install the testsuite dependencies ourselves.
- Loading branch information
1 parent
c88c952
commit 1e45429
Showing
16 changed files
with
165 additions
and
10 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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Build in source tree. | ||
set(BINARY_DIR ${SOURCE_DIR}) | ||
|
||
list(APPEND CFG_CMD COMMAND | ||
./configure | ||
--prefix=${STAGING_DIR} | ||
--with-lua=${STAGING_DIR} | ||
) | ||
|
||
list(APPEND BUILD_CMD COMMAND make) | ||
|
||
list(APPEND INSTALL_CMD COMMAND make install) | ||
|
||
# Try to use our compilation flags. | ||
set(LIBFLAGS ${DYNLIB_LDFLAGS}) | ||
foreach(VAR CC CFLAGS LIBFLAGS) | ||
list(APPEND INSTALL_CMD COMMAND ${STAGING_DIR}/bin/luarocks config -- ${VAR} "${${VAR}}") | ||
endforeach() | ||
|
||
external_project( | ||
DOWNLOAD URL ab95865ced3c123908bd2f1fe6843606 | ||
https://github.com/luarocks/luarocks/archive/refs/tags/v3.11.1.tar.gz | ||
CONFIGURE_COMMAND ${CFG_CMD} | ||
BUILD_COMMAND ${BUILD_CMD} | ||
INSTALL_COMMAND ${INSTALL_CMD} | ||
) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spec_rock( | ||
https://luarocks.org/manifests/lunarmodules/busted-2.2.0-1.src.rock | ||
85aa90d2d9d0213fcd8528bc489a3519 | ||
) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spec_rock( | ||
https://luarocks.org/manifests/dhkolf/dkjson-2.8-1.src.rock | ||
4d002b7591658983248f8214e9459e1d | ||
) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
spec_rock( | ||
https://github.com/hoelzro/lua-term/archive/0.08.tar.gz | ||
672b60c1e856129891fe29e23632c032 | ||
ROCKSPEC lua-term-0.8-1.rockspec | ||
) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spec_rock( | ||
https://luarocks.org/manifests/lunarmodules/lua_cliargs-3.0-2.src.rock | ||
cca85e869fac1b42252692693aed0333 | ||
) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spec_rock( | ||
https://luarocks.org/manifests/hisham/luafilesystem-1.8.0-1.src.rock | ||
93bd2cbd66d6fc25ff89920ef9293c6e | ||
) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spec_rock( | ||
https://luarocks.org/manifests/lunarmodules/luassert-1.9.0-1.src.rock | ||
0df52010a5a5f728da0b9b7615a82da6 | ||
) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spec_rock( | ||
https://luarocks.org/manifests/lunarmodules/luasystem-0.4.4-1.src.rock | ||
608a105f844a052e0055800d80e925f8 | ||
) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
spec_rock( | ||
https://github.com/Olivine-Labs/mediator_lua/archive/v1.1.2-0.tar.gz | ||
3ef01fc6ced99f6e4c2a229e91c459bf | ||
ROCKSPEC mediator_lua-1.1.2-0.rockspec | ||
) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spec_rock( | ||
https://luarocks.org/manifests/tieske/penlight-1.14.0-2.src.rock | ||
ab64b4b635e2514db64b4eabfd9d2220 | ||
) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spec_rock( | ||
https://luarocks.org/manifests/lunarmodules/say-1.4.1-3.src.rock | ||
3b776612edf1e659b2a1e95698597e44 | ||
) |