diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-11-29 21:34:37 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-12-06 02:38:23 (GMT) |
commit | 43cb3196e67720ff6cd6bd26e10269dddc5fa3ff (patch) | |
tree | 6fb300fbf21053d9aa0085d425e528f9ee13fa98 /plugins/luarocks/lpeg.mk | |
parent | 08488f9ecc3a9de115b3c68f059f493e331fc60b (diff) | |
download | mxe-43cb3196e67720ff6cd6bd26e10269dddc5fa3ff.zip mxe-43cb3196e67720ff6cd6bd26e10269dddc5fa3ff.tar.gz mxe-43cb3196e67720ff6cd6bd26e10269dddc5fa3ff.tar.bz2 |
add plugin luarocks
LuaRocks plugin adds
* package "luarocks"
* several packages with rocks (lpeg, luasocket, llthreads2, lua-rapidjson)
* plugins/luarocks/README.md
* virtual rock "all-rocks" depending on all rocks
* short test for rocks
Diffstat (limited to 'plugins/luarocks/lpeg.mk')
-rw-r--r-- | plugins/luarocks/lpeg.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/luarocks/lpeg.mk b/plugins/luarocks/lpeg.mk new file mode 100644 index 0000000..1fbb676 --- /dev/null +++ b/plugins/luarocks/lpeg.mk @@ -0,0 +1,23 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := lpeg +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.0.0 +$(PKG)_CHECKSUM := 10190ae758a22a16415429a9eb70344cf29cbda738a6962a9f94a732340abf8e +$(PKG)_SUBDIR := lpeg-$($(PKG)_VERSION) +$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz +$(PKG)_URL := http://www.inf.puc-rio.br/~roberto/$(PKG)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc luarocks + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://www.inf.puc-rio.br/~roberto/lpeg/' | \ + $(SED) -n 's,.*lpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ + sort -h | tail -1 +endef + +# shared-only because luarocks is shared-only + +define $(PKG)_BUILD_SHARED + cd '$(1)' && '$(TARGET)-luarocks' make +endef |