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

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

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

  • 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 102050 2013-01-26 12:43:24Z hum@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-mecab
8version             0.995
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  b06c61f5bb53c978fe00c013fb3f1cf6547ffcab \
18                    sha256  5babaa9e9d8025eadfe62770980f07b48e9e54107e64a80478b455568c45f5fd
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.