[86834] trunk/dports/python/py-mecab

hum at macports.org hum at macports.org
Sat Nov 5 07:24:14 PDT 2011


Revision: 86834
          http://trac.macports.org/changeset/86834
Author:   hum at macports.org
Date:     2011-11-05 07:24:13 -0700 (Sat, 05 Nov 2011)
Log Message:
-----------
py-mecab: update to 0.98; change indent; take joint maintainership; fix depends_lib; add subport; add livecheck; see #31837.

Modified Paths:
--------------
    trunk/dports/python/py-mecab/Portfile

Added Paths:
-----------
    trunk/dports/python/py-mecab/files/patch-test.py.diff

Removed Paths:
-------------
    trunk/dports/python/py-mecab/files/patch-test.py

Modified: trunk/dports/python/py-mecab/Portfile
===================================================================
--- trunk/dports/python/py-mecab/Portfile	2011-11-05 14:22:03 UTC (rev 86833)
+++ trunk/dports/python/py-mecab/Portfile	2011-11-05 14:24:13 UTC (rev 86834)
@@ -1,34 +1,44 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem      1.0
-PortGroup       python24 1.0
-name            py-mecab
-version         0.96
+PortSystem          1.0
+PortGroup           python 1.0
 
-platforms       darwin
-maintainers     gmail.com:rsky0711
-description     a Python module for MeCab
-long_description ${description}
+name                py-mecab
+version             0.98
+python.versions     24 25 26 27
+categories-append   textproc japanese
+platforms           darwin
+maintainers         gmail.com:rsky0711 hum openmaintainer
+license             GPL-2 LGPL-2.1 BSD
 
-homepage        http://mecab.sourceforge.net/
-master_sites    sourceforge:mecab
-distname        mecab-python-${version}
-checksums       md5    5faa154aa8a95145d6a58befa42e6c40 \
-                sha1   53089465107a3b45b0b31a8bd69f654ea561a200 \
-                rmd160 1f62a74d1673867a611de0ce9181ef011df67e46
+description         a Python module for MeCab
+long_description    ${description}
 
-patchfiles      patch-test.py
-patch.pre_args  -p0
+homepage            http://mecab.sourceforge.net/
+master_sites        sourceforge:mecab/mecab-python/${version}
+distname            mecab-python-${version}
+dist_subdir         mecab
+checksums           rmd160  64b55420bfe1326110277bd47d9e37e17789af9d \
+                    sha256  d3a4b2c602b7e6baae8465c859fe8b1e2d5ceb04b619a07a35bd68daef275014
 
-categories-append   textproc japanese
-depends_lib-append  port:mecab
+if {${subport} != ${name}} {
+    depends_lib-append  lib:libmecab:mecab-utf8
 
-post-patch {
-    reinplace s|%PREFIX%/bin/python|${python.bin}|g ${worksrcpath}/test.py
+    patchfiles-append   patch-test.py.diff
+
+    post-patch {
+        reinplace "s|#!/usr/bin/python|#!${python.bin}|" \
+            ${worksrcpath}/test.py
+    }
+
+    post-destroot {
+        set exdir ${destroot}${prefix}/share/doc/${subport}/examples
+        xinstall -m 755 -d ${exdir}
+        xinstall -m 755 ${worksrcpath}/test.py ${exdir}
+    }
 }
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
-    xinstall -m 644 ${worksrcpath}/test.py \
-        ${destroot}${prefix}/share/doc/${name}/examples
-}
+livecheck.type      regex
+livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-python
+livecheck.regex     mecab-python\\/(\[0-9.\]+)

Deleted: trunk/dports/python/py-mecab/files/patch-test.py
===================================================================
--- trunk/dports/python/py-mecab/files/patch-test.py	2011-11-05 14:22:03 UTC (rev 86833)
+++ trunk/dports/python/py-mecab/files/patch-test.py	2011-11-05 14:24:13 UTC (rev 86834)
@@ -1,9 +0,0 @@
---- test.py.orig	2006-03-19 02:10:55.000000000 +0900
-+++ test.py	2006-03-23 21:10:13.000000000 +0900
-@@ -1,4 +1,5 @@
--#!/usr/bin/python
-+#!%PREFIX%/bin/python
-+# -*- coding:euc-jp -*-
- 
- import MeCab
- import sys

Added: trunk/dports/python/py-mecab/files/patch-test.py.diff
===================================================================
--- trunk/dports/python/py-mecab/files/patch-test.py.diff	                        (rev 0)
+++ trunk/dports/python/py-mecab/files/patch-test.py.diff	2011-11-05 14:24:13 UTC (rev 86834)
@@ -0,0 +1,8 @@
+--- test.py.orig	2011-11-05 22:09:29.000000000 +0900
++++ test.py	2011-11-05 22:10:08.000000000 +0900
+@@ -1,4 +1,5 @@
+ #!/usr/bin/python
++# -*- coding:utf-8 -*-
+ 
+ import MeCab
+ import sys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111105/ca36b536/attachment.html>


More information about the macports-changes mailing list