[86153] trunk/dports/math/sofia-ml/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Oct 19 22:50:26 PDT 2011
Revision: 86153
http://trac.macports.org/changeset/86153
Author: ryandesign at macports.org
Date: 2011-10-19 22:50:24 -0700 (Wed, 19 Oct 2011)
Log Message:
-----------
sofia-ml: simplify by setting build.dir instead of overwriting worksrcdir
Modified Paths:
--------------
trunk/dports/math/sofia-ml/Portfile
Modified: trunk/dports/math/sofia-ml/Portfile
===================================================================
--- trunk/dports/math/sofia-ml/Portfile 2011-10-20 05:47:08 UTC (rev 86152)
+++ trunk/dports/math/sofia-ml/Portfile 2011-10-20 05:50:24 UTC (rev 86153)
@@ -23,13 +23,13 @@
who require fast methods for classification and ranking on large, sparse \
data sets.
-distname ${name}
-worksrcdir ${distname}/src
+worksrcdir ${name}
use_configure no
variant universal {}
+build.dir ${worksrcpath}/src
build.args "GCC=\"${configure.cxx} ${configure.cxxflags} [get_canonical_archflags cxx]\""
build.target
@@ -38,16 +38,16 @@
test.target all_test
destroot {
- xinstall -m 755 -W ${workpath}/${distname} sofia-ml ${destroot}${prefix}/bin
- xinstall -m 755 -W ${workpath}/${distname} eval.pl ${destroot}${prefix}/bin/sofia-eval.pl
+ xinstall -m 755 -W ${worksrcpath} sofia-ml ${destroot}${prefix}/bin
+ xinstall -m 755 -W ${worksrcpath} eval.pl ${destroot}${prefix}/bin/sofia-eval.pl
file mkdir ${destroot}${prefix}/share/${name}
foreach item {COPYING README demo papers} {
- file copy ${workpath}/${distname}/${item} \
+ file copy ${worksrcpath}/${item} \
${destroot}${prefix}/share/${name}
}
}
-set kmeans_worksrcpath ${workpath}/${distname}/cluster-src
+set kmeans_worksrcpath ${worksrcpath}/cluster-src
variant kmeans description {Add sofia-kmeans package} {
post-build {
@@ -57,7 +57,7 @@
system "cd ${kmeans_worksrcpath} && ${build.cmd} ${test.args} ${test.target}"
}
post-destroot {
- xinstall -m 755 -W ${workpath}/${distname} sofia-kmeans ${destroot}${prefix}/bin
+ xinstall -m 755 -W ${worksrcpath} sofia-kmeans ${destroot}${prefix}/bin
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111019/206cfdde/attachment-0001.html>
More information about the macports-changes
mailing list