# -*- 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
PortGroup compiler_blacklist_versions 1.0
PortGroup gobject_introspection 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
description GNOME JavaScript/Spidermonkey bindings
long_description ${description}
maintainers {devans @dbevans} openmaintainer
homepage https://wiki.gnome.org/Projects/Gjs
master_sites gnome:sources/${name}/${branch}/
checksums rmd160 3115c054fd9bd8b565bc904f4d8bd3c343297289 \
sha256 f0b49acc6e3ae9c736753bbef50a7dbd6f6f500b05df1cb354721f9ff4509c7b \
depends_build port:pkgconfig \
path:lib/pkgconfig/cairo.pc:cairo \
# Teach glibtool about -stdlib=libc++
# Blacklist needs to match mozjs52:
# mozjs52 requires clang-3.6 or equivalent
compiler.blacklist *gcc-3.* *gcc-4.* {clang < 602} macports-clang-3.3 macports-clang-3.4
# profiler currently only supported on Linux
configure.args --disable-profiler \
gobject_introspection yes