Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2015 20:41:02 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        Beat =?utf-8?B?R8OkdHpp?= <beat@FreeBSD.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: www/elinks && JavaScript
Message-ID:  <20150520184102.GA2200@c720-r276659>
In-Reply-To: <B98E27D2-08ED-4F1F-8585-159BF297E7DF@FreeBSD.org>
References:  <20150520131459.GA23645@c720-r276659> <B98E27D2-08ED-4F1F-8585-159BF297E7DF@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
El día Wednesday, May 20, 2015 a las 06:22:46PM +0300, Beat Gätzi escribió:

> > I'm trying to use ports/www/elinks and to configure it to understand
> > JavaScript, but it does not; for example this test page
> > 
> > elinks http://javatester.org/javascript.html
> > 
> > says that JS is not enabled; I think it is. It has it in the options
> > compiled for:
> 
> As far as I know elinks uses spidermonkey for javascript. Could
> you please check if spidermonkey is installed and if yes, please check
> if it is recognised during configure. Check for something like
> "ECMAScript (JavaScript)”.

$ pkg info spidermonke*
spidermonkey17-1.7.0_1

$ pkg info spidermonke*
spidermonkey17-1.7.0_1

$ pwd
/usr/ports/www/elinks/work/elinks-0.11.7
$ grep -i ECMAScript config.*
config.h:/* Define if you want: ECMAScript (JavaScript) support */
config.h:#define CONFIG_ECMASCRIPT 1
config.h.in:/* Define if you want: ECMAScript (JavaScript) support */
config.h.in:#undef CONFIG_ECMASCRIPT
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:| #define CONFIG_ECMASCRIPT 1
config.log:CONFIG_ECMASCRIPT='yes'
config.log:#define CONFIG_ECMASCRIPT 1
config.status:s,@CONFIG_ECMASCRIPT@,|#_!!_#|yes,g
config.status:s,^\([     #]*\)[^         ]*\([   ]*CONFIG_ECMASCRIPT\)[
(].*,\1define\2 1 ,

I saw it as well while making it:

# make 
...
The following feature summary has been saved to features.log
Feature summary:
Documentation Tools ............. Pod2HTML
Manual Formats .................. no
Man Page Formats ................ no
...
ECMAScript (JavaScript) ......... SpiderMonkey
Browser scripting ............... SpiderMonkey
...

Thanks

	matthias

-- 
Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211    +49-176-38902045
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150520184102.GA2200>