[MacPorts] #39148: podofo 0.9.2 fails to compile against lua

MacPorts noreply at macports.org
Sun May 19 03:37:46 PDT 2013


#39148: podofo 0.9.2 fails to compile against lua
---------------------------------+--------------------------------
 Reporter:  christian.frisson@…  |      Owner:  macports-tickets@…
     Type:  defect               |     Status:  new
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.1.3
 Keywords:                       |       Port:  podofo
---------------------------------+--------------------------------
 Hi,

 Here's the related podofo ticket:
 http://sourceforge.net/apps/mantisbt/podofo/view.php?id=58

 There is no CMake option to deactivate lua support for podofo.

 Adding the following code in the podofo Portfile solves the issue, worked
 for me on OSX 10.8.3:
 {{{
 pre-configure {
                 system "sed -i '' -e 's:lua_open:luaL_newstate:'
 ${worksrcpath}/tools/podofocolor/luaconverter.cpp"
                 system "sed -i '' -e 's:luaL_getn:luaL_len:'
 ${worksrcpath}/tools/podofocolor/luaconverter.cpp"
                 system "sed -i '' -e 's:lua_open:luaL_newstate:'
 ${worksrcpath}/tools/podofoimpose/planreader_lua.cpp"
 }
 }}}

 Best regards,
 Christian

-- 
Ticket URL: <https://trac.macports.org/ticket/39148>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list