[112685] trunk/dports/math/sgd/Portfile

hum at macports.org hum at macports.org
Tue Oct 29 07:11:26 PDT 2013


Revision: 112685
          https://trac.macports.org/changeset/112685
Author:   hum at macports.org
Date:     2013-10-29 07:11:26 -0700 (Tue, 29 Oct 2013)
Log Message:
-----------
sgd: install doc and examples according to the standard file hierarchy.

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

Modified: trunk/dports/math/sgd/Portfile
===================================================================
--- trunk/dports/math/sgd/Portfile	2013-10-29 14:10:44 UTC (rev 112684)
+++ trunk/dports/math/sgd/Portfile	2013-10-29 14:11:26 UTC (rev 112685)
@@ -5,6 +5,7 @@
 
 name                sgd
 version             2.1
+revision            1
 categories          math textproc
 maintainers         hum openmaintainer
 
@@ -35,32 +36,28 @@
 
 destroot {
     # install executables.
-    xinstall -m 755 -W ${worksrcpath}/svm \
-        prep_rcv1 prep_alpha prep_webspam svmsgd svmasgd \
-        ${destroot}${prefix}/bin
     xinstall -m 755 -W ${worksrcpath}/crf \
         crfsgd crfasgd conlleval \
         ${destroot}${prefix}/bin
+    xinstall -m 755 -W ${worksrcpath}/svm \
+        prep_rcv1 prep_alpha prep_webspam svmsgd svmasgd \
+        ${destroot}${prefix}/bin
     # install additional documents.
-    set docdir ${prefix}/share/doc/${name}
-    xinstall -d ${destroot}${docdir}
+    set dest_doc ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${dest_doc}
     xinstall -m 644 -W ${worksrcpath} \
         COPYING README.txt \
-        ${destroot}${docdir}
-    # install additional documents for svm.
-    xinstall -d ${destroot}${docdir}/svm
-    xinstall -m 644 -W ${worksrcpath}/svm \
-        README.txt \
-        ${destroot}${docdir}/svm
-    # install additional documents for crf.
-    xinstall -d ${destroot}${docdir}/crf
-    xinstall -m 644 -W ${worksrcpath}/crf \
-        README.txt template \
-        ${destroot}${docdir}/crf
-    # install additional files for data.
-    set sgd_dir ${prefix}/share/${name}
-    xinstall -d ${destroot}${sgd_dir}
-    copy ${worksrcpath}/data ${destroot}${sgd_dir}
+        ${dest_doc}
+    xinstall -d ${dest_doc}/crf
+    xinstall -m 644 ${worksrcpath}/crf/README.txt ${dest_doc}/crf
+    xinstall -d ${dest_doc}/svm
+    xinstall -m 644 ${worksrcpath}/svm/README.txt ${dest_doc}/svm
+    # install examples.
+    set dest_ex ${destroot}${prefix}/share/examples/${name}
+    xinstall -d ${dest_ex}
+    copy ${worksrcpath}/data ${dest_ex}
+    xinstall -d ${dest_ex}/crf
+    xinstall -m 644 ${worksrcpath}/crf/template ${dest_ex}/crf
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131029/55ba6d2e/attachment-0001.html>


More information about the macports-changes mailing list