Changeset 98479
- Timestamp:
- Oct 6, 2012, 11:40:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/textproc/mosesdecoder/Portfile
r98305 r98479 5 5 PortGroup github 1.0 6 6 7 github.setup moses-smt mosesdecoder 2085fd311bb6ccfa5648a9122a470c8e34bdc0928 version 2012100 27 github.setup moses-smt mosesdecoder 4fd980c386b79b1c65baf89c1c19b79db734b8eb 8 version 20121005 9 9 10 10 categories textproc … … 35 35 build.args --with-macports=${prefix} 36 36 37 destroot { 38 # install binaries into libexec. 39 set libexec_dir ${destroot}${prefix}/libexec/${name} 40 xinstall -d ${libexec_dir} 41 foreach file [glob ${worksrcpath}/bin/*] { 42 xinstall -m 755 ${file} ${libexec_dir} 43 } 44 delete ${libexec_dir}/config.log 37 set libexec_dir ${prefix}/libexec/${name} 38 39 destroot.args ${build.args} \ 40 --bindir=${destroot}${libexec_dir} \ 41 --includedir=${destroot}${prefix}/include/${name} 42 destroot.destdir --prefix=${destroot}${prefix} 43 44 post-destroot { 45 # install scripts. 46 set scripts_dir ${prefix}/share/${name}/scripts 47 set args "${build.args} --install-scripts=${destroot}${scripts_dir}" 48 system -W ${worksrcpath}/scripts "../bjam ${args}" 49 # fix bin path in scripts/training/train-model.perl 50 reinplace "s|\$SCRIPTS_ROOTDIR/\\.\\./bin/|${libexec_dir}/|g" \ 51 ${destroot}${scripts_dir}/training/train-model.perl 45 52 # link some binaries to bin. 46 53 foreach file {moses moses_chart} { 47 ln -s ${ prefix}/libexec/${name}/${file} ${destroot}${prefix}/bin/${file}54 ln -s ${libexec_dir}/${file} ${destroot}${prefix}/bin/${file} 48 55 } 49 # install scripts.50 set share_dir ${destroot}${prefix}/share/${name}51 xinstall -d ${share_dir}52 copy ${worksrcpath}/scripts ${share_dir}53 56 } 54 57
Note: See TracChangeset
for help on using the changeset viewer.