Ticket #36483: Portfile-luajit.diff
File Portfile-luajit.diff, 2.0 KB (added by daniel@…, 12 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name luajit 6 version 2.0.0-beta 66 version 2.0.0-beta10 7 7 categories lang 8 8 platforms darwin 9 9 license BSD … … 16 16 master_sites ${homepage}/download 17 17 distname LuaJIT-${version} 18 18 19 checksums md5 bfcbe2a11162cfa84d5a1693b442c8bf \ 20 sha1 0412da515eb21fa5b537ce6b74f1743cb68c99f1 \ 21 rmd160 0c8d7724831ecb3a9b728e2d1344cc5d9ba9007e 22 23 #depends_lib port:readline 19 checksums md5 ed66689b96f7ad7bfeffe0b4ff2d63d4 \ 20 sha1 560d06621ea616bea1d67867faa235d608040396 \ 21 rmd160 7159791c2ad27856cb39e62a9b9f337a756ab9d2 22 23 configure { 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 } 24 28 25 29 post-patch { 26 30 reinplace "s|/usr/local|${prefix}|g" \ 27 31 ${worksrcpath}/etc/luajit.pc \ 28 32 ${worksrcpath}/Makefile \ 29 33 ${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 36 35 } 37 36 38 37 post-destroot { … … 48 47 use_configure no 49 48 50 49 livecheck.type regex 51 livecheck.url ${master_sites} 52 livecheck.regex { lua-(\d+(?:\.\d+)*)}50 livecheck.url ${master_sites}.html 51 livecheck.regex {LuaJIT-(\d+(?:\.\d+)*(?:-beta\d+)?).tar.gz}