mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
#
|
||||
# Copyright (C) 2009-2013 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lua-coxpcall
|
||||
PKG_VERSION:=1.15.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/keplerproject/coxpcall.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=979257892884816c97391dfd7b0a7b30dcc8f479
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/lua-coxpcall
|
||||
SUBMENU:=Lua
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Lua-Coxpcall
|
||||
URL:=https://github.com/keplerproject/coxpcall
|
||||
DEPENDS:=+lua
|
||||
endef
|
||||
|
||||
define Package/lua-coxpcall/description
|
||||
Coxpcall encapsulates the protected calls with a coroutine based loop,
|
||||
so errors can be dealed without the usual pcall/xpcall issues with coroutines.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
# add make variable overrides here
|
||||
MAKE_FLAGS +=
|
||||
|
||||
define Build/Configure
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
T="$(BUILD_VARIANT)" \
|
||||
LUA_DIR="$(PKG_INSTALL_DIR)/usr/lib/lua" \
|
||||
install
|
||||
endef
|
||||
|
||||
define Package/lua-coxpcall/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/coxpcall.lua $(1)/usr/lib/lua
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,lua-coxpcall))
|
||||
@@ -0,0 +1,4 @@
|
||||
--- lua-coxpcall-1.15.0_org/config 1970-01-01 08:00:00.000000000 +0800
|
||||
+++ lua-coxpcall-1.15.0/config 2014-06-04 16:51:55.487547258 +0800
|
||||
@@ -0,0 +1 @@
|
||||
+LUA_DIR ?=$(DESTDIR)/usr/lib/lua
|
||||
Reference in New Issue
Block a user