Skip Menu |

This queue is for tickets about the JavaScript CPAN distribution.

Report information
The Basics
Id: 26763
Status: open
Priority: 0/
Queue: JavaScript

People
Owner: Nobody in particular
Requestors: dom [...] happygiraffe.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.03
Fixed in: (no value)



Subject: Finding SpiderMonkey with MacPorts
In MacPorts (the new version of DarwinPorts), it looks like they've moved the location of the SpiderMonkey include files. The attached patch detects this.
Subject: JavaScript-macports.patch
--- Makefile.PL.orig 2007-04-28 10:06:12.000000000 +0100 +++ Makefile.PL 2007-04-28 10:06:38.000000000 +0100 @@ -75,6 +75,10 @@ push @incs, "/opt/local/include/spidermonkey"; push @libs, "/opt/local/lib"; } +elsif (-d "/opt/local/include/js") { + push @incs, "/opt/local/include/js"; + push @libs, "/opt/local/lib"; +} # Override with $ENV{JS_LIB} and $ENV{JS_INC} if (exists $ENV{JS_LIB}) {
On Sat Apr 28 08:03:46 2007, HDM wrote: Show quoted text
> In MacPorts (the new version of DarwinPorts), it looks like they've > moved the location of the SpiderMonkey include files. The attached > patch detects this.
Applying the patch from HDM gives me problems with NSPR headers. This new patch makes JavaScript.pm work for me.
--- a/Makefile.PL 2007-04-28 10:06:12.000000000 +0100 +++ b/Makefile.PL 2007-04-28 10:06:38.000000000 +0100 @@ -75,6 +75,10 @@ push @incs, "/opt/local/include/spidermonkey"; push @libs, "/opt/local/lib"; } +elsif (-d "/opt/local/include/js") { + push @incs, "/opt/local/include/js", "/opt/local/include/nspr"; + push @libs, "/opt/local/lib"; +} # Override with $ENV{JS_LIB} and $ENV{JS_INC} if (exists $ENV{JS_LIB}) {