[98479] trunk/dports/textproc/mosesdecoder/Portfile
hum at macports.org
hum at macports.org
Sat Oct 6 04:40:14 PDT 2012
Revision: 98479
http://trac.macports.org//changeset/98479
Author: hum at macports.org
Date: 2012-10-06 04:40:14 -0700 (Sat, 06 Oct 2012)
Log Message:
-----------
mosesdecoder: update to 20121005; use bjam in destroot; fix bin path in scripts/training/train-model.perl.
Modified Paths:
--------------
trunk/dports/textproc/mosesdecoder/Portfile
Modified: trunk/dports/textproc/mosesdecoder/Portfile
===================================================================
--- trunk/dports/textproc/mosesdecoder/Portfile 2012-10-06 11:37:59 UTC (rev 98478)
+++ trunk/dports/textproc/mosesdecoder/Portfile 2012-10-06 11:40:14 UTC (rev 98479)
@@ -4,8 +4,8 @@
PortSystem 1.0
PortGroup github 1.0
-github.setup moses-smt mosesdecoder 2085fd311bb6ccfa5648a9122a470c8e34bdc092
-version 20121002
+github.setup moses-smt mosesdecoder 4fd980c386b79b1c65baf89c1c19b79db734b8eb
+version 20121005
categories textproc
maintainers hum openmaintainer
@@ -34,22 +34,25 @@
build.target
build.args --with-macports=${prefix}
-destroot {
- # install binaries into libexec.
- set libexec_dir ${destroot}${prefix}/libexec/${name}
- xinstall -d ${libexec_dir}
- foreach file [glob ${worksrcpath}/bin/*] {
- xinstall -m 755 ${file} ${libexec_dir}
- }
- delete ${libexec_dir}/config.log
+set libexec_dir ${prefix}/libexec/${name}
+
+destroot.args ${build.args} \
+ --bindir=${destroot}${libexec_dir} \
+ --includedir=${destroot}${prefix}/include/${name}
+destroot.destdir --prefix=${destroot}${prefix}
+
+post-destroot {
+ # install scripts.
+ set scripts_dir ${prefix}/share/${name}/scripts
+ set args "${build.args} --install-scripts=${destroot}${scripts_dir}"
+ system -W ${worksrcpath}/scripts "../bjam ${args}"
+ # fix bin path in scripts/training/train-model.perl
+ reinplace "s|\$SCRIPTS_ROOTDIR/\\.\\./bin/|${libexec_dir}/|g" \
+ ${destroot}${scripts_dir}/training/train-model.perl
# link some binaries to bin.
foreach file {moses moses_chart} {
- ln -s ${prefix}/libexec/${name}/${file} ${destroot}${prefix}/bin/${file}
+ ln -s ${libexec_dir}/${file} ${destroot}${prefix}/bin/${file}
}
- # install scripts.
- set share_dir ${destroot}${prefix}/share/${name}
- xinstall -d ${share_dir}
- copy ${worksrcpath}/scripts ${share_dir}
}
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121006/bf6fb129/attachment.html>
More information about the macports-changes
mailing list