Ticket #21979: lua-luaexpat.patch

File lua-luaexpat.patch, 1.2 KB (added by ddanese@…, 15 years ago)
  • Portfile

    old new build.target 
    2323destroot    {
    2424    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    2525    file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
    26     foreach doc [glob doc/us/*] {
     26    foreach doc [glob ${worksrcpath}/doc/us/*] {
    2727        xinstall -m 0644 ${doc} ${destroot}${prefix}/share/doc/${name}
    2828    }
    2929   
    3030    # Binaries
    3131    xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1
    32     foreach lib [glob src/*.so.*] {
     32    foreach lib [glob ${worksrcpath}/src/*.so.*] {
    3333        xinstall -m 0644 ${lib} ${destroot}${prefix}/lib/lua/5.1
    3434    }
    3535
    3636    # Lua libraries
    3737    xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1/lxp
    38     foreach luadat [glob src/lxp/*.lua] {
     38    foreach luadat [glob ${worksrcpath}/src/lxp/*.lua] {
    3939        xinstall -m 0644 ${luadat} ${destroot}${prefix}/share/lua/5.1/lxp
    4040    }
    4141   
    4242    # Lua includes
    4343    xinstall -m 755 -d ${destroot}${prefix}/include/lua5.1
    44     foreach inc [glob src/*.h] {
     44    foreach inc [glob ${worksrcpath}/src/*.h] {
    4545        xinstall -m 0644 ${inc} ${destroot}${prefix}/include/lua5.1
    4646    }
    4747}