# $Id: Portfile 82547 2011-08-15 16:46:16Z jmr@macports.org $

PortSystem		1.0
PortGroup		perl5 1.0

perl5.setup		JavaScript-SpiderMonkey 0.20
revision		3
maintainers		ricci openmaintainer
categories-append	www
description		Perl interface to the JavaScript Engine
long_description	\
	JavaScript::SpiderMonkey is a Perl Interface to the SpiderMonkey \
	JavaScript Engine. It is different from Claes Jacobsson's JavaScript.pm \
	in that it offers two different levels of access: \
		1) A 1:1 mapping of the SpiderMonkey API to Perl \
		2) A more Perl-like API


checksums           md5     06ce918cc0de15cc8208272ca9d782e0 \
                    sha1    51034ede37a85d6dce0e89a3af1bef313484f664
platforms		darwin
if {${perl5.major} != ""} {
depends_lib-append	port:spidermonkey

supported_archs	i386 ppc

post-patch {
	reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile.PL
}

test.run		yes
}
