Sun Sep 15 20:07:07 2013 UTC ()
Update onscripter to 20130812.
pkgsrc changes:
- add patch-LUAHandler.cpp to adapt to lua 5.2 API changes
Upstream Changes (only Japanese log available)
20130812:
- make savescreenshot and savescreenshot2 insns allow any filenames,
i.e. allow filenames without .bmp extension as the original
ONScripter does.
(tsutsui)
diff -r1.27 -r1.28 pkgsrc/games/onscripter/Makefile
diff -r1.20 -r1.21 pkgsrc/games/onscripter/distinfo
diff -r0 -r1.1 pkgsrc/games/onscripter/patches/patch-LUAHandler.cpp
--- pkgsrc/games/onscripter/Makefile 2013/07/04 21:27:57 1.27
+++ pkgsrc/games/onscripter/Makefile 2013/09/15 20:07:07 1.28
| @@ -1,18 +1,17 @@ | | | @@ -1,18 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.27 2013/07/04 21:27:57 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.28 2013/09/15 20:07:07 tsutsui Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= onscripter-20130411 | | 4 | DISTNAME= onscripter-20130812 |
5 | PKGREVISION= 1 | | | |
6 | CATEGORIES= games | | 5 | CATEGORIES= games |
7 | MASTER_SITES= http://onscripter.sourceforge.jp/ | | 6 | MASTER_SITES= http://onscripter.sourceforge.jp/ |
8 | | | 7 | |
9 | MAINTAINER= tsutsui@NetBSD.org | | 8 | MAINTAINER= tsutsui@NetBSD.org |
10 | HOMEPAGE= http://onscripter.sourceforge.jp/onscripter.html | | 9 | HOMEPAGE= http://onscripter.sourceforge.jp/onscripter.html |
11 | COMMENT= Interpreter to execute a script for NScripter | | 10 | COMMENT= Interpreter to execute a script for NScripter |
12 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
13 | | | 12 | |
14 | USE_LANGUAGES= c++ | | 13 | USE_LANGUAGES= c++ |
15 | | | 14 | |
16 | INSTALLATION_DIRS= bin \ | | 15 | INSTALLATION_DIRS= bin \ |
17 | share/doc/onscripter | | 16 | share/doc/onscripter |
18 | | | 17 | |
--- pkgsrc/games/onscripter/distinfo 2013/06/14 15:43:49 1.20
+++ pkgsrc/games/onscripter/distinfo 2013/09/15 20:07:07 1.21
| @@ -1,6 +1,7 @@ | | | @@ -1,6 +1,7 @@ |
1 | $NetBSD: distinfo,v 1.20 2013/06/14 15:43:49 tsutsui Exp $ | | 1 | $NetBSD: distinfo,v 1.21 2013/09/15 20:07:07 tsutsui Exp $ |
2 | | | 2 | |
3 | SHA1 (onscripter-20130411.tar.gz) = 865e90494475919b782983b1d61b475943d09735 | | 3 | SHA1 (onscripter-20130812.tar.gz) = 09ff1eaf6f2384fc1fb4994356fd75fec0c7813d |
4 | RMD160 (onscripter-20130411.tar.gz) = 8f7b828b6424581f5a24f3751e93b8e1bf0b1588 | | 4 | RMD160 (onscripter-20130812.tar.gz) = 2ea32e8bc46f8d3df41228df14099a999017097a |
5 | Size (onscripter-20130411.tar.gz) = 233268 bytes | | 5 | Size (onscripter-20130812.tar.gz) = 233385 bytes |
| | | 6 | SHA1 (patch-LUAHandler.cpp) = ccd9782c93ec2da3839f8632209dae1ea7090c3f |
6 | SHA1 (patch-Makefile.Linux) = 6aa721529ed7f733a73fb4f6f7a525160d492909 | | 7 | SHA1 (patch-Makefile.Linux) = 6aa721529ed7f733a73fb4f6f7a525160d492909 |
$NetBSD: patch-LUAHandler.cpp,v 1.1 2013/09/15 20:07:07 tsutsui Exp $
- Try to adapt to lua 5.2 API changes.
--- LUAHandler.cpp.orig 2013-08-12 13:58:38.000000000 +0000
+++ LUAHandler.cpp
@@ -559,11 +559,11 @@ void LUAHandler::init(ONScripter *ons, S
this->ons = ons;
this->sh = sh;
- state = lua_open();
+ state = luaL_newstate();
luaL_openlibs(state);
- lua_pushvalue(state, LUA_GLOBALSINDEX);
- luaL_register(state, NULL, lua_lut);
+ lua_pushglobaltable(state);
+ luaL_setfuncs(state, lua_lut, 0);
lua_pushlightuserdata(state, this);
lua_setglobal(state, ONS_LUA_HANDLER_PTR);