[101791] trunk/dports/math/plda/Portfile

hum at macports.org hum at macports.org
Sat Jan 19 05:32:32 PST 2013


Revision: 101791
          https://trac.macports.org/changeset/101791
Author:   hum at macports.org
Date:     2013-01-19 05:32:32 -0800 (Sat, 19 Jan 2013)
Log Message:
-----------
plda: install binaries as 'plda' not 'lda' to avoid conflict with other lda packages; install a useful script and sample data contained in the distribution.

Modified Paths:
--------------
    trunk/dports/math/plda/Portfile

Modified: trunk/dports/math/plda/Portfile
===================================================================
--- trunk/dports/math/plda/Portfile	2013-01-19 13:27:58 UTC (rev 101790)
+++ trunk/dports/math/plda/Portfile	2013-01-19 13:32:32 UTC (rev 101791)
@@ -5,16 +5,19 @@
 
 name                plda
 version             3.1
+revision            1
 categories          math textproc
-platforms           darwin
 maintainers         hum openmaintainer
-license             Apache-2
 
-homepage            http://code.google.com/p/plda/
 description         A parallel C++ implementation of fast Gibbs sampling of Latent Dirichlet Allocation
+
 long_description    plda is a parallel C++ implementation of fast Gibbs sampling of \
                     Latent Dirichlet Allocation (LDA).
 
+homepage            http://code.google.com/p/plda/
+platforms           darwin
+license             Apache-2
+
 master_sites        googlecode
 checksums           rmd160  f1551328db9eabd99d0ed29d2352e94fcd0249d0 \
                     sha256  aae495f96fdbf048b71080dec4506f242044ce40930ad2fdf5ad71e4fedad682
@@ -32,16 +35,26 @@
 variant mpi description {Add parallel lda} {
     depends_lib         port:mpich2
     build.target        lda infer mpi_lda
+    post-destroot {
+        xinstall -m 755 ${worksrcpath}/mpi_lda ${destroot}${prefix}/bin/mpi_plda
+    }
 }
     
 destroot {
-    set plda_dir ${destroot}${prefix}/share/plda
-    xinstall -m 755 -d ${plda_dir}/testdata
-    xinstall -m 644 -W ${worksrcpath} COPYING README         ${plda_dir}
-    xinstall -m 644 -W ${worksrcpath}/testdata test_data.txt ${plda_dir}/testdata
-    foreach target ${build.target} {
-        xinstall -W ${worksrcpath} ${target} ${destroot}${prefix}/bin
-    }
+    # install binaries as 'plda' and 'plda_infer'.
+    xinstall -m 755 ${worksrcpath}/lda   ${destroot}${prefix}/bin/${name}
+    xinstall -m 755 ${worksrcpath}/infer ${destroot}${prefix}/bin/${name}_infer
+    # install additional documents.
+    set doc_dir  ${prefix}/share/doc/${name}
+    xinstall -m 755 -d ${destroot}${doc_dir}
+    xinstall -m 644 -W ${worksrcpath} \
+        COPYING README \
+        ${destroot}${doc_dir}
+    # install a useful script and a sample data file.
+    set plda_dir ${prefix}/share/${name}
+    xinstall -m 755 -d ${destroot}${plda_dir}
+    xinstall -m 755 ${worksrcpath}/view_model.py          ${destroot}${plda_dir}
+    xinstall -m 644 ${worksrcpath}/testdata/test_data.txt ${destroot}${plda_dir}
+    reinplace "s|/usr/bin/python2\.4|/usr/bin/env python|" \
+        ${destroot}${plda_dir}/view_model.py
 }
-
-livecheck.type      default
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130119/89078e04/attachment.html>


More information about the macports-changes mailing list