# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           perl5 1.0

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         JavaScript-SpiderMonkey 0.25
maintainers         nomaintainer
categories-append   www
license             {Artistic-1 GPL}
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           rmd160  a6ebc6bb1b62128329a107d42ae169cf0fb6507e \
                    sha256  aed5e114926be356bb3647956726c8e906e6d95f3ba2ece4aa6da216f863686e \
                    size    21405

platforms           darwin

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-log-log4perl

    depends_lib-append \
                    port:spidermonkey

    patchfiles      patch-Makefile.PL.diff

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