Changeset 112685


Ignore:
Timestamp:
Oct 29, 2013, 2:11:26 PM (5 years ago)
Author:
hum@…
Message:

sgd: install doc and examples according to the standard file hierarchy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/sgd/Portfile

    r97811 r112685  
    66name                sgd
    77version             2.1
     8revision            1
    89categories          math textproc
    910maintainers         hum openmaintainer
     
    3637destroot {
    3738    # install executables.
     39    xinstall -m 755 -W ${worksrcpath}/crf \
     40        crfsgd crfasgd conlleval \
     41        ${destroot}${prefix}/bin
    3842    xinstall -m 755 -W ${worksrcpath}/svm \
    3943        prep_rcv1 prep_alpha prep_webspam svmsgd svmasgd \
    4044        ${destroot}${prefix}/bin
    41     xinstall -m 755 -W ${worksrcpath}/crf \
    42         crfsgd crfasgd conlleval \
    43         ${destroot}${prefix}/bin
    4445    # install additional documents.
    45     set docdir ${prefix}/share/doc/${name}
    46     xinstall -d ${destroot}${docdir}
     46    set dest_doc ${destroot}${prefix}/share/doc/${name}
     47    xinstall -d ${dest_doc}
    4748    xinstall -m 644 -W ${worksrcpath} \
    4849        COPYING README.txt \
    49         ${destroot}${docdir}
    50     # install additional documents for svm.
    51     xinstall -d ${destroot}${docdir}/svm
    52     xinstall -m 644 -W ${worksrcpath}/svm \
    53         README.txt \
    54         ${destroot}${docdir}/svm
    55     # install additional documents for crf.
    56     xinstall -d ${destroot}${docdir}/crf
    57     xinstall -m 644 -W ${worksrcpath}/crf \
    58         README.txt template \
    59         ${destroot}${docdir}/crf
    60     # install additional files for data.
    61     set sgd_dir ${prefix}/share/${name}
    62     xinstall -d ${destroot}${sgd_dir}
    63     copy ${worksrcpath}/data ${destroot}${sgd_dir}
     50        ${dest_doc}
     51    xinstall -d ${dest_doc}/crf
     52    xinstall -m 644 ${worksrcpath}/crf/README.txt ${dest_doc}/crf
     53    xinstall -d ${dest_doc}/svm
     54    xinstall -m 644 ${worksrcpath}/svm/README.txt ${dest_doc}/svm
     55    # install examples.
     56    set dest_ex ${destroot}${prefix}/share/examples/${name}
     57    xinstall -d ${dest_ex}
     58    copy ${worksrcpath}/data ${dest_ex}
     59    xinstall -d ${dest_ex}/crf
     60    xinstall -m 644 ${worksrcpath}/crf/template ${dest_ex}/crf
    6461}
    6562
Note: See TracChangeset for help on using the changeset viewer.