# -*- 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 name parrot version 8.1.0 revision 10 categories lang devel license Artistic-2 maintainers nomaintainer description Open source virtual machine long_description \ Parrot is a virtual machine designed to efficiently compile and \ execute bytecode for dynamic languages. Parrot currently hosts a \ variety of language implementations in various stages of completion, \ including Tcl, Javascript, Ruby, Lua, Scheme, PHP, Python, Perl 6, \ and a .NET bytecode translator. platforms darwin homepage http://www.parrot.org/ master_sites http://ftp.parrot.org/releases/supported/${version}/ checksums rmd160 d5d8bc1b9381e18a6528f9b1478a516b46818473 \ sha256 35850eaea19953d85640a1edeb12da879a94df0812b448dabe9bedc6cf86673a \ size 4700495 depends_build bin:perl:perl5 \ port:pkgconfig depends_lib port:gettext \ port:gmp \ path:lib/pkgconfig/icu-uc.pc:icu \ port:libffi \ port:pcre \ port:readline \ port:zlib # see https://github.com/parrot/parrot/issues/1016 patchfiles-append patch-opengl_location.diff post-patch { reinplace "s|__MACPORTS_SDK_ROOT_|${configure.sdkroot}|g" ${worksrcpath}/config/gen/opengl.pm } configure.cmd perl Configure.pl configure.args --mandir=${prefix}/share/man \ --cc=${configure.cc} \ --ccflags="\$CPPFLAGS \$CFLAGS" \ --link=${configure.cxx} \ --linkflags="\$LDFLAGS" \ --ld=${configure.cxx} \ --linkflags="\$LDFLAGS" \ --optimize build.type gnu build.target post-destroot { # fix shared library install name system -W ${destroot}${prefix}/lib "/usr/bin/install_name_tool -id ${prefix}/lib/libparrot.dylib libparrot.${version}.dylib" foreach bin [glob -directory "${destroot}${prefix}/bin" *] { system "/usr/bin/install_name_tool -change ${worksrcpath}/blib/lib/libparrot.${version}.dylib ${prefix}/lib/libparrot.dylib ${bin}" } } test.run yes test.target test livecheck.type regex livecheck.url http://ftp.parrot.org/releases/supported/ livecheck.regex {"([0-9.]+)/"}