head 1.8; access; symbols pkgsrc-2023Q1:1.7.0.116 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.114 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.112 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.110 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.108 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.106 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.104 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.102 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.100 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.98 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.96 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.92 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.72 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.94 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.90 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.88 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.86 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.84 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.82 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.80 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.78 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.76 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.74 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.70 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.68 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.66 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.64 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.62 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.60 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.58 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.7.0.56 pkgsrc-2015Q3-base:1.7 pkgsrc-2015Q2:1.7.0.54 pkgsrc-2015Q2-base:1.7 pkgsrc-2015Q1:1.7.0.52 pkgsrc-2015Q1-base:1.7 pkgsrc-2014Q4:1.7.0.50 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.7.0.48 pkgsrc-2014Q3-base:1.7 pkgsrc-2014Q2:1.7.0.46 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.7.0.44 pkgsrc-2014Q1-base:1.7 pkgsrc-2013Q4:1.7.0.42 pkgsrc-2013Q4-base:1.7 pkgsrc-2013Q3:1.7.0.40 pkgsrc-2013Q3-base:1.7 pkgsrc-2013Q2:1.7.0.38 pkgsrc-2013Q2-base:1.7 pkgsrc-2013Q1:1.7.0.36 pkgsrc-2013Q1-base:1.7 pkgsrc-2012Q4:1.7.0.34 pkgsrc-2012Q4-base:1.7 pkgsrc-2012Q3:1.7.0.32 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.30 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.28 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.26 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.7.0.24 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.7.0.22 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.20 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.18 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.16 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.14 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.12 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.10 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.8 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.7.0.6 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.7.0.4 pkgsrc-2009Q1-base:1.7 pkgsrc-2008Q4:1.7.0.2 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.6.0.10 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.8 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.6 pkgsrc-2008Q2-base:1.6 cwrapper:1.6.0.4 pkgsrc-2008Q1:1.6.0.2 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.5.0.12 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.10 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.8 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.6 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.4 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.2 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.2.0.20 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.18 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.16 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.14 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.12 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.10 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.8 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.6 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.4 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.2 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.1.0.2 pkgsrc-2003Q4-base:1.1; locks; strict; comment @# @; 1.8 date 2023.04.13.13.55.56; author wiz; state dead; branches; next 1.7; commitid 1mMto8M13PmM6XkE; 1.7 date 2008.11.06.08.33.31; author bjs; state Exp; branches; next 1.6; 1.6 date 2008.01.09.03.48.07; author bjs; state Exp; branches; next 1.5; 1.5 date 2006.09.06.15.14.34; author abs; state Exp; branches; next 1.4; 1.4 date 2006.09.04.20.23.30; author abs; state Exp; branches; next 1.3; 1.3 date 2006.08.14.22.38.24; author wiz; state Exp; branches; next 1.2; 1.2 date 2004.01.22.11.07.28; author recht; state dead; branches; next 1.1; 1.1 date 2003.04.29.23.28.45; author jtb; state Exp; branches; next ; desc @@ 1.8 log @elinks: remove Development upstream stopped in 2012, broken on very many platforms, fork-successor felinks is in pkgsrc - use that. @ text @$NetBSD: patch-ab,v 1.7 2008/11/06 08:33:31 bjs Exp $ --- src/scripting/lua/core.c.orig 2008-09-21 04:45:22.000000000 -0400 +++ src/scripting/lua/core.c @@@@ -658,7 +658,7 @@@@ do_hooks_file(LS, unsigned char *prefix, if (file_can_read(file)) { int oldtop = lua_gettop(S); - if (lua_dofile(S, file) != 0) + if (luaL_dofile(S, file) != 0) sleep(3); /* Let some time to see error messages. */ lua_settop(S, oldtop); } @@@@ -669,13 +669,24 @@@@ do_hooks_file(LS, unsigned char *prefix, void init_lua(struct module *module) { - L = lua_open(); - - luaopen_base(L); - luaopen_table(L); - luaopen_io(L); - luaopen_string(L); - luaopen_math(L); + static const luaL_Reg lualibs[] = { + {"", luaopen_base}, + {LUA_TABLIBNAME, luaopen_table}, + {LUA_IOLIBNAME, luaopen_io}, + {LUA_OSLIBNAME, luaopen_os}, + {LUA_STRLIBNAME, luaopen_string}, + {LUA_MATHLIBNAME, luaopen_math}, + {NULL, NULL} + }; + const luaL_Reg *lib = lualibs; + + L = lua_open(); + + for (; lib->func; lib++) { + lua_pushcfunction(L, lib->func); + lua_pushstring(L, lib->name); + lua_call(L, 1, 0); + } lua_register(L, LUA_ALERT, l_alert); lua_register(L, "current_url", l_current_url); @@@@ -780,7 +791,7 @@@@ handle_ret_eval(struct session *ses) int oldtop = lua_gettop(L); if (prepare_lua(ses) == 0) { - lua_dostring(L, expr); + luaL_dostring(L, expr); lua_settop(L, oldtop); finish_lua(); } @ 1.7 log @Update to elinks-0.12pre2. Kerberos support has been added, as well as support for boehm-gc and utf8. Myriad bug fixes. I've switched the javascript support library over too lang/see, as it seems to work better. If a release does not come out by the next branch, I will package a snapshot, as it seems like they've fixed even more bugs in the development tree. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.6 2008/01/09 03:48:07 bjs Exp $ @ 1.6 log @ Update to current 0.11 branch as of 2008/01/09. Too many changes/fixes to list here; one may check the log at (see the elinks-0.11 branch). There should be a 0.11.4 release out fairly soon. While here, add two patches (from debian maintainer): one to ensure that its gettext doesn't look for files in ../po/, and the other to disable transparency by default. Bump revision. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.5 2006/09/06 15:14:34 abs Exp $ d3 1 a3 1 --- src/scripting/lua/core.c.orig 2008-01-08 18:35:08.000000000 -0500 d5 1 a5 1 @@@@ -641,7 +641,7 @@@@ do_hooks_file(LS, unsigned char *prefix, d14 1 a14 1 @@@@ -652,13 +652,24 @@@@ do_hooks_file(LS, unsigned char *prefix, d46 1 a46 1 @@@@ -763,7 +774,7 @@@@ handle_ret_eval(struct session *ses) @ 1.5 log @Update elinks to 0.11.1nb5 Previous version committed incorrect patch @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2006/09/04 20:23:30 abs Exp $ d3 1 a3 1 --- src/scripting/lua/core.c.orig 2006-01-29 13:10:39.000000000 +0000 d5 1 a5 1 @@@@ -633,7 +633,7 @@@@ do_hooks_file(LS, unsigned char *prefix, d14 1 a14 1 @@@@ -644,13 +644,24 @@@@ do_hooks_file(LS, unsigned char *prefix, d46 1 a46 1 @@@@ -755,7 +766,7 @@@@ handle_ret_eval(struct session *ses) @ 1.4 log @Update elinks to 0.11.1nb4: The API for lua changed such that old style initialisations would compile fine but fail at runtime which is a touch unelpful. Adjust for new API. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2006/08/14 22:38:24 wiz Exp $ d3 1 a3 1 --- src/scripting/lua/core.c.orig 2006-09-04 21:19:38.000000000 +0100 d5 10 a14 1 @@@@ -644,23 +644,24 @@@@ do_hooks_file(LS, unsigned char *prefix, d18 7 a24 9 - static const luaL_reg lualibs[] = { - { "base", luaopen_base }, - { "table", luaopen_table }, - { "io", luaopen_io }, - { "string", luaopen_string }, - { "math", luaopen_math }, - { NULL, NULL } - }; - const luaL_reg *lib; d35 3 a37 8 L = lua_open(); - for (lib = lualibs; lib->func != NULL; lib++) { - lib->func(l); /* Open the library */ - /* Flush stack to ignore any result from the library load */ - lua_settop(l, 0); - } d46 9 @ 1.3 log @Adapt to lua-5.1.1. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- src/scripting/lua/core.c.orig 2006-01-29 13:10:39.000000000 +0000 d5 23 a27 3 @@@@ -633,7 +633,7 @@@@ do_hooks_file(LS, unsigned char *prefix, if (file_can_read(file)) { int oldtop = lua_gettop(S); d29 1 a29 7 - if (lua_dofile(S, file) != 0) + if (luaL_dofile(S, file) != 0) sleep(3); /* Let some time to see error messages. */ lua_settop(S, oldtop); } @@@@ -755,7 +755,7 @@@@ handle_ret_eval(struct session *ses) int oldtop = lua_gettop(L); d31 13 a43 6 if (prepare_lua(ses) == 0) { - lua_dostring(L, expr); + luaL_dostring(L, expr); lua_settop(L, oldtop); finish_lua(); } @ 1.2 log @update to ELinks 0.9.0 based upon the version from pkgsrc-wip by Bruce J.A. Nourish and PR pkg/24191 by M.Negovanovic * used gettext for internationalization * support for background document colors * tabs support * new MIME subsystem adding mimetypes files support * local CGI support * Guile scripting extensions * HTML meta refresh * forms history * 256 colors support * regex searches * cookies manager, cache manager and download manager * marks support * displaying URIs in plain documents as links * SMB protocol support (requires smbclient) * builtin user prefixes support (enter 'gg' or 'gg:elinks' to the goto dialog) * HTTPS proxy support * typeahead searches support (press '#') See ChangeLog for a complete list of changes, bugfixes and new features. Since some of the new features (like color support) could be disliked by current users of ELinks the old version will be reimported as elink04. As suggested by wiz@@ in http://mail-index.netbsd.org/tech-pkg/2004/01/04/0039.html. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 2003/04/29 23:28:45 jtb Exp $ d3 5 a7 5 --- src/lua/core.c.orig +++ src/lua/core.c @@@@ -15,8 +15,8 @@@@ #include #endif d9 7 a15 6 -#include -#include +#include +#include #include "elinks.h" d17 6 @ 1.1 log @Oops! Forgot to cvs add these. @ text @d1 1 a1 1 $NetBSD$ @