Ticket #36483: Portfile-luajit.diff

File Portfile-luajit.diff, 2.0 KB (added by daniel@…, 12 years ago)

Patch updating luajit to 2.0.0-beta10

  • Portfile

    old new  
    33PortSystem          1.0
    44
    55name                luajit
    6 version             2.0.0-beta6
     6version             2.0.0-beta10
    77categories          lang
    88platforms           darwin
    99license             BSD
     
    1616master_sites        ${homepage}/download
    1717distname            LuaJIT-${version}
    1818
    19 checksums           md5     bfcbe2a11162cfa84d5a1693b442c8bf \
    20                     sha1    0412da515eb21fa5b537ce6b74f1743cb68c99f1 \
    21                     rmd160  0c8d7724831ecb3a9b728e2d1344cc5d9ba9007e
    22 
    23 #depends_lib         port:readline
     19checksums           md5     ed66689b96f7ad7bfeffe0b4ff2d63d4 \
     20                    sha1    560d06621ea616bea1d67867faa235d608040396 \
     21                    rmd160  7159791c2ad27856cb39e62a9b9f337a756ab9d2
     22
     23configure {
     24    reinplace -E "/^MYLDFLAGS=/s|\$| ${configure.ldflags} [get_canonical_archflags]|" ${worksrcpath}/src/Makefile
     25    reinplace -E "/^CFLAGS=/s|\$| ${configure.cflags} ${configure.cppflags} [get_canonical_archflags]|" ${worksrcpath}/src/Makefile
     26    reinplace "s|CC= .*\$|CC= ${configure.cc}|" ${worksrcpath}/src/Makefile
     27}
    2428
    2529post-patch {
    2630    reinplace "s|/usr/local|${prefix}|g" \
    2731                ${worksrcpath}/etc/luajit.pc \
    2832                ${worksrcpath}/Makefile \
    2933                ${worksrcpath}/src/luaconf.h \
    30                 ${worksrcpath}/src/Makefile
    31 
    32     # fixes missing type when using llvm/clang, this is in repository HEAD so it'll have to be removed in future
    33     # http://lua-list.2524044.n2.nabble.com/luajit2-Unwind-Exception-Class-and-Unwind-Ptr-on-OS-X-10-7-td6684372.html
    34     reinplace "s|_Unwind_Exception_Class|uint64_t|" ${worksrcpath}/src/lj_err.c
    35     reinplace "s|_Unwind_Ptr|uintptr_t|"            ${worksrcpath}/src/lj_err.c
     34                ${worksrcpath}/src/Makefile
    3635}
    3736
    3837post-destroot {
     
    4847use_configure       no
    4948
    5049livecheck.type  regex
    51 livecheck.url   ${master_sites}
    52 livecheck.regex {lua-(\d+(?:\.\d+)*)}
     50livecheck.url   ${master_sites}.html
     51livecheck.regex {LuaJIT-(\d+(?:\.\d+)*(?:-beta\d+)?).tar.gz}