# -*- 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 compiler_blacklist_versions 1.0 PortGroup compilers 1.0 PortGroup github 1.0 PortGroup makefile 1.0 github.setup interkosmos fortran-pcre2 0.1.0 revision 0 categories fortran devel license ISC maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description Fortran 2018 ISO_C_BINDING interfaces to Perl-compatible Regular Expressions 2 long_description {*}${description} checksums rmd160 54b0beddafc2b5ff1007dee08c1d0d38d209bb6d \ sha256 5a7b32a5b533fd028d05766ffb8a81d1dd2ff391159d8b8761ae7453dbebfb86 \ size 9442 depends_lib-append port:pcre2 post-patch { reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/Makefile reinplace "s,@FC@,${configure.fc}," ${worksrcpath}/Makefile reinplace "s,@FFLAGS@,${configure.fcflags}," ${worksrcpath}/Makefile } compilers.setup require_fortran compiler.blacklist-append *gcc-4.* {clang < 500} use_parallel_build no destroot { xinstall -d ${destroot}${prefix}/include/${name} copy ${worksrcpath}/libfortran-pcre2.a ${destroot}${prefix}/lib/ copy ${worksrcpath}/pcre2.mod ${destroot}${prefix}/include/${name}/ } post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} LICENCE README.md ${destroot}${docdir} } test.run yes test.cmd ./test_pcre2 test.target