Ticket #14310: libsvm-destroot.diff

File libsvm-destroot.diff, 1.4 KB (added by ryandesign (Ryan Carsten Schmidt), 17 years ago)

simplify the destroot phase

  • Portfile

     
    2626build.args              PREFIX=${prefix} VERSION=${libver}
    2727
    2828destroot {
    29     xinstall -m 755 ${worksrcpath}/svm-train ${destroot}${prefix}/bin
    30     xinstall -m 755 ${worksrcpath}/svm-predict ${destroot}${prefix}/bin
    31     xinstall -m 755 ${worksrcpath}/svm-scale ${destroot}${prefix}/bin
    32     xinstall -m 644 ${worksrcpath}/libsvm.a ${destroot}${prefix}/lib
    33     xinstall -m 644 ${worksrcpath}/svm.h ${destroot}${prefix}/include
    34     xinstall -m 644 ${worksrcpath}/libsvm.${libver}.dylib ${destroot}${prefix}/lib
     29    xinstall -m 755 -W ${worksrcpath} svm-train svm-predict svm-scale ${destroot}${prefix}/bin
     30    xinstall -m 644 -W ${worksrcpath} libsvm.a libsvm.${libver}.dylib ${destroot}${prefix}/lib
     31    xinstall -m 644 -W ${worksrcpath} svm.h ${destroot}${prefix}/include
    3532
    3633    ln -sf ${destroot}${prefix}/lib/${name}.${libver}.dylib \
    3734                   ${destroot}${prefix}/lib/${name}.dylib
    3835
    3936    set docs ${destroot}${prefix}/share/doc/${name}
    4037    xinstall -m 755 -d ${docs}
    41     xinstall -m 644 ${worksrcpath}/COPYRIGHT ${docs}
    42     xinstall -m 644 ${worksrcpath}/README ${docs}
    43     xinstall -m 644 ${worksrcpath}/FAQ.html ${docs}
     38    xinstall -m 644 -W ${worksrcpath} COPYRIGHT README FAQ.html ${docs}
    4439}
    4540