Ticket #14041: Portfile.diff

File Portfile.diff, 935 bytes (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago)
  • Portfile

    old new  
    6868    configure.post_args-append  -Dcc=/usr/bin/gcc-4.0
    6969}
    7070
    71 livecheck.check regex
    72 livecheck.url   ${master_sites}
    73 livecheck.regex latest_is_(\\d+(?:\\.\\d+)*)
     71platform darwin 9 {
     72    post-patch {
     73        if {[variant_isset shared]} {
     74            reinplace \
     75            "s|\$(CC) \$(CLDFLAGS) \$(NAMESPACEFLAGS) -o miniperl |\$(CC) \$(CLDFLAGS) -o miniperl |g" \
     76            ${worksrcpath}/Makefile.SH
     77            reinplace \
     78            "s|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) \$(LLIBPERL) \$(libs)|miniperlmain\$(OBJ_EXT) opmini\$(OBJ_EXT) perl\$(OBJ_EXT) \$(filter-out op\$(OBJ_EXT),\$(obj)) \$(libs)|g" \
     79            ${worksrcpath}/Makefile.SH
     80        }
     81    }
     82}
    7483
     84livecheck.check regex
     85livecheck.url   http://www.cpan.org/src
     86livecheck.regex latest_[join [lrange [split ${version} .] 0 1] .]_is_(\\d+(?:\\.\\d+)*)