Changeset 118222


Ignore:
Timestamp:
Mar 26, 2014, 3:03:13 PM (7 years ago)
Author:
and.damore@…
Message:

port luajit: update to 2.0.3, make the portfile tidier, fix #41132 #41288, nomaintainer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/luajit/Portfile

    r114431 r118222  
    44
    55name                luajit
    6 version             2.0.2
     6version             2.0.3
    77categories          lang
    88platforms           darwin
     
    1515distname            LuaJIT-${version}
    1616
    17 checksums           rmd160  581ead4b18b54000d83f1ff79559c709f781b6c3 \
    18                     sha256  c05202974a5890e777b181908ac237625b499aece026654d7cc33607e3f46c38
     17checksums           rmd160  aa5c3fc367871a6ad15c7f9ad3300327c20462ec \
     18                    sha256  55be6cb2d101ed38acca32c5b1f99ae345904b365b642203194c585d27bebd79
    1919
    2020use_configure       no
    2121
    22 macosx_deployment_target  10.6
    23 
    2422build.target        amalg
    2523build.args-append   CC="${configure.cc}"  \
    26                     CFLAGS="${configure.cflags} ${configure.cppflags} [get_canonical_archflags]" \
     24                    CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags] -DLUAJIT_ENABLE_LUA52COMPAT" \
    2725                    LDFLAGS="${configure.ldflags} [get_canonical_archflags]" \
    2826                    PREFIX="${prefix}" \
    2927                    Q=""
    30 
    31 # luajit doesn't depends on lua but if lua 5.2 is installed we're going to change the conf file so we can use 5.2 extensions
    32 if {    ![catch {set lua_version [string range [lindex [lindex [registry_active lua] 0] 1] 0 2]}]
    33     &&  [vercmp $lua_version 5.2] >= 0} {
    34 
    35     post-patch {
    36         reinplace "s|/usr/local|${prefix}|"    ${worksrcpath}/etc/luajit.pc
    37         reinplace "s|5\\.1|${lua_version}|g" ${worksrcpath}/src/luaconf.h ${worksrcpath}/etc/luajit.pc
    38 
    39         set lua_release [string range [lindex [lindex [registry_active lua] 0] 1] 4 4]
    40         reinplace "/VERSION/s,5.1,${lua_version}," ${worksrcpath}/src/lua.h
    41         reinplace "/RELEASE/s,5.1,${lua_version}\\.${lua_release}," ${worksrcpath}/src/lua.h
    42     }
    43 
    44     configure.args-append   ABIVER=$lua_version
    45     build.args-append       ABIVER=$lua_version
    46     destroot.args-append    ABIVER=$lua_version
    47    
    48     build.args-delete       CFLAGS="${configure.cflags} ${configure.cppflags} [get_canonical_archflags]"
    49     build.args-append       CFLAGS="${configure.cflags} ${configure.cppflags} [get_canonical_archflags] -DLUAJIT_ENABLE_LUA52COMPAT"
    50 }
    5128
    5229post-patch {
     
    5734
    5835post-destroot {
    59     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    60     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/img
    61     xinstall -m 644  ${worksrcpath}/COPYRIGHT ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
    62     eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] ${destroot}${prefix}/share/doc/${name}
    63     eval xinstall -m 644 [glob ${worksrcpath}/doc/*.css] ${destroot}${prefix}/share/doc/${name}
    64     eval xinstall -m 644 [glob ${worksrcpath}/doc/img/*] ${destroot}${prefix}/share/doc/${name}/img
    65 
    66     xinstall -d -m 755 ${destroot}${prefix}/share/pkgconfig
    67     xinstall -m 644 ${worksrcpath}/etc/luajit.pc ${destroot}${prefix}/share/pkgconfig
    68     xinstall -m 644 ${worksrcpath}/etc/luajit.1 ${destroot}${prefix}/share/man/man1
     36    xinstall -m 755 -d ${destroot}${prefix}/share/doc
     37    copy ${worksrcpath}/doc/ ${destroot}${prefix}/share/doc/${name}
    6938}
    7039
Note: See TracChangeset for help on using the changeset viewer.