Ticket #38950: Portfile.diff

File Portfile.diff, 2.4 KB (added by audistard@…, 11 years ago)
  • Portfile

    old new  
    44
    55name                lua
    66conflicts           lua50
    7 set compat_version  5.1
    8 version             ${compat_version}.4
    9 revision            4
     7set compat_version  5.2
     8version             ${compat_version}.2
     9revision            1
    1010categories          lang
    1111license             MIT
    1212platforms           darwin
     
    2121master_sites        ${homepage}/ftp/
    2222
    2323checksums           ${distfiles} \
    24                     sha1    2b11c8e60306efb7f0734b747588f57995493db7 \
    25                     rmd160  c867c8364295d3e4fb4e4d8ebb27fa2b2312cdef
     24                    sha1    0857e41e5579726a4cb96732e80d7aa47165eaf5 \
     25                    rmd160  d17967150017e9b25a26c1ad527647cd0b9e598f
    2626
    2727depends_lib         port:readline
    2828build.target        macosx
    2929
    30 test.run            yes
    31 test.env            DYLD_LIBRARY_PATH=./lib
    32 
    33 patchfiles          patch-lua-5.1.4-3 \
     30patchfiles          patch-COPYRIGHT.diff \
    3431                    patch-Makefile.diff \
    3532                    patch-src_Makefile.diff
    3633
     
    4441   
    4542    # reinplace %PREFIX% to fix @executable_path, cf. ticket no. 28726
    4643    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/src/Makefile
    47 
    48     # for the pkgconfig file
    49     reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/lua.pc
    5044}
    5145
    5246configure {
     
    6054destroot.target install INSTALL_TOP=${destroot}${prefix}
    6155post-destroot {
    6256    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    63     xinstall -m 0644 -W ${worksrcpath} COPYRIGHT HISTORY README ${destroot}${prefix}/share/doc/${name}
     57    xinstall -m 0644 -W ${worksrcpath} COPYRIGHT README ${destroot}${prefix}/share/doc/${name}
    6458    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/html
    6559    foreach html [glob ${worksrcpath}/doc/*.html ${worksrcpath}/doc/*.gif] {
    6660        xinstall -m 0644 ${html} ${destroot}${prefix}/share/doc/${name}/html
    6761    }
    68     xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/test
    69     foreach test [glob ${worksrcpath}/test/README ${worksrcpath}/test/*.lua] {
    70         xinstall -m 0644 ${test} ${destroot}${prefix}/share/doc/${name}/test
    71     }
    72     xinstall -d -m 0755 ${destroot}${prefix}/lib/pkgconfig
    73     xinstall -m 0644 ${worksrcpath}/etc/lua.pc ${destroot}${prefix}/lib/pkgconfig/lua.pc
    7462}
    7563
    7664livecheck.type  regex