From 7e017afdbf09d8e2fb5cba8eb25f8f684a3a06a4 Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Sat, 28 Aug 2010 14:01:46 +0800 Subject: [PATCH 1/3] Removing deprecated UPSTREAM/DOWNSTREAM symbols Now 2.0.8 has been released, I don't see any real need to keep them there. Revert "Adding support for zmq 2.0.7 with a hacky preprocessor check" This reverts commit 9d38da847d47a2a3699f1836ef023e534f878234. --- zmq.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zmq.c b/zmq.c index a9a8175..46d6d3b 100644 --- a/zmq.c +++ b/zmq.c @@ -357,14 +357,8 @@ LUALIB_API int luaopen_zmq(lua_State *L) set_zmq_const(REP); set_zmq_const(XREQ); set_zmq_const(XREP); - -#if defined(ZMQ_PULL) && defined(ZMQ_PUSH) set_zmq_const(PULL); set_zmq_const(PUSH); -#else - set_zmq_const(UPSTREAM); - set_zmq_const(DOWNSTREAM); -#endif set_zmq_const(HWM); set_zmq_const(SWAP); From e5b06192065caa07927a0e6d675660a984167e3b Mon Sep 17 00:00:00 2001 From: Norman Clarke Date: Wed, 8 Sep 2010 21:27:21 +0800 Subject: [PATCH 2/3] Added rockspecs. --- rockspecs/lua-zmq-0.1.0-0.rockspec | 22 ++++++++++++++++++++++ rockspecs/lua-zmq-scm-0.rockspec | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 rockspecs/lua-zmq-0.1.0-0.rockspec create mode 100644 rockspecs/lua-zmq-scm-0.rockspec diff --git a/rockspecs/lua-zmq-0.1.0-0.rockspec b/rockspecs/lua-zmq-0.1.0-0.rockspec new file mode 100644 index 0000000..9e93bf7 --- /dev/null +++ b/rockspecs/lua-zmq-0.1.0-0.rockspec @@ -0,0 +1,22 @@ +package = "lua-zmq" +version = "0.1.0-0" +source = { + url = "http://example.org/package.tar.gz" +} +description = { + summary = "Lua bindings to zeromq2", + homepage = "http://github.com/iamaleksey/lua-zmq", + license = "MIT/X11" +} +dependencies = { + "lua >= 5.1" +} +build = { + type = "builtin", + modules = { + zmq = { + sources = {"zmq.c"}, + libraries = {"zmq"} + } + } +} diff --git a/rockspecs/lua-zmq-scm-0.rockspec b/rockspecs/lua-zmq-scm-0.rockspec new file mode 100644 index 0000000..a78a58c --- /dev/null +++ b/rockspecs/lua-zmq-scm-0.rockspec @@ -0,0 +1,22 @@ +package = "lua-zmq" +version = "scm-0" +source = { + url = "git://github.com/iamaleksey/lua-zmq.git" +} +description = { + summary = "Lua bindings to zeromq2", + homepage = "http://github.com/iamaleksey/lua-zmq", + license = "MIT/X11" +} +dependencies = { + "lua >= 5.1" +} +build = { + type = "builtin", + modules = { + zmq = { + sources = {"zmq.c"}, + libraries = {"zmq"} + } + } +} From d5dfd070d8dae10f60f12b00f07e2b86c73ee84b Mon Sep 17 00:00:00 2001 From: Norman Clarke Date: Wed, 8 Sep 2010 21:37:15 +0800 Subject: [PATCH 3/3] Added URL and md5 of archive. --- rockspecs/lua-zmq-0.1.0-0.rockspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rockspecs/lua-zmq-0.1.0-0.rockspec b/rockspecs/lua-zmq-0.1.0-0.rockspec index 9e93bf7..277c19f 100644 --- a/rockspecs/lua-zmq-0.1.0-0.rockspec +++ b/rockspecs/lua-zmq-0.1.0-0.rockspec @@ -1,7 +1,8 @@ package = "lua-zmq" version = "0.1.0-0" source = { - url = "http://example.org/package.tar.gz" + url = "http://github.com/downloads/norman/lua-zmq/lua-zmq-0.1.0.tar.gz", + md5 = "64a6fdaef9992bee145d18c458da2afb" } description = { summary = "Lua bindings to zeromq2",