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

Last change on this file was 136054, checked in by mf2k@…, 2 years ago

hyperestraier p5-mecab py-hyperestraier py-mecab qdbm rb-hyperestraier rb-mecab rb19-mecab: Ports abandoned by gmail.com:rsky0711. (#47295)

  • 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 136054 2015-05-11 14:00:12Z ryandesign@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 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 {${name} ne ${subport}} {
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.