Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/optim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2012-11-23 07:27:22 +0400
committerClement Farabet <clement.farabet@gmail.com>2012-11-23 07:27:22 +0400
commit0360233ed8b606369537c1b5ee0bd9099a67ac85 (patch)
tree97aaf805c412ab45e2931e6673c5cef9e4a6d43f
parent907296ae976acb61df07e691d50d8a1b54693e52 (diff)
Rockspec1.0-0
-rw-r--r--CMakeLists.txt5
-rw-r--r--optim-1.0-0.rockspec28
2 files changed, 33 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d1c26c..58070a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,11 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
CMAKE_POLICY(VERSION 2.6)
+IF(LUAROCKS_PREFIX)
+ MESSAGE(STATUS "Installing Torch through Luarocks")
+ STRING(REGEX REPLACE "(.*)lib/luarocks/rocks.*" "\\1" CMAKE_INSTALL_PREFIX "${LUAROCKS_PREFIX}")
+ MESSAGE(STATUS "Prefix inferred from Luarocks: ${CMAKE_INSTALL_PREFIX}")
+ENDIF()
FIND_PACKAGE(Torch REQUIRED)
SET(src)
diff --git a/optim-1.0-0.rockspec b/optim-1.0-0.rockspec
new file mode 100644
index 0000000..ebbc8fc
--- /dev/null
+++ b/optim-1.0-0.rockspec
@@ -0,0 +1,28 @@
+package = "optim"
+version = "1.0-0"
+
+source = {
+ url = "git://github.com/koraykv/optim",
+ tag = "1.0-0"
+}
+
+description = {
+ summary = "An optimization library for Torch.",
+ detailed = [[
+This package contains several optimization routines for Torch.
+ ]],
+ homepage = "https://github.com/koraykv/optim",
+ license = "BSD"
+}
+
+dependencies = {
+ "torch >= 7.0",
+ "sys >= 1.0",
+}
+
+build = {
+ type = "cmake",
+ variables = {
+ LUAROCKS_PREFIX = "$(PREFIX)"
+ }
+}