[113818] trunk/dports/textproc/mecab-base/Portfile

hum at macports.org hum at macports.org
Sun Nov 24 03:13:36 PST 2013


Revision: 113818
          https://trac.macports.org/changeset/113818
Author:   hum at macports.org
Date:     2013-11-24 03:13:36 -0800 (Sun, 24 Nov 2013)
Log Message:
-----------
mecab-base: install doc and examples according to the standard file hierarchy; clean up livecheck; update maintainers.

Modified Paths:
--------------
    trunk/dports/textproc/mecab-base/Portfile

Modified: trunk/dports/textproc/mecab-base/Portfile
===================================================================
--- trunk/dports/textproc/mecab-base/Portfile	2013-11-24 09:27:47 UTC (rev 113817)
+++ trunk/dports/textproc/mecab-base/Portfile	2013-11-24 11:13:36 UTC (rev 113818)
@@ -5,8 +5,9 @@
 
 name                mecab-base
 version             0.996
+revision            1
 categories          textproc japanese
-maintainers         hum gmail.com:rsky0711 openmaintainer
+maintainers         hum openmaintainer
 
 description         yet another part-of-speech and morphological analyzer
 long_description    The base analyzer of MeCab, ${description}.
@@ -32,22 +33,23 @@
 test.run            yes
 test.target         check
 
-set dest_mecab      ${destroot}${prefix}/share/mecab
-set dest_doc        ${dest_mecab}/doc
-set dest_example    ${dest_mecab}/example
-
 post-destroot {
     # set the default dictionary path to sysdic.
     reinplace s|ipadic|sysdic| ${destroot}${prefix}/etc/mecabrc
 
-    # install doc and example.
-    file mkdir ${dest_doc}
+    # install additional documents.
+    set dest_doc ${destroot}${prefix}/share/doc/mecab
+    xinstall -d ${dest_doc}
     eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] ${dest_doc}
     eval xinstall -m 644 [glob ${worksrcpath}/doc/*.png]  ${dest_doc}
     eval xinstall -m 644 [glob ${worksrcpath}/doc/*.css]  ${dest_doc}
     copy ${worksrcpath}/doc/doxygen ${dest_doc}
     copy ${worksrcpath}/doc/en      ${dest_doc}
-    copy ${worksrcpath}/example     ${dest_example}
+
+    # install examples.
+    set dest_ex  ${destroot}${prefix}/share/examples
+    xinstall -d ${dest_ex}
+    copy ${worksrcpath}/example     ${dest_ex}/mecab
 }
 
 # deactivate any old mecab port.
@@ -75,7 +77,3 @@
         copy -force ${filespath}/darts.h ${worksrcpath}/src
     }
 }
-
-livecheck.type      regex
-livecheck.url       http://code.google.com/p/mecab/downloads/list
-livecheck.regex     {mecab-([\d\.]+)\.tar}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131124/673f2f03/attachment.html>


More information about the macports-changes mailing list