Changeset 98599


Ignore:
Timestamp:
Oct 9, 2012, 3:46:33 PM (7 years ago)
Author:
hum@…
Message:

mosesdecoder: update to 20121007; remove fetch.type git and add checksums; remove patch_jam-files_sanity.jam.diff that was integrated into the upstream; install scripts at /opt/local/libexec/mosesdecoder/scripts; fix bin path in train-model.perl.

Location:
trunk/dports/textproc/mosesdecoder
Files:
1 added
1 deleted
1 edited

Legend:

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

    r98496 r98599  
    55PortGroup           github 1.0
    66
    7 github.setup        moses-smt mosesdecoder 4fd980c386b79b1c65baf89c1c19b79db734b8eb
    8 version             20121005
     7github.setup        moses-smt mosesdecoder f4471692ba51aeec3cf9867fcabe2c4fc7d4cb33
     8version             20121007
    99
    1010categories          textproc
     
    2424license             LGPL
    2525
    26 fetch.type          git
     26checksums           rmd160  f64d5bc5012cde499569b7b6f2bf1c8877bd91cf \
     27                    sha256  bd7db39e836668fff7e75ff6256fb643e21f9fb768e88a6eb7482190d7310939
    2728
    2829depends_lib         port:boost \
    2930                    port:zlib
    3031
    31 patchfiles          patch_jam-files_sanity.jam.diff
     32# binaries are installed at ${libexec_dir}.
     33set libexec_dir     ${prefix}/libexec/${name}
     34
     35# set _EXTERNAL_BINDIR (-external-bin-dir) to ${prefix}/bin.
     36patchfiles          patch-train-model.perl.diff
     37
     38post-patch {
     39    set f ${worksrcpath}/scripts/training/train-model.perl
     40    reinplace "s|@prefix@|${prefix}|g" ${f}
     41    reinplace "s|\$SCRIPTS_ROOTDIR/\\.\\./bin/|${libexec_dir}/|g" ${f}
     42}
    3243
    3344use_configure       no
     
    3647build.target
    3748build.args          --with-macports=${prefix}
    38 
    39 set libexec_dir     ${prefix}/libexec/${name}
    4049
    4150destroot.args       ${build.args} \
     
    4655post-destroot {
    4756    # install scripts.
    48     set scripts_dir ${prefix}/share/${name}/scripts
     57    set scripts_dir ${libexec_dir}/scripts
    4958    set args "${build.args} --install-scripts=${destroot}${scripts_dir}"
    5059    system -W ${worksrcpath}/scripts "../bjam ${args}"
    51     # fix bin path in scripts/training/train-model.perl
    52     reinplace "s|\$SCRIPTS_ROOTDIR/\\.\\./bin/|${libexec_dir}/|g" \
    53         ${destroot}${scripts_dir}/training/train-model.perl
    5460    # link some binaries to bin.
    5561    foreach file {moses moses_chart} {
Note: See TracChangeset for help on using the changeset viewer.