[149877] trunk/dports/devel
raimue at macports.org
raimue at macports.org
Tue Jul 5 09:21:22 PDT 2016
Revision: 149877
https://trac.macports.org/changeset/149877
Author: raimue at macports.org
Date: 2016-07-05 09:21:22 -0700 (Tue, 05 Jul 2016)
Log Message:
-----------
devel/lua-mpack:
New port, msgpack for Lua, dependency of neovim
Added Paths:
-----------
trunk/dports/devel/lua-mpack/
trunk/dports/devel/lua-mpack/Portfile
trunk/dports/devel/lua-mpack/files/
trunk/dports/devel/lua-mpack/files/patch-lua53.diff
Added: trunk/dports/devel/lua-mpack/Portfile
===================================================================
--- trunk/dports/devel/lua-mpack/Portfile (rev 0)
+++ trunk/dports/devel/lua-mpack/Portfile 2016-07-05 16:21:22 UTC (rev 149877)
@@ -0,0 +1,43 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+
+github.setup tarruda libmpack 1.0.2
+name lua-mpack
+set lua_version 5.3
+categories devel lua
+platforms darwin
+maintainers nomaintainer
+license MIT
+
+description msgpack for Lua
+long_description libmpack is a simple implementation of msgpack. \
+ This port provides bindings for Lua.
+
+checksums rmd160 101a8a1321b144ff107b437ab2aa49cde60299f0 \
+ sha256 d0b44fc0d8282fe296fcc2d2ea790ff0714969f6672b7d673bd8b3b8bab64e99
+
+depends_build port:libtool
+
+patchfiles patch-lua53.diff
+patch.pre_args -p1
+
+use_configure no
+
+build.args VERBOSE=1 \
+ CC="${configure.cc} [get_canonical_archflags]" \
+ config=release \
+ LIBDIR=${prefix}/lib
+
+build {
+ system -W ${worksrcpath}/binding/lua/ "${configure.cc} [get_canonical_archflags] ${configure.optflags} -ansi -shared -I${prefix}/include -L${prefix}/lib -o mpack.so lmpack.c -llua"
+}
+
+destroot {
+ xinstall -d -m 0755 ${destroot}${prefix}/lib/lua/${lua_version}
+ xinstall -m 0644 ${worksrcpath}/binding/lua/mpack.so ${destroot}${prefix}/lib/lua/${lua_version}/
+ xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 0644 ${worksrcpath}/LICENSE-MIT ${destroot}${prefix}/share/doc/${name}/
+}
Property changes on: trunk/dports/devel/lua-mpack/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/lua-mpack/files/patch-lua53.diff
===================================================================
--- trunk/dports/devel/lua-mpack/files/patch-lua53.diff (rev 0)
+++ trunk/dports/devel/lua-mpack/files/patch-lua53.diff 2016-07-05 16:21:22 UTC (rev 149877)
@@ -0,0 +1,26 @@
+From 370a1db68ecae12ce6941b15519347e378cace25 Mon Sep 17 00:00:00 2001
+From: Kohei Yoshitomi <anergy.25110321 at gmail.com>
+Date: Tue, 26 Apr 2016 16:54:14 +0900
+Subject: [PATCH] [lua] support lua 5.2 and 5.3
+
+---
+ binding/lua/lmpack.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/binding/lua/lmpack.c b/binding/lua/lmpack.c
+index 7e049dd..251d7f1 100644
+--- a/binding/lua/lmpack.c
++++ b/binding/lua/lmpack.c
+@@ -29,6 +29,12 @@
+ #define SESSION_META_NAME "mpack.Session"
+ #define NIL_NAME "mpack.Nil"
+
++#if LUA_VERSION_NUM > 501
++typedef luaL_Reg luaL_reg;
++#define luaL_register(L, name, lreg) (luaL_setfuncs((L), (lreg), 0))
++#define lua_objlen(L, idx) (lua_rawlen(L, (idx)))
++#endif
++
+ typedef struct {
+ lua_State *L;
+ mpack_parser_t *parser;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160705/449a59ec/attachment-0001.html>
More information about the macports-changes
mailing list