[86833] trunk/dports/perl/p5-mecab/Portfile

hum at macports.org hum at macports.org
Sat Nov 5 07:22:06 PDT 2011


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

Modified Paths:
--------------
    trunk/dports/perl/p5-mecab/Portfile

Modified: trunk/dports/perl/p5-mecab/Portfile
===================================================================
--- trunk/dports/perl/p5-mecab/Portfile	2011-11-05 14:02:49 UTC (rev 86832)
+++ trunk/dports/perl/p5-mecab/Portfile	2011-11-05 14:22:03 UTC (rev 86833)
@@ -1,39 +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       perl5 1.0
+PortSystem          1.0
+PortGroup           perl5 1.0
 
-perl5.setup     MeCab 0.96
-revision        2
+perl5.setup         MeCab 0.98
+categories-append   textproc japanese
+platforms           darwin
+maintainers         gmail.com:rsky0711 hum openmaintainer
+license             GPL-2 LGPL-2.1 BSD
 
-platforms       darwin
-maintainers     gmail.com:rsky0711
-description     a Perl module for MeCab
-long_description ${description}
+description         a Perl module for MeCab
+long_description    ${description}
 
-homepage        http://mecab.sourceforge.net/
-master_sites    sourceforge:mecab
-distname        mecab-perl-${perl5.moduleversion}
-checksums       md5    ad3ab1ecd917cd765ec54009fcc62c0c \
-                sha1   79eec3056690343a6286106cb3aedd7770208c43 \
-                rmd160 2c614b1d78afd1cf783a8ad00af6e549d316f4b6
+homepage            http://mecab.sourceforge.net/
+master_sites        sourceforge:mecab/mecab-perl/${perl5.moduleversion}
+distname            mecab-perl-${perl5.moduleversion}
+dist_subdir         mecab
+checksums           rmd160  5e016a1db88674ce55d433ab57d5c9baf7e38e72 \
+                    sha256  951997b31977df3ca2421baf2c5e77bb6207a19588cde9683900f063c4a3135a
 
-categories-append   textproc japanese
 if {${perl5.major} != ""} {
-depends_lib-append  port:mecab
+    depends_lib-append  lib:libmecab:mecab-utf8
 
-platform darwin 8 {
-    build.env       MACOSX_DEPLOYMENT_TARGET=10.4
-}
+    platform darwin 8 {
+        build.env       MACOSX_DEPLOYMENT_TARGET=10.4
+    }
 
-post-extract {
-    reinplace s|\#!/usr/bin/perl|\#!${perl5.bin}|g \
-        ${worksrcpath}/test.pl
+    post-patch {
+        reinplace "s|\#!/usr/bin/perl|\#!${perl5.bin}|" \
+            ${worksrcpath}/test.pl
+    }
+
+    post-destroot {
+        set exdir ${destroot}${prefix}/share/doc/${subport}/examples
+        xinstall -m 755 -d ${exdir}
+        xinstall -m 755 ${worksrcpath}/test.pl ${exdir}
+    }
 }
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
-    xinstall -m 644 ${worksrcpath}/test.pl \
-        ${destroot}${prefix}/share/doc/${name}/examples
-}
-}
+livecheck.type      regex
+livecheck.url       http://sourceforge.net/projects/mecab/files/mecab-perl
+livecheck.regex     mecab-perl\\/(\[0-9.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111105/3280e81e/attachment.html>


More information about the macports-changes mailing list