[107591] trunk/dports/graphics/podofo
devans at macports.org
devans at macports.org
Tue Jul 2 18:59:40 PDT 2013
Revision: 107591
https://trac.macports.org/changeset/107591
Author: devans at macports.org
Date: 2013-07-02 18:59:40 -0700 (Tue, 02 Jul 2013)
Log Message:
-----------
podofo: lua 5.2 API fixes, closes #39148.
Modified Paths:
--------------
trunk/dports/graphics/podofo/Portfile
Added Paths:
-----------
trunk/dports/graphics/podofo/files/patch-lua-tools.diff
Modified: trunk/dports/graphics/podofo/Portfile
===================================================================
--- trunk/dports/graphics/podofo/Portfile 2013-07-03 01:37:37 UTC (rev 107590)
+++ trunk/dports/graphics/podofo/Portfile 2013-07-03 01:59:40 UTC (rev 107591)
@@ -7,6 +7,7 @@
name podofo
version 0.9.2
+revision 1
license GPL-2 LGPL-2
categories graphics
maintainers devans openmaintainer
@@ -42,7 +43,8 @@
conflicts_build ${name}
patchfiles patch-src-base-PdfEncrypt.cpp.diff \
- patch-cmake-modules-FindFREETYPE.cmake.diff
+ patch-cmake-modules-FindFREETYPE.cmake.diff \
+ patch-lua-tools.diff
compiler.blacklist clang
use_parallel_build no
Added: trunk/dports/graphics/podofo/files/patch-lua-tools.diff
===================================================================
--- trunk/dports/graphics/podofo/files/patch-lua-tools.diff (rev 0)
+++ trunk/dports/graphics/podofo/files/patch-lua-tools.diff 2013-07-03 01:59:40 UTC (rev 107591)
@@ -0,0 +1,33 @@
+diff -ur tools.orig/podofocolor/luaconverter.cpp tools/podofocolor/luaconverter.cpp
+--- tools.orig/podofocolor/luaconverter.cpp 2010-12-29 10:08:31.000000000 -0800
++++ tools/podofocolor/luaconverter.cpp 2013-07-02 18:22:36.000000000 -0700
+@@ -44,7 +44,7 @@
+ LuaMachina::LuaMachina()
+ {
+ /* Init the Lua interpreter */
+- L = lua_open();
++ L = luaL_newstate();
+ if (!L)
+ {
+ throw std::runtime_error("Whoops! Failed to open lua!");
+@@ -117,7 +117,7 @@
+ size_t len;
+
+ luaL_checktype(m_machina.State(), 1, LUA_TTABLE);
+- len = luaL_getn( m_machina.State(), -1 );
++ len = luaL_len( m_machina.State(), -1 );
+ // Lua 5.1 only
+ //len = lua_objlen( m_machina.State(), -1 );
+
+diff -ur tools.orig/podofoimpose/planreader_lua.cpp tools/podofoimpose/planreader_lua.cpp
+--- tools.orig/podofoimpose/planreader_lua.cpp 2011-06-18 04:52:58.000000000 -0700
++++ tools/podofoimpose/planreader_lua.cpp 2013-07-02 18:24:00.000000000 -0700
+@@ -23,7 +23,7 @@
+ LuaMachina::LuaMachina()
+ {
+ /* Init the Lua interpreter */
+- L = lua_open();
++ L = luaL_newstate();
+ if (!L)
+ {
+ throw std::runtime_error("Whoops! Failed to open lua!");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130702/b678ebf4/attachment.html>
More information about the macports-changes
mailing list