diff options
author | Soumith Chintala <soumith@gmail.com> | 2014-03-21 03:48:41 +0400 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2014-03-21 03:48:41 +0400 |
commit | f4a2e7fed1c1d587f5353b9e04b4b6f1ac668d5e (patch) | |
tree | ec080f58a0ddac397ceffb360634cf559177d55e | |
parent | bf26797742956ae15f84b3955b0e8bd0c6fb106e (diff) |
adding rockspec and a require
-rw-r--r-- | graph-scm-1.rockspec | 28 | ||||
-rw-r--r-- | init.lua | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/graph-scm-1.rockspec b/graph-scm-1.rockspec new file mode 100644 index 0000000..c16b42a --- /dev/null +++ b/graph-scm-1.rockspec @@ -0,0 +1,28 @@ +package = "graph" +version = "scm-1" + +source = { + url = "git://github.com/torch/graph", + tag = "master" +} + +description = { + summary = "Graph package for Torch", + homepage = "https://github.com/torch/graph", + license = "UNKNOWN" +} + +dependencies = { + "torch >= 7.0" +} + +build = { + type = "command", + build_command = [[ +cmake -E make_directory build; +cd build; +cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$(LUA_BINDIR)/.." -DCMAKE_INSTALL_PREFIX="$(PREFIX)"; +$(MAKE) + ]], + install_command = "cd build && $(MAKE) install" +} @@ -1,3 +1,4 @@ +require 'torch' graph = {} |