Changeset 98599
- Timestamp:
- Oct 9, 2012, 3:46:33 PM (12 years ago)
- Location:
- trunk/dports/textproc/mosesdecoder
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/textproc/mosesdecoder/Portfile
r98496 r98599 5 5 PortGroup github 1.0 6 6 7 github.setup moses-smt mosesdecoder 4fd980c386b79b1c65baf89c1c19b79db734b8eb8 version 2012100 57 github.setup moses-smt mosesdecoder f4471692ba51aeec3cf9867fcabe2c4fc7d4cb33 8 version 20121007 9 9 10 10 categories textproc … … 24 24 license LGPL 25 25 26 fetch.type git 26 checksums rmd160 f64d5bc5012cde499569b7b6f2bf1c8877bd91cf \ 27 sha256 bd7db39e836668fff7e75ff6256fb643e21f9fb768e88a6eb7482190d7310939 27 28 28 29 depends_lib port:boost \ 29 30 port:zlib 30 31 31 patchfiles patch_jam-files_sanity.jam.diff 32 # binaries are installed at ${libexec_dir}. 33 set libexec_dir ${prefix}/libexec/${name} 34 35 # set _EXTERNAL_BINDIR (-external-bin-dir) to ${prefix}/bin. 36 patchfiles patch-train-model.perl.diff 37 38 post-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 } 32 43 33 44 use_configure no … … 36 47 build.target 37 48 build.args --with-macports=${prefix} 38 39 set libexec_dir ${prefix}/libexec/${name}40 49 41 50 destroot.args ${build.args} \ … … 46 55 post-destroot { 47 56 # install scripts. 48 set scripts_dir ${ prefix}/share/${name}/scripts57 set scripts_dir ${libexec_dir}/scripts 49 58 set args "${build.args} --install-scripts=${destroot}${scripts_dir}" 50 59 system -W ${worksrcpath}/scripts "../bjam ${args}" 51 # fix bin path in scripts/training/train-model.perl52 reinplace "s|\$SCRIPTS_ROOTDIR/\\.\\./bin/|${libexec_dir}/|g" \53 ${destroot}${scripts_dir}/training/train-model.perl54 60 # link some binaries to bin. 55 61 foreach file {moses moses_chart} {
Note: See TracChangeset
for help on using the changeset viewer.