From 4571847cbf749e9caff6c6f1ad3cd6777b04d4e7 Mon Sep 17 00:00:00 2001 From: Camillo Lugaresi Date: Sun, 21 Jan 2018 18:31:31 -0800 Subject: Add Moses dependency The distro is missing the Moses package, and the included version of luarocks is unable to download it, so installation fails. This patch fixes the issue by adding a submodule for moses and installing it before nn. --- .gitmodules | 3 +++ extra/moses | 1 + install.sh | 1 + 3 files changed, 5 insertions(+) create mode 160000 extra/moses diff --git a/.gitmodules b/.gitmodules index 33f2763..e0b8950 100644 --- a/.gitmodules +++ b/.gitmodules @@ -82,3 +82,6 @@ [submodule "extra/lua-cjson"] path = extra/lua-cjson url = https://github.com/mpx/lua-cjson +[submodule "extra/moses"] + path = extra/moses + url = https://github.com/Yonaba/Moses.git diff --git a/extra/moses b/extra/moses new file mode 160000 index 0000000..ded0a9b --- /dev/null +++ b/extra/moses @@ -0,0 +1 @@ +Subproject commit ded0a9b773bb78ded2c1dd5da721bbee4a3e32c6 diff --git a/install.sh b/install.sh index 788a8b7..ad65434 100755 --- a/install.sh +++ b/install.sh @@ -122,6 +122,7 @@ cd ${THIS_DIR}/pkg/dok && $PREFIX/bin/luarocks make rocks/dok-scm-1.rocksp cd ${THIS_DIR}/exe/trepl && $PREFIX/bin/luarocks make trepl-scm-1.rockspec || exit 1 cd ${THIS_DIR}/pkg/sys && $PREFIX/bin/luarocks make sys-1.1-0.rockspec || exit 1 cd ${THIS_DIR}/pkg/xlua && $PREFIX/bin/luarocks make xlua-1.0-0.rockspec || exit 1 +cd ${THIS_DIR}/extra/moses && $PREFIX/bin/luarocks make rockspec/moses-1.6.1-1.rockspec || exit 1 cd ${THIS_DIR}/extra/nn && $PREFIX/bin/luarocks make rocks/nn-scm-1.rockspec || exit 1 cd ${THIS_DIR}/extra/graph && $PREFIX/bin/luarocks make rocks/graph-scm-1.rockspec || exit 1 cd ${THIS_DIR}/extra/nngraph && $PREFIX/bin/luarocks make nngraph-scm-1.rockspec || exit 1 -- cgit v1.2.3