Ticket #34395: patch-cloog-Portfile.diff

File patch-cloog-Portfile.diff, 1.6 KB (added by pixilla (Bradley Giesbrecht), 12 years ago)

Working Portfile patch

  • Portfile

     
    1212maintainers         openmaintainer adfernandes
    1313platforms           darwin
    1414
    15 description         The CLooG Code Generator in the Polyhedral Model's Home
     15description         The CLooG Code Generator in the Polyhedral Models Home
    1616
    1717long_description    CLooG is a free software and library to generate code for scanning Z-polyhedra. \
    1818                    That is, it finds a code (e.g. in C, FORTRAN...) that reaches each \
     
    2525                    has full control on generated code quality, CLooG is designed to avoid \
    2626                    control overhead and to produce a very effective code.
    2727
     28license             LGPL-2+
    2829homepage            http://repo.or.cz/w/cloog.git
    2930master_sites        http://www.bastoul.net/cloog/pages/download/count.php3?url=./
    3031
     
    3435
    3536depends_lib         port:gmp
    3637
     38post-build {
     39    # Remove extraneous '-arch' flag from the 'pkgconfig' files (#34395)
     40    foreach file [glob -nocomplain -directory ${worksrcpath} *.pc */*.pc] {
     41        reinplace -E "s@-arch +\[A-Za-z0-9_\]+ *@@g" "${file}"
     42    }
     43    if {[variant_isset universal]} {
     44        foreach arch ${universal_archs_to_use} {
     45            foreach file [glob -nocomplain -directory ${worksrcpath}-${arch} *.pc */*.pc ] {
     46                reinplace -E "s@-arch +\[A-Za-z0-9_\]+ *@@g" "${file}"
     47            }
     48        }
     49    }
     50}
     51
    3752livecheck.type      regex
    3853livecheck.url       ${master_sites}
    3954livecheck.regex     ${name}-(\[0-9.\]+)\\.tar.gz