source: trunk/dports/python/py-mecab/Portfile @ 103265

Last change on this file since 103265 was 103265, checked in by hum@…, 6 years ago

mecab,mecab-{base,sjis,utf8,java},{p5,py,rb,rb19}-mecab: update to 0.996.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- 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
2# $Id: Portfile 103265 2013-02-19 15:25:57Z hum@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-mecab
8version             0.996
9python.versions     26 27
10categories-append   textproc japanese
11maintainers         hum gmail.com:rsky0711 openmaintainer
12
13description         a Python module for MeCab
14long_description    ${description}
15
16master_sites        googlecode:mecab
17checksums           rmd160  c46ee001b058fa84cff4694f25369dc5d46995a4 \
18                    sha256  d305c30af9e781e70f7619a0b444ac1101f2faaf3922415a0d6c49da85a63511
19
20homepage            http://mecab.sourceforge.net/
21platforms           darwin
22license             {GPL LGPL BSD}
23
24distname            mecab-python-${version}
25dist_subdir         mecab
26
27if {${subport} != ${name}} {
28    depends_lib-append  path:bin/mecab-config:mecab-utf8
29
30    post-patch {
31        reinplace "s|#!/usr/bin/python|#!${python.bin}|" \
32            ${worksrcpath}/test.py
33    }
34
35    post-destroot {
36        set exdir ${destroot}${prefix}/share/doc/${subport}/examples
37        xinstall -m 755 -d ${exdir}
38        xinstall -m 755 ${worksrcpath}/test.py ${exdir}
39    }
40
41    livecheck.type      none
42} else {
43    livecheck.type      regex
44    livecheck.url       http://code.google.com/p/mecab/downloads/list
45    livecheck.regex     {mecab-python-([\d\.]+)\.tar}
46}
Note: See TracBrowser for help on using the repository browser.