Changeset 98598


Ignore:
Timestamp:
Oct 9, 2012, 3:40:47 PM (12 years ago)
Author:
hum@…
Message:

irstlm: install executables at /opt/libexec/irstlm; replace IRSTLM with the installed directory; enable caching; install additional documents.

Location:
trunk/dports/textproc/irstlm
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/irstlm/Portfile

    r98272 r98598  
    66name                irstlm
    77version             5.80.01
    8 revision            1
     8revision            2
    99categories          textproc math
    1010maintainers         hum openmaintainer
     
    3131depends_build       port:autoconf port:automake port:libtool
    3232
     33# binaries and scripts are installed at ${libexec_dir}.
     34set libexec_dir     ${prefix}/libexec/${name}
     35
     36# replace the value of the IRSTLM environmental variable with ${libexec_dir}.
     37patchfiles          patch-scripts.diff
     38
     39post-patch {
     40    foreach f {build-lm-qsub.sh build-lm.sh lm-stat.pl split-ngt.sh} {
     41        reinplace "s|@libexec_dir@|${libexec_dir}|g" ${worksrcpath}/scripts/${f}
     42    }
     43}
     44
    3345universal_variant   no
    3446
     
    3951# install include files at ${prefix}/include/${name} to avoid conflicts with other builds.
    4052# e.g. mosesdecoder
    41 configure.args      --includedir=${prefix}/include/${name}
     53configure.args      --includedir=${prefix}/include/${name} \
     54                    --bindir=${libexec_dir} \
     55                    --enable-caching
    4256
    4357compiler.blacklist  clang
    4458
    4559post-destroot {
    46     foreach f [glob -directory ${destroot}${prefix}/bin -type f *] {
     60    # fix permissions of the binaries and scripts.
     61    foreach f [glob -directory ${destroot}${libexec_dir} -type f *] {
    4762        file attributes ${f} -permissions 0755
    4863    }
     64    # install additional documents.
     65    set doc_dir ${prefix}/share/doc/${name}
     66    xinstall -d ${destroot}${doc_dir}
     67    xinstall -m 644 -W ${worksrcpath} \
     68        Copyright README RELEASE \
     69        ${destroot}${doc_dir}
    4970}
    5071
Note: See TracChangeset for help on using the changeset viewer.