Ignore:
Timestamp:
Oct 29, 2013, 2:10:44 PM (6 years ago)
Author:
hum@…
Message:

mallet: install doc and examples according to the standard file hierarchy; install jar files in ${prefix}/share/java/${name} and fix pathes in mallet script.

File:
1 edited

Legend:

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

    r95899 r112684  
    66name                mallet
    77version             2.0.7
     8revision            1
    89categories          math java
    910maintainers         hum openmaintainer
     
    3132
    3233destroot {
    33     set malletdir      ${prefix}/share/java/${distname}
    34     set mallet_dest    ${destroot}${malletdir}
    35     xinstall -m 755    ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin
    36     reinplace "s|@malletdir@|${malletdir}|"      ${destroot}${prefix}/bin/mallet
    37     xinstall -m 755 -d ${mallet_dest}
    38     xinstall -m 644    ${worksrcpath}/LICENSE ${mallet_dest}
    39     foreach d {dist sample-data} {
    40         copy ${worksrcpath}/${d} ${mallet_dest}
    41         system "chmod -R a+rx ${mallet_dest}/${d}"
    42     }
     34    # install jar files.
     35    xinstall -d ${destroot}${prefix}/share/java
     36    set malletdir ${prefix}/share/java/${distname}
     37    copy ${worksrcpath}/dist ${destroot}${malletdir}
     38    system "chmod -R a+rx ${destroot}${malletdir}"
     39    # install a command utility.
     40    xinstall -m 755 ${worksrcpath}/bin/mallet ${destroot}${prefix}/bin
     41    reinplace "s|@malletdir@|${malletdir}|"   ${destroot}${prefix}/bin/mallet
     42    # install additional documents.
     43    set dest_doc ${destroot}${prefix}/share/doc/${name}
     44    xinstall -d ${dest_doc}
     45    xinstall -m 644 ${worksrcpath}/LICENSE ${dest_doc}
     46    # install examples.
     47    xinstall -d ${destroot}${prefix}/share/examples
     48    set dest_ex ${destroot}${prefix}/share/examples/${name}
     49    copy ${worksrcpath}/sample-data ${dest_ex}
     50    system "chmod -R a+rx ${dest_ex}"
    4351}
    4452   
Note: See TracChangeset for help on using the changeset viewer.