[140260] trunk/dports/devel/lua-luabitop

devans at macports.org devans at macports.org
Mon Sep 14 21:02:25 PDT 2015


Revision: 140260
          https://trac.macports.org/changeset/140260
Author:   devans at macports.org
Date:     2015-09-14 21:02:25 -0700 (Mon, 14 Sep 2015)
Log Message:
-----------
lua-luabitop: patch to build with lua 5.3, configure lua 5.3 installation paths, cmake out of source, increment revision.

Modified Paths:
--------------
    trunk/dports/devel/lua-luabitop/Portfile

Added Paths:
-----------
    trunk/dports/devel/lua-luabitop/files/
    trunk/dports/devel/lua-luabitop/files/patch-bit.c.diff

Modified: trunk/dports/devel/lua-luabitop/Portfile
===================================================================
--- trunk/dports/devel/lua-luabitop/Portfile	2015-09-14 21:46:10 UTC (rev 140259)
+++ trunk/dports/devel/lua-luabitop/Portfile	2015-09-15 04:02:25 UTC (rev 140260)
@@ -6,6 +6,7 @@
 PortGroup           github 1.0
 
 github.setup        LuaDist luabitop 1.0.2
+revision            1
 name                lua-luabitop
 license             MIT
 categories          devel
@@ -20,7 +21,17 @@
 checksums           rmd160  4084b571368cbbaa5f5eaf289d4723167ff92eb3 \
                     sha256  f1773083ece10ab688d72de5b4f24deaad27e547cffe64c51e95e90d0de6178f
 
+cmake.out_of_source yes
+
 depends_build-append \
                     port:pkgconfig
 
 depends_lib         port:lua
+
+patchfiles          patch-bit.c.diff
+
+set lua_version     5.3
+
+configure.args-append \
+                    -DINSTALL_CMOD=${prefix}/lib/lua/${lua_version} \
+                    -DINSTALL_LMOD=${prefix}/share/lua/${lua_version}

Added: trunk/dports/devel/lua-luabitop/files/patch-bit.c.diff
===================================================================
--- trunk/dports/devel/lua-luabitop/files/patch-bit.c.diff	                        (rev 0)
+++ trunk/dports/devel/lua-luabitop/files/patch-bit.c.diff	2015-09-15 04:02:25 UTC (rev 140260)
@@ -0,0 +1,13 @@
+--- bit.c.orig	2015-09-14 19:27:44.000000000 -0700
++++ bit.c	2015-09-14 19:29:02.000000000 -0700
+@@ -32,6 +32,10 @@
+ #include "lua.h"
+ #include "lauxlib.h"
+ 
++#ifndef LUA_NUMBER_DOUBLE
++#define LUA_NUMBER_DOUBLE
++#endif
++ 
+ #ifdef _MSC_VER
+ /* MSVC is stuck in the last century and doesn't have C99's stdint.h. */
+ typedef __int32 int32_t;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150914/1869b711/attachment.html>


More information about the macports-changes mailing list