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
RevLine 
[86834]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
[20382]2# $Id: Portfile 103265 2013-02-19 15:25:57Z hum@macports.org $
[17238]3
[86834]4PortSystem          1.0
5PortGroup           python 1.0
[17238]6
[86834]7name                py-mecab
[103265]8version             0.996
[99415]9python.versions     26 27
[86834]10categories-append   textproc japanese
[97496]11maintainers         hum gmail.com:rsky0711 openmaintainer
[17238]12
[86834]13description         a Python module for MeCab
14long_description    ${description}
[17238]15
[88297]16master_sites        googlecode:mecab
[103265]17checksums           rmd160  c46ee001b058fa84cff4694f25369dc5d46995a4 \
18                    sha256  d305c30af9e781e70f7619a0b444ac1101f2faaf3922415a0d6c49da85a63511
[89830]19
[97496]20homepage            http://mecab.sourceforge.net/
21platforms           darwin
22license             {GPL LGPL BSD}
23
[86834]24distname            mecab-python-${version}
25dist_subdir         mecab
[17238]26
[86834]27if {${subport} != ${name}} {
[86903]28    depends_lib-append  path:bin/mecab-config:mecab-utf8
[17238]29
[86834]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    }
[86926]40
41    livecheck.type      none
42} else {
43    livecheck.type      regex
[88297]44    livecheck.url       http://code.google.com/p/mecab/downloads/list
45    livecheck.regex     {mecab-python-([\d\.]+)\.tar}
[17238]46}
Note: See TracBrowser for help on using the repository browser.